您的位置:首页 > 其它

PB生成的wince镜像文件说明

2011-01-09 22:06 239 查看
先说下.bin和nb0(x)文件的差别:
两个都是CE的镜像,通过串口直接下载用nb0,pb下载用bin,nb0文件要大一些。

.nb0是可以直接烧到FLASH/ROM中的,是代码镜像,可以直接跳转到其入口执行。
nb0是非压缩的数据,里面的数据是实际的NK展开以后在内存里面的数

.bin是Microsoft binary image格式的文件,必须按其格式定义解开到其指定的地址空间的位置才能执行。
bin是有压缩的数据,里面的数据是压缩以后类似于成块形的数据,被loader拷贝到内存以后没有区别。

常见的Windows CE运行时映像有以bin和nb0为扩展名的两种格式。
BIN文件是默认的Windows CE运行时映像格式。它按照Section组织文件的内容,每个Section都有自己的起始地址,长度和校验和。BIN文件不能直接被执行,必须被按照一定的格式解开到内存里才能执行。
NBx(有可能是NB0,NB1……根据配置而定)文件是可以被烧进Flash ROM中的按位分(byte-for-byte)的原始数据。可以直接从Flash ROM中本地执行。

David Kelley [MS] (Expert):
Q: Which is the difference between the nk.nb0 and nk.bin image created by PB5.0?
A: .nb0 files is a raw file format suitable for flashing ROM via a ROM programmer while the .bin file is a MS format we use to download images to the device via the bootloader. In the end, same information, different formats.

sschrock [MS] (Expert):
Q: Which is the difference between the nk.nb0 and nk.bin image created by PB5.0?
A: .nb0 is a raw image that can be written to ROM as-is. .bin is a special format that has empty chunks removed so that it takes less space and downloads more quickly.

1.stepldr:天嵌BBS上斑竹说,和UBOOT类似,也是用于下载和启动系统的,只不过它是用来下载和启动WINCE的,stepldr将eboot搬运到Nand Flash中,然后再运行eboot。
2.Nk.bin:必需。按照section组织的二进制操作系统映像
3.Nk.nb0:可选。可以直接烧到Flash中,支持XIP的操作系统映像
4.Eboot.bin:可选。按照section组织的二进制以太网BootLoader映像
5.Eboot.nb0:可选。可以直接烧到Flash中,支持XIP的以太网BootLoader映像

File Description
Xip.bin A single .bin file containing all XIP regions.
Nk.bin A .bin file for the NK region.
Shell.bin A .bin file for the SHELL region.
Apps.bin A .bin file for the APPS region.
Chain.bin A .bin file for the XIP chain. The XIP chain is a list of all XIP regions that reside in flash memory or RAM and is accessible from the OEM Adaptation Layer (OAL).
Eboot.bin A .bin file for the Ethernet boot loader.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: