天嵌 ARM开发社区

 找回密码
 注册
查看: 3357|回复: 7

烧写NK镜像出错(求教)

[复制链接]
upchj 发表于 2010-11-3 09:15:56 | 显示全部楼层 |阅读模式
wince6.0  烧写NK镜像时,按照教程,命令是:b》9》u
教程上说,在进行命令 9 时,应当对一些我们设定人为坏块进行保护(命令b) ,可是,
在我的实际烧写时,并没有对这些坏块进行保护,导致在下载NK镜像后就没有任何反应了。具体提示情况如下:
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: b
Reserving Blocks [0x0 - 0xf] ...
...reserve complete.

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: 9
Enter TQ2440 FastLowLevelFormat [0x10, 0x7ff].
Format TQ2440 Nand Flash: ...erase complete.
WriteMBR: MBR block = 0x10.
BP_FastLowLevelFormat: Done.


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.

Addr: 0x30000000 ; Size: 0x1EB87D5
Read Bin Files StartAddr:0x80200000 ; Length: 0x1F2A088

Download BIN file information:
-----------------------------------------------------
[0]: Base Address=0x80200000  Length=0x1f2a088
-----------------------------------------------------
+=OEMVerifyMemory+ dwStartAddr:0x80200000  dwLength:0x1f2a088
RAM image 0xa 0x8212a087

##### 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.


请问我应该如何修正这个问题??  谢谢!!

评分

参与人数 1 +3 收起 理由
shubiao8799 + 3

查看全部评分

天嵌_support1 发表于 2010-11-3 11:37:44 | 显示全部楼层
1# upchj



网友到处发英雄帖..........
你加我QQ1526107786,我给你操作一下看看。
现在市面上有很多模仿我们的板子
 楼主| upchj 发表于 2010-11-3 15:49:18 | 显示全部楼层
我的开发板已经发回去了,现在板子不在我这,等板子回来我联系你。
天嵌_support1 发表于 2010-11-3 18:07:15 | 显示全部楼层
3# upchj


网友是自己开发底板。要注意你的USB口吧。
dongls 发表于 2011-8-11 19:56:23 | 显示全部楼层
我的也是这个问题,不知楼主是怎么解决的.
 楼主| upchj 发表于 2011-10-2 11:41:38 | 显示全部楼层
本帖最后由 upchj 于 2012-5-15 09:27 编辑

今天闲来无事,决定把这个天嵌一直不给解决的问题给弄清楚,决定从头来一遍,过程如下:
1、烧写uboot,用的是最新版(nand和nor 都烧写)
2、烧写 wince6.0  按照教程上的一步一步烧写-------烧写不成功
3、烧写 wince5.0(用论坛下的最新版镜像) ----------烧写不成功
4、为了确定是否硬件出错,重新用开发板自带的光盘 (09年08月)烧写wince5.0,这里需要重新烧写uboot-----------成功,说明硬件没有问题
5、再次重复1.
6、烧写wince6.0  ,过程如下:前面的安装教程,一直到最后,烧写NK镜像时,按照教程 B》9》U  -----------烧写不成功        重新烧写NK镜像,使用用命令B》 9》 F》 U----------烧写成功
串口显示如下:
##### 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: DISABLED
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: 9
Enter TQ2440 FastLowLevelFormat [0x10, 0x7ff].
Format TQ2440 Nand Flash: ...erase complete.
WriteMBR: MBR block = 0x10.
BP_FastLowLevelFormat: Done.


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: DISABLED
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: f
Reserving Blocks [0x0 - 0xf] ...
...reserve complete.
Low-level format Blocks [0x10 - 0x7ff] ...
...erase complete.

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: DISABLED
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.

Addr: 0x30000000 ; Size: 0x1EB87D5
Read Bin Files StartAddr:0x80200000 ; Length: 0x1F2A088

