uboot下载

uboot下载uboot下载地址ftp://ftp.denx.de/pub/u-boot/DNW源码及使用说明下载点击打开链接共分为三种方法:一、从SD卡启动通过wind把SD卡格式化为FAT32模式sudofdisk-l //查看分区信息ddiflag=dsyncoflag=dsyncif=./u-boot.binof=/dev/sdbseek=1启动时按下空格键…

大家好,又见面了,我是你们的朋友全栈君。

uboot下载地址ftp://ftp.denx.de/pub/u-boot/

DNW源码及使用说明下载点击打开链接

共分为三种方法:

一、从SD卡启动

通过wind把SD卡格式化为FAT32模式
sudo fdisk -l  //查看分区信息

dd iflag=dsync oflag=dsync if=./u-boot.bin of=/dev/sdb seek=1

启动时按下空格键

uboot下载

二、从Nand启动

uboot下载

三、从USB启动,资源下载https://download.csdn.net/download/jerrygou/10475100

 

3.1、加载模块到Linux内核

将secbulk源程序在Ubuntu下重新编译

#insmod secbulk.ko   (注意要在root权限下)

# dmesg        (查看是否加载成功)

secbulk:secbulk loaded

usbcore: registered new interface driver secbulk        (看到这样两行就说明成功了)

错误:  insmod: ERROR: could not insert module secbulk.ko: Invalid module format
解决方法:需要将secbulk源程序在Ubuntu下重新编译

3.2、将文件copy到/usr/local/bin目录

    # sudo cp dnw /usr/local/bin

Can not open /dev/secbulk0: No such file or directory
    
    udyMaterials/Cortex-A8-S5PV210/S5PV210/A/android2.3/image/nand$ ls /dev/
    Display all 226 possibilities? (y or n)
    autofs              rfkill              tty55
    block/              rtc                 tty56
    bsg/                rtc0                tty57
    btrfs-control       sda                 tty58
    bus/                sda1                tty59
    char/               sdb                 tty6
    console             sdb1                tty60
    core                sdb2                tty61
    cpu/                sdb3                tty62
    cpu_dma_latency     sdb4                tty63
    cuse                sdb5                tty7
    disk/               sdb6                tty8
    dri/                sdb7                tty9
    drm_dp_aux0         sdb8                ttyprintk
    ecryptfs            secbulk1            ttyS0
    fb0                 serial/             ttyS1
    fd/                 sg0                 ttyS10
    freefall            sg1                 ttyS11
    full                shm/                ttyS12
    fuse                snapshot            ttyS13
    hidraw0             snd/                ttyS14
    hidraw1             stderr              ttyS15
    hidraw2             stdin               ttyS16
    –More–^C
检查dnw.c    const char* dev = “/dev/secbulk1”; 与系统检测到的端口号是否一致

如果发现检测不到secbulk1,需要将开发板uboot按住Ctrl+C停止在菜单栏

3.3、下载uboot
sudo dnw -a 0xd0020010 x210_usb.bin            ///media/jerry/资料/StudyMaterials/LinuxStudyMaterials/LinuxStudyMaterials/Cortex-A8-S5PV210/S5PV210/A/android2.3/image/nand

sudo dnw -a 0x23e00000 uboot.bin

(如果提示write failed: Bad address, 需要吧拨码开关拨对)

uboot下载

3.4、烧写uboot

当执行sudo dnw -a 0x23e00000 uboot.bin成功后,开发板会启动(仅限于本文件中的uboot.bin会启动),这是快速在CRT上面按下空格键,进入下载目录

uboot下载

选择uboot下载,将uboot下载到nand中

此时在ubuntu中再次执行sudo dnw -a 0x23e00000 uboot.bin命令

将拨码开关设置为Nand启动,重启,这是开发板uboot下载完成。

uboot下载

注释:虚拟机检测不到SD卡或USB

uboot下载

然后重启虚拟机

uboot下载  uboot下载

四、uboot更新通过USB(Nand启动)

启动TQ210V4开发板,在倒数结束之前按空格,进入u-boot界面。按命令1进行uboot更新

a)、USB cable Connected!,表示没有插入USB下载线或者没有安装USB下载驱动。

uboot下载(按下命令1后,上方应出现USB连接,如果没有出现则通过重启等方法使重新开始,然后点击USB连接,虚拟机执行dnw -a 0x23e00000 uboot.bin命令)

b)、USB cable Connected!和Now, Waiting for DNW to transmit data.表示USB已经连接上了,此时使用下载软件即可完成文件的传输和烧写。

五、uboot更新通过TFTP(Nand启动)

##############################################
############# ported by JerryGou #############
#############      Louis210      #############
#############    QQ:1056821973   #############
##############################################

U-Boot 2014.04 (Jun 15 2018 – 22:54:22) for Louis210

CPU:    S5PV210@1000MHz
Board:  Louis210
DRAM:  1 GiB
WARNING: Caches not enabled
NAND:  1024 MiB

NAND read: device 0 offset 0x200000, size 0x300000
 3145728 bytes read: OK
There is no valid bmp file at the given address
In:    serial
Out:   serial
Err:   serial
Net:   dm9000
Louis210 # ls
Unknown command ‘ls’ – try ‘help’
Louis210 # nand erase.part bootloader  //擦除uboot分区

