uboot下载

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

启动时按下空格键

二、从Nand启动

三、从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, 需要吧拨码开关拨对)

3.4、烧写uboot

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

选择,将uboot下载到nand中

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

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

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

然后重启虚拟机

 

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

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

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

(按下命令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

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添加启动目录

全志T3的uboot下载可以按照以下步骤进行: 1. 首先,从官方的GitHub地址下载uboot代码。可以使用以下命令进行克隆下载: ``` git clone https://github.com/Lichee-Pi/u-boot.git -b v3s-current ``` 这将下载最新版本的uboot代码到本地。\[3\] 2. 下载完成后,进入下载的uboot代码目录。 3. 接下来,安装交叉编译工具。根据你的开发环境和需求,选择合适的交叉编译工具,并按照它们的安装说明进行安装。 4. 安装完成后,使用交叉编译工具编译uboot。根据uboot代码的具体要求,执行相应的编译命令。编译成功后,将生成的u-boot.bin和u-boot-sun8iw5p1.bin文件存放在当前目录。\[2\] 5. 最后,选择一个合适的SD卡,并将uboot的bin文件烧入到SD卡中。将SD卡插入到全志T3开发板中,上电,就可以看到uboot的启动画面了。\[1\] 请注意,具体的uboot下载和编译过程可能会因为不同的开发环境和需求而有所不同。建议参考官方文档或相关资源以获取更详细的指导。 #### 引用[.reference_title] - *1* *3* [全志V3S嵌入式驱动开发(uboot移植)](https://blog.csdn.net/feixiaoxing/article/details/130818942)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* [全志A33-编译uboot](https://blog.csdn.net/u012247418/article/details/80941662)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值