mini2440 64M版的。只有Nor Flash有bootloader,NAND Flash的被我格掉了。把光盘上的test程序,通过[d]的方式可以跑。但是几个《嵌入式linux应用开发完全手册》上的例子无法运行。例程需要下载到NAND Flash 0x0地址。我从NOR Flash启动,在bootloader中用[d]方式,发现dnw无法把程序下载到0x0的地址,即使options里面显示的是0x00000000。用[a]方式也一样。
##### FriendlyARM BIOS for 2440 #####
[x] bon part 0 320k 2368k
[v] Download vivi
[k] Download linux kernel
[y] Download root_yaffs image
[c] Download root_cramfs image
[a] Absolute User Application
[n] Download Nboot
[e] Download Eboot
[i] Download WinCE NK.nb0
[w] Download WinCE NK.bin
[d] Download & Run
[z] Download zImage into RAM
[g] Boot linux from RAM
[f] Format the nand flash
[p] Partition for Linux
[b] Boot the system
[s] Set the boot parameters
[t] Print the TOC struct of wince
[u] Backup NAND Flash to HOST through USB(upload)
[r] Restore NAND Flash from HOST through USB
[q] Goto shell of vivi
Enter your selection: a
USB host is connected. W
Now, Downloading [ADDRESS:30000000h,TOTAL:82995]
RECEIVED FILE SIZE: 82995 (81KB/S, 1S)
Downloaded file at 0x30000000, size = 82985 bytes
Flash params: oobsize = 16, oobblock = 512, erasesize = 16384, partition size =
98304
Erasing and programming NAND with checking bad blocks
Block erasing(addr/count) --- Block bad(addr/count) --- Block processed/All(%)
--------------------------------------------------------------------------------
0x00014000/00006 0x00000000/00000 00006/00006=10
Erasing and programming OK:
Blocks scanned: 6, Blocks erased: 6, Blocks are bad: 0
##### FriendlyARM BIOS for 2440 #####
[x] bon part 0 320k 2368k
[v] Download vivi
[k] Download linux kernel
[y] Download root_yaffs image
[c] Download root_cramfs image
[a] Absolute User Application
[n] Download Nboot
[e] Download Eboot
[i] Download WinCE NK.nb0
[w] Download WinCE NK.bin
[d] Download & Run
[z] Download zImage into RAM
[g] Boot linux from RAM
[f] Format the nand flash
[p] Partition for Linux
[b] Boot the system
[s] Set the boot parameters
[t] Print the TOC struct of wince
[u] Backup NAND Flash to HOST through USB(upload)
[r] Restore NAND Flash from HOST through USB
[q] Goto shell of vivi
Enter your selection: a
USB host is connected. Waiting a download.
Now, Downloading [ADDRESS:30000000h,TOTAL:15522]
RECEIVED FILE SIZE: 15522 (15KB/S, 1S)
Downloaded file at 0x30000000, size = 15512 bytes
Flash params: oobsize = 16, oobblock = 512, erasesize = 16384, partition size =
16384
Erasing and programming NAND with checking ba
Block erasing(addr/count) --- Block bad(addr/count) --- Block processed/All(%)
--------------------------------------------------------------------------------
0x00000000/00001 0x00000000/00000 00001/00001=100%
Erasing and programming OK:
Blocks scanned: 1, Blocks erased: 1, Blocks are bad: 0