6724243 发表于 2012-2-13 21:59:21

大虾们,烧写winCE镜像时,为什么最后提示“Failed to load kernel region into RAM..

本帖最后由 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 to launch image stored on boot media, or 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:
-----------------------------------------------------
: Base Address=0x80200000Length=0x1f44084
-----------------------------------------------------
+=OEMVerifyMemory+ dwStartAddr:0x80200000dwLength: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 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 to launch image stored on boot media, or to enter boot monitor.
Initiating image launch in 0 seconds.
Launching image from boot media ...
OEMPlatformInit: IMAGE_TYPE_RAMIMAGE
+=OEMVerifyMemory+ dwStartAddr:0x0dwLength:0x4
Stepldr image
+=OEMVerifyMemory+ dwStartAddr:0x0dwLength: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   #####
Download u-boot or STEPLDR.nb1 or other bootloader to Nand Flash
Download Eboot (eboot.nb0) to Nand Flash
Download Linux Kernel (zImage.bin) to Nand Flash
Download CRAMFS image to Nand Flash
Download YAFFS image (root.bin) to Nand Flash
Download Program (uCOS-II or TQ2440_Test) to SDRAM and Run it
Boot the system
Format the Nand Flash
Set the boot parameters
Download User Program (eg: uCOS-II or TQ2440_Test)
Download LOGO Picture (.bin) to NandFlash
Set LCD Parameters
Enter TFTP download mode menu
Download u-boot to Nor Flash
Reboot u-boot
Test Linux Image (zImage)
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进行格式化?

cepoly 发表于 2012-2-14 00:30:48

太长了,只看到最后一句‘请问各位大侠还有什么办法才能将NAND闪存进行格式化?’
用SecureCRT烧写软件选第9个就行了
Download u-boot or STEPLDR.nb1 or other bootloader to Nand Flash
Download Eboot (eboot.nb0) to Nand Flash
Download Linux Kernel (zImage.bin) to Nand Flash
Download CRAMFS image to Nand Flash
Download YAFFS image (root.bin) to Nand Flash
Download Program (uCOS-II or TQ2440_Test) to SDRAM and Run it
Boot the system
Format the Nand Flash
Set the boot parameters
Download User Program (eg: uCOS-II or TQ2440_Test)
Download LOGO Picture (.bin) to NandFlash
Set LCD Parameters
Enter TFTP download mode menu
Download u-boot to Nor Flash
Reboot u-boot
Test Linux Image (zImage)
quit from menu

liush_69 发表于 2012-2-14 13:50:02

我的比较顺利,没遇到过这种情况

6724243 发表于 2012-2-14 20:08:01

cepoly 发表于 2012-2-14 00:30 static/image/common/back.gif
太长了,只看到最后一句‘请问各位大侠还有什么办法才能将NAND闪存进行格式化?’
用SecureCRT烧写软件选第 ...

我就是选择9然后回车,出现下面的情况:
Really scrub this NAND flash? <y/N> :
y→Enter变成下面:
Really scrub this NAND flash? <y/N> : scrub aborted

谢谢你的回复!

6724243 发表于 2012-2-15 18:26:02

问题已解决!
wince烧写方法:
从nor启动进入uboot下载模式:开机-》选择1,烧写stepldr.nb1文件-》选择2,烧写eboot,-》
选择b,烧写logo文件,-》关机。

然后从nand启动进行烧写:开机的时候按住空格键,选择b,选择9(注意:这一步进行两次,这是成功的关键所在),然后选择u,用DNW烧写NK文件。
等几分钟完成后会自动进入到WinCE系统,然后重启开发板即可正常使用谢谢各位的积极响应!

zbb564833642 发表于 2012-2-17 17:12:55

呵呵 ,学习 。。、、

jlpeter 发表于 2012-7-2 22:28:12

6724243 发表于 2012-2-15 18:26 static/image/common/back.gif
问题已解决!
wince烧写方法:
从nor启动进入uboot下载模式:开机-》选择1,烧写stepldr.nb1文件-》选择2 ...

我的烧写玩给你的一个情况,按照这个选择9两次的方法还是不行哎,郁闷:(

神琨 发表于 2012-7-30 12:29:20

我也遇到同样的情况了,烧写出厂带的镜像就没有问题,自己编译的就不行

封帛 发表于 2012-10-14 21:11:52

6724243 发表于 2012-2-15 18:26 static/image/common/back.gif
问题已解决!
wince烧写方法:
从nor启动进入uboot下载模式:开机-》选择1,烧写stepldr.nb1文件-》选择2 ...

选择9后显示屏就变成了上面一半是白屏!!!!而且选择U后,出现:

Enter your selection: u

USB host is connected. Waiting a download.

Addr: 0x3000000 ; Size: 0x1AEF06D
Read Bin Files StartAddr:0x80200000 ; Length: 0x1B56CE0

Download BIN file information:
-----------------------------------------------------
: Base Address=0x80200000Length=0x1b56ce0
-----------------------------------------------------
+=OEMVerifyMemory+ dwStartAddr:0x80200000dwLength:0x1b56ce0
RAM image 0xa 0x81d56cdf
然后就没反应了,请问该怎么解决啊?

TQ-lkp 发表于 2012-10-15 09:08:05

封帛 发表于 2012-10-14 21:11 static/image/common/back.gif
选择9后显示屏就变成了上面一半是白屏!!!!而且选择U后,出现:

Enter your selection: u


有可能是eboot的问题
页: [1]
查看完整版本: 大虾们,烧写winCE镜像时,为什么最后提示“Failed to load kernel region into RAM..