Download BIN file information:
-----------------------------------------------------
[0]: Base Address=0x80200000  Length=0x1f2a088
-----------------------------------------------------
+=OEMVerifyMemory+ dwStartAddr:0x80200000  dwLength:0x1f2a088
RAM image 0xa 0x8212a087
rom_offset=0x0.
ROMHDR at Address 80200044h
+WriteOSImageToBootMedia: g_dwTocEntry =1, ImageStart: 0x80200000, ImageLength: 0x1f2a088, LaunchAddr:0x80201000
INFO: OEMLaunch: Found chain extenstion: '' @ 0x80200000
Writing single region/multi-region update, dwBINFSPartLength: 32678024
OpenPartition: Invalid MBR.  Formatting flash.
Enter TQ2440 FastLowLevelFormat [0x0, 0x7ff].
Format TQ2440 Nand Flash: found a bad block (0x0) - skipping...
Format TQ2440 Nand Flash: found a bad block (0x1) - skipping...
Format TQ2440 Nand Flash: found a bad block (0x2) - skipping...
Format TQ2440 Nand Flash: found a bad block (0x3) - skipping...
Format TQ2440 Nand Flash: found a bad block (0x4) - skipping...
Format TQ2440 Nand Flash: found a bad block (0x5) - skipping...
Format TQ2440 Nand Flash: found a bad block (0x6) - skipping...
Format TQ2440 Nand Flash: found a bad block (0x7) - skipping...
Format TQ2440 Nand Flash: found a bad block (0x8) - skipping...
Format TQ2440 Nand Flash: found a bad block (0x9) - skipping...
Format TQ2440 Nand Flash: found a bad block (0xa) - skipping...
Format TQ2440 Nand Flash: found a bad block (0xb) - skipping...
Format TQ2440 Nand Flash: found a bad block (0xc) - skipping...
Format TQ2440 Nand Flash: found a bad block (0xd) - skipping...
Format TQ2440 Nand Flash: found a bad block (0xe) - skipping...
Format TQ2440 Nand Flash: found a bad block (0xf) - skipping...
Format TQ2440 Nand Flash: ...erase complete.
WriteMBR: MBR block = 0x10.
BP_FastLowLevelFormat: Done.

CreatePartition: Enter CreatePartition for 0x21.
LastLogSector: Last log sector is: 0x7efff.
CreatePartition: Start = 0x1100, Num = 0xfa00.
WriteMBR: MBR block = 0x10.
WriteData: Start = 0x0, Length = 0x1f2a088.
Updateded TOC!
CreatePartition: Enter CreatePartition for 0xb.
FindFreeSector: FreeSector is: 0x10b00 after processing part 0x21.
CreatePartition: Num sectors set to 0x6e000 to allow for compaction blocks.
CreatePartition: Start = 0x10b00, Num = 0x6e000.
WriteMBR: MBR block = 0x10.
TOC {
dwSignature: 0x434F544E
BootCfg {
  ConfigFlags: 0x830
  BootDelay: 0x1
  ImageIndex: 1
  IP: 192.168.1.6
  MAC Address: 10:23:45:67:89:AB
  Port: 0.0.0.0
  SubnetMask: 255.255.255.0
}
ID[0] {
  dwVersion: 0x60000
  dwSignature: 0x45424F54
  String: 'eboot.nb0'
  dwImageType: 0x2
  dwTtlSectors: 0x400
  dwLoadAddress: 0x80038000
  dwJumpAddress: 0x80038000
  dwStoreOffset: 0x0
  sgList[0].dwSector: 0x400
  sgList[0].dwLength: 0x400
}
ID[1] {
  dwVersion: 0x1
  dwSignature: 0x43465348
  String: ''
  dwImageType: 0x2
  dwTtlSectors: 0xF951
  dwLoadAddress: 0x80200000
  dwJumpAddress: 0x80201000
  dwStoreOffset: 0x0
  sgList[0].dwSector: 0x2100
  sgList[0].dwLength: 0xF951
}
chainInfo.dwLoadAddress: 0X00000000
chainInfo.dwFlashAddress: 0X00000000
chainInfo.dwLength: 0X00000000
}
waitforconnect
INFO: OEMLaunch: Jumping to Physical Address 0x30201000h (Virtual Address 0x80201000h)...


然后重启,ok,wince6.0出来了
我的第二个板子测试时发现,按照上面的方法还是无法解决烧写NK镜像后不启动的问题,换了一台电脑后,按照上面的方法重新做一遍,OK,问题解决-------烧写时尽量使用品牌机的后面的usb接口,这样电平等等比较稳定,干扰较少。

亚瑟王 发表于 2011-10-17 15:03:11 | 显示全部楼层
解决了就好,下次注意结贴。
mo0000021 发表于 2011-10-26 15:34:35 | 显示全部楼层
谢谢楼主,我的问题也解决了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号 )

GMT+8, 2024-5-5 12:02 , Processed in 1.031250 second(s), 21 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表