admin 管理员组

文章数量: 1086865

2440开发板恢复出厂设置

1- eop烧写uboot

参考:2440开发板环境搭建--“1- 使用JTAG+oflash烧写程序”

2- uboot下烧写内核

1- 启动开发板,在倒数前按下空格,进入到uboot命令行中。

2- 输入“k”,

3- 打开dnw_100ask.exe软件,找到要传输的内核文件“uImage_4.3”

等待文件烧写完成

#### 100ask Bootloader for OpenJTAG #####
[n] Download u-boot to Nand Flash
[c] Re-scan Nor Flash
[u] Copy bootloader from nand to nor
[v] Copy bootloader from nor to nand
[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:1848802]
RECEIVED FILE SIZE: 1848802 (601KB/S, 3S)NAND erase: device 0 offset 0x60000, size 0x200000
Erasing at 0x240000 -- 100% complete.
OKNAND write: device 0 offset 0x60000, size 0x1c35d8Writing data at 0x223000 -- 100% complete.1848792 bytes written: OK

3- uboot下烧写yaffs文件系统

1- 启动开发板,在倒数前按下空格,进入到uboot命令行中。

2- 输入“y”,

3- 打开dnw_100ask.exe软件,找到要传输的内核文件“fs_qtopia.yaffs2”

等待文件烧写完成

[n] Download u-boot to Nand Flash
[c] Re-scan Nor Flash
[u] Copy bootloader from nand to nor
[v] Copy bootloader from nor to nand
[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:7934794]
RECEIVED FILE SIZE: 7934794 (596KB/S, 13S)NAND erase: device 0 offset 0x260000, size 0xfda0000
Skipping bad block at  0x01400000
Skipping bad block at  0x07600000
Skipping bad block at  0x078e0000
Skipping bad block at  0x0abc0000
Skipping bad block at  0x0f880000
Skipping bad block at  0x0faa0000
Erasing at 0xffa0000 --   3% complete.
OKNAND write: device 0 offset 0x260000, size 0x791340Writing data at 0x9d6000 -- 100% complete.7934784 bytes written: OK##### 100ask Bootloader for OpenJTAG #####
[n] Download u-boot to Nand Flash
[c] Re-scan Nor Flash
[u] Copy bootloader from nand to nor
[v] Copy bootloader from nor to nand
[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

4- 恢复默认参数设置

1- 输入“q”, 退出menu菜单

2- 输入“mtd”查看分区情况

3- 擦除系统参数:“nand erase params”,等待擦除完成。

OpenJTAG> mtddevice nand0 <nandflash0>, # parts = 4#: name                        size            offset          mask_flags0: bootloader          0x00040000      0x00000000      01: params              0x00020000      0x00040000      02: kernel              0x00200000      0x00060000      03: root                0x0fda0000      0x00260000      0active partition: nand0,0 - (bootloader) 0x00040000 @ 0x00000000defaults:
mtdids  : nand0=nandflash0
mtdparts: mtdparts=nandflash0:256k@0(bootloader),128k(params),2m(kernel),-(root)
OpenJTAG> nand erase paramsNAND erase: device 0 offset 0x40000, size 0x20000
Erasing at 0x40000 -- 100% complete.
OK

本文标签: 2440开发板恢复出厂设置