【记录】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

你可能感兴趣的:(S3C2440A)