|
本帖最后由 6724243 于 2012-2-13 22:49 编辑
小弟用的是天嵌4.3寸屏,Nand Flash256M的开发板,,按照“天嵌配套光盘\TQ2440_CD\出厂烧录镜像合集\烧写方法.txt”,
wince烧写方法:
从nor启动进入uboot下载模式:开机-》选择1,烧写stepldr.nb1文件-》选择2,烧写eboot,-》
选择b,烧写logo文件,-》关机。
然后从nand启动进行烧写:开机的时候按住空格键,选择b,选择9,然后选择u,用DNW烧写NK文件。
等几分钟完成后会自动进入到WinCE系统,然后重启开发板即可正常使用。
烧写winCE镜像,为什么最后提示“Failed to load kernel region into RAM..,请大虾们帮忙分析一下原因,本人在此先谢过了。串口工具打印的信息具体如下:
##### Eboot for TQ2440/SKY2440 #####
##### www.embedsky.net #####
Microsoft Windows CE Bootloader for TQ2440/SKY2440 Version 6.0 Built Jun 12 2010
Press [ENTER] to launch image stored on boot media, or [SPACE] to enter boot monitor.
Initiating image launch in 1 seconds.
Ethernet Boot Loader Configuration:
0) IP address: 192.168.1.6
1) Subnet mask: 255.255.255.0
2) DHCP: Disabled
3) Boot delay: 1 seconds
4) Reset to factory default configuration
5) Startup image: LAUNCH EXISTING
6) Program disk image into SmartMedia card: Enabled
7) Program DM9000 MAC address (10:23:45:67:89:AB)
8) Kernel Debugger: ENABLED
9) Format Boot Media for BinFS
B) Mark Bad Block at Reserved Block
D) Download image now(USE TFTP)
E) Erase Reserved Block
F) Low-level format the Smart Media card
L) LAUNCH existing Boot Media image
R) Read Configuration
U) Download image now(USE USB)
W) Write Configuration Right Now
Enter your selection: u
USB host is connected. Waiting a download.
到这一步我通过DNW工具,烧写wince6.0的“NK_Q43_3Serial_20100603.bin”,然后串口继续打印出如下信息:
Addr: 0x30000000 ; Size: 0x1ED2BA5
Read Bin Files StartAddr:0x80200000 ; Length: 0x1F44084
Download BIN file information:
-----------------------------------------------------
[0]: Base Address=0x80200000 Length=0x1f44084
-----------------------------------------------------
+=OEMVerifyMemory+ dwStartAddr:0x80200000 dwLength:0x1f44084
RAM image 0xa 0x82144083
+WriteOSImageToBootMedia: g_dwTocEntry =1, ImageStart: 0x0, ImageLength: 0x0, LaunchAddr:0x0
Writing single region/multi-region update, dwBINFSPartLength: 32784516
CreatePartition: Enter CreatePartition for 0x21.
LastLogSector: Last log sector is: 0xfeeff.
CreatePartition: Start = 0x1100, Num = 0xfb00.
WriteMBR: MBR block = 0x10.
WriteData: Start = 0x0, Length = 0x1f44084.
CreatePartition: Enter CreatePartition for 0xb.
FindFreeSector: FreeSector is: 0x10c00 after processing part 0x21.
CreatePartition: Num sectors set to 0xed900 to allow for compaction blocks.
CreatePartition: Start = 0x10c00, Num = 0xed900.
WriteMBR: MBR block = 0x10.
INFO: using TOC[1] dwJumpAddress: 0x0
waitforconnect
ERROR:OALVAtoPA: invalid virtual address 0x00000000
INFO: OEMLaunch: Jumping to Physical Address 0x0h (Virtual Address 0x0h)...
##### Eboot for TQ2440/SKY2440 #####
##### www.embedsky.net #####
Microsoft Windows CE Bootloader for TQ2440/SKY2440 Version 6.0 Built Jun 12 2010
Press [ENTER] to launch image stored on boot media, or [SPACE] to enter boot monitor.
Initiating image launch in 0 seconds.
Launching image from boot media ...
OEMPlatformInit: IMAGE_TYPE_RAMIMAGE
+=OEMVerifyMemory+ dwStartAddr:0x0 dwLength:0x4
Stepldr image
+=OEMVerifyMemory+ dwStartAddr:0x0 dwLength:0x4
Stepldr image
ReadOSImageFromBootMedia: ERROR_INVALID_ADDRESS: (address=0x0, sectors=0x0, launch address=0x0)...
OEMPlatformInit ERROR: Failed to load kernel region into RAM.
补充个问题:我从NOR Flash启动后,选择9“Format the Nand Flash”,出现下面情况:
##### EmbedSky BIOS for SKY2440/TQ2440 #####
Press Space key to Download Mode !
##### Boot for Nor Flash Main Menu #####
##### EmbedSky USB download mode #####
[1] Download u-boot or STEPLDR.nb1 or other bootloader to Nand Flash
[2] Download Eboot (eboot.nb0) to Nand Flash
[3] Download Linux Kernel (zImage.bin) to Nand Flash
[5] Download CRAMFS image to Nand Flash
[6] Download YAFFS image (root.bin) to Nand Flash
[7] Download Program (uCOS-II or TQ2440_Test) to SDRAM and Run it
[8] Boot the system
[9] Format the Nand Flash
[0] Set the boot parameters
[a] Download User Program (eg: uCOS-II or TQ2440_Test)
Download LOGO Picture (.bin) to Nand Flash
[l] Set LCD Parameters
[n] Enter TFTP download mode menu
[o] Download u-boot to Nor Flash
[r] Reboot u-boot
[t] Test Linux Image (zImage)
[q] quit from menu
Enter your selection: 9
NAND scrub: device 0 whole chip
Warning: scrub option will erase all factory set bad blocks!
There is no reliable way to recover them.
Use this command only for testing purposes if you
are sure of what you are doing!
Really scrub this NAND flash? <y/N> :
y→Enter变成下面:
Really scrub this NAND flash? <y/N> : scrub aborted
感觉NAND flash并没有格式化,请问各位大侠还有什么办法才能将NAND flash进行格式化?
|
|