【记录】Windows下DNW和uboot烧写

准备

  1. uboot在NORFLASH中,所以先设置设置拨码开关,选择NORFLASH启动
  2. 打开SecureCRT,用于操作uboot,查看串口信息
  3. 打开DNW工具,发送文件

烧写

重启板卡,串口中显示如下信息,根据需要下载不同的bin文件。

##### 100ask Bootloader for OpenJTAG #####
[n] Download u-boot to Nand Flash
[o] Download u-boot to Nor Flash
[k] Download Linux kernel uImage
[j] Download root_jffs2 image
[y] Download root_yaffs image
[d] Download to SDRAM & Run
[z] Download zImage into RAM
[g] Boot linux from RAM
[f] Format the Nand Flash
[s] Set the boot parameters
[b] Boot the system
[r] Reboot u-boot
[q] Quit from menu
Enter your selection: 

烧写内核

  1. 在uboot菜单中输入‘k’
  2. 使用dnw工具的usb port->Transmit菜单项,发送uImage_4.3文件
  3. 在串口中查看烧写信息
##### 100ask Bootloader for OpenJTAG #####
[n] Download u-boot to Nand Flash
[o] Download u-boot to Nor Flash
[k] Download Linux kernel uImage
[j] Download root_jffs2 image
[y] Download root_yaffs image
[d] Download to SDRAM & Run
[z] Download zImage into RAM
[g] Boot linux from RAM
[f] Format the Nand Flash
[s] Set the boot parameters
[b] Boot the system
[r] Reboot u-boot
[q] Quit from menu
Enter your selection: k
USB host is connected. Waiting a download.

Now, Downloading [ADDRESS:30000000h,TOTAL:1848742]
RECEIVED FILE SIZE: 1848742 (902KB/S, 2S)

NAND erase: device 0 offset 0x60000, size 0x200000
Erasing at 0x240000 -- 100% complete.
OK

NAND write: device 0 offset 0x60000, size 0x1c359c

Writing data at 0x223000 -- 100% complete.
 1848732 bytes written: OK

烧写文件系统

  1. 在uboot菜单中输入“y”
  2. 使用DNW发送fs_qtopia_ts.yaffs2文件
  3. 串口中查看烧写信息
##### 100ask Bootloader for OpenJTAG #####
[n] Download u-boot to Nand Flash
[o] Download u-boot to Nor Flash
[k] Download Linux kernel uImage
[j] Download root_jffs2 image
[y] Download root_yaffs image
[d] Download to SDRAM & Run
[z] Download zImage into RAM
[g] Boot linux from RAM
[f] Format the Nand Flash
[s] Set the boot parameters
[b] Boot the system
[r] Reboot u-boot
[q] Quit from menu
Enter your selection: y
USB host is connected. Waiting a download.

Now, Downloading [ADDRESS:30000000h,TOTAL:49769290]
RECEIVED FILE SIZE:49769290 (684KB/S, 71S)

NAND erase: device 0 offset 0x260000, size 0xfda0000
Skipping bad block at  0x00960000                                            
Skipping bad block at  0x031e0000                                            
Skipping bad block at  0x03fc0000                                            
Skipping bad block at  0x04a60000                                            
Skipping bad block at  0x06e00000                                            
Skipping bad block at  0x091c0000                                            
Skipping bad block at  0x09a60000                                            
Skipping bad block at  0x0d640000                                            
Skipping bad block at  0x0e480000                                            
Erasing at 0xffe0000 -- 100% complete.
OK

NAND write: device 0 offset 0x260000, size 0x2f76b40

Bad block at 0x960000 in erase block from 0x960000 will be skipped
Writing data at 0x30a6000 -- 100% complete.
 49769280 bytes written: OK
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值