NAND erase.part: device 0 offset 0x0, size 0x100000
Erasing at 0xe0000 — 100% complete.
OK
Louis210 # tftpboot 20000000 u-boot-a.bin  //下载uboot(包括BL1和BL2)至nand
dm9000 i/o: 0x88000000, id: 0x90000a46
DM9000: running in 16 bit mode
MAC: 1a:2a:3a:4a:5a:6a
operating at 100M full duplex mode
Using dm9000 device
TFTP from server 192.168.5.136; our IP address is 192.168.5.187
Filename ‘u-boot-a.bin’.
Load address: 0x20000000
Loading: ##################
         564.5 KiB/s
done
Bytes transferred = 255868 (3e77c hex)
Louis210 # nand write 20000000 0 $filesize  //复制uboot至IRAM

NAND write: device 0 offset 0x0, size 0x3e77c
 255868 bytes written: OK
Louis210 # reset  //重启
resetting …

##############################################
############# ported by JerryGou #############
#############    QQ:1056821973   #############
##############################################

U-Boot 2014.04 (Jun 15 2018 – 22:59:45) for Louis210

CPU:    S5PV210@1000MHz
Board:  Louis210
DRAM:  1 GiB
WARNING: Caches not enabled

NAND:  1024 MiB

等同

Louis210 # nand erase.part bootloader;tftpboot 20000000 u-boot-a.bin;nand write 20000000 0 $filesize;reset;  //命令

NAND erase.part: device 0 offset 0x0, size 0x100000
Erasing at 0xe0000 — 100% complete.
OK
dm9000 i/o: 0x88000000, id: 0x90000a46
DM9000: running in 16 bit mode
MAC: 1a:2a:3a:4a:5a:6a
operating at 100M full duplex mode
Using dm9000 device
TFTP from server 192.168.5.136; our IP address is 192.168.5.187
Filename ‘u-boot-a.bin’.
Load address: 0x20000000
Loading: ##############transmission timeout
####
         44.9 KiB/s
done
Bytes transferred = 255932 (3e7bc hex)

NAND write: device 0 offset 0x0, size 0x3e7bc
 255932 bytes written: OK
resetting …

##############################################
############# ported by JerryGou #############
#############      Louis210      #############
#############    QQ:1056821973   #############
##############################################

六、使用TQBoardDNW软件下载uboot

uboot下载

1、串口连接开发板的打印串口,打印调试信息

2、参数设置–>选项–>下载地址:23e00000

3、210USB启动 –> 210BOOT –>选择文件 –>u-boot.bin

选件会自动把x210_usb.bin文件下载到0xd0020010,把u-boot.bin下载到0x23e00000(未下载到Nand中)

4、选择 [1] Download u-boot or STEPLDR.nb1 or other bootloader to Nand Flash

5、USB下载–>UBOOT–>u-boot.bin

6、拨码至Nand启动,重启

七、uboot添加启动目录

uboot下载

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/148111.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • ipynb可以用pycharm_pycharm运行jupyter

    ipynb可以用pycharm_pycharm运行jupyter背景我的Pycharm下面有很多Project,每个Project一个Anaconda环境,昨天新开了一个Project叫CLRS_Code,Anaconda环境名也叫CLRS_Code然后我之前没有在Pycharm里面用过Jupyter,突然想试试这个功能,然后就新建一个.ipynb文件,Pycharm提示我没有装JupyterPackages,然后我就在Pycharm里面装了,装完之后,搜索…

    2022年8月27日
    2
  • ubuntu安装nginx教程(php网站开发环境)

    一、说明正在尝试基于nginx+php搭建web服务器,中途遇到不少问题。挣扎了三四个小时终于完成了,这里分享下经验。实验环境操作系统:Ubuntu18.0464位nginx:1.14.0php:7.2.17-0php-fram:php7.2-fpm二、实验步骤1、安装必要程序以及依赖#安装程序包sudoapt-getinstallphp7.2…

    2022年4月10日
    63
  • navicate 15.0.23激活码【注册码】

    navicate 15.0.23激活码【注册码】,https://javaforall.net/100143.html。详细ieda激活码不妨到全栈程序员必看教程网一起来了解一下吧!

    2022年3月17日
    47
  • DNS服务器搭建与配置

    DNS服务器搭建与配置title:DNS服务器搭建与配置date:2018-10-1521:20:07tags:[Linux笔记,Linux服务]categories:LinuxDNS服务介绍DNS服务简介:DNS(DomainNameSystem–域名系统),是因特网的一项服务。它作为将域名和IP地址相互映射的一个分布式数据库,能够使人更方便地访问互联网。是一个应用层的协议DNS使用…

    2022年6月4日
    47
  • 数据库锁表

    数据库锁表人工智能,零基础入门!http://www.captainbed.net/inner1、锁表发生在insert、update、delete语句中2、锁表的原理是数据库使用独占式封锁机制,当执行上面的语句时,对表进行锁住,直到发生commit或回滚或退出数据库用户3、锁表的原因:第一、A程序执行了对tableA的insert,并还未commite时,B程…

    2022年6月18日
    29
  • 2个list取交集_角的集合如何取交集

    2个list取交集_角的集合如何取交集两个List集合取交集、并集、差集、去重并集的一个简单Demo,可供参考:importjava.util.ArrayList;importjava.util.List;importstaticjava.util.stream.Collectors.toList;publicclassTest{publicstaticvoidmain(String[]args){List<String>list1=newArrayLi

    2022年10月6日
    0

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号