前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >uboot下载

uboot下载

作者头像
全栈程序员站长
发布2022-09-07 11:21:28
1.8K0
发布2022-09-07 11:21:28
举报
文章被收录于专栏:全栈程序员必看

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

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下载
uboot下载

二、从Nand启动

uboot下载
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下载
uboot下载

3.4、烧写uboot

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

uboot下载
uboot下载

选择

uboot下载
uboot下载

,将uboot下载到nand中

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

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

uboot下载
uboot下载

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

uboot下载
uboot下载

然后重启虚拟机

uboot下载
uboot下载
uboot下载
uboot下载

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

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

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

uboot下载
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下载
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下载
uboot下载

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

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档