月曜日, 12月 27, 2010

nk.bin and dumprom

nk.bin and dumprom
1. to dump the content of a nk.bin:
viewbin.exe nk.bin
(write down start and length)

2. cvrtbin -r -a START -w 32 -l LENGTH nk.bin
this command converts the nk.bin to a nk.nb0 (START and LENGTH from the command bevor)

3. dumprom.exe -d dump -v -5 nk.nb0
the content of the nk.bin will be written in the directory "dump". It must exists, otherwise an error occurs.

4. now, see files that is extracted and you will know that they are changed to MIPS files.

提取 NK.bin 中的文件
需要用到3个工具:
WINCE500\PUBLIC\COMMON\OAK\BIN\I386下的 viewbin.exe cvrtbin.exe,
和dos文件dumprom.exe
工具说明:
viewbin.exe——查看NK.bin文件。
cvrtbin.exe——生成NK.nb0, 注意,此工具只能操作当前目录。
dumprom.exe——dos程序, 提取NK.nb0里的文件。
注意要先建立空目录,因为它不能自动建立目录,或者提取文件到当前目录(.\)。

步骤:
1.运行 viewbin NK.bin > view.txt 以查看文件长度和起始地址
2.拷贝文件view的第二行的起始和长度信息
3.运行 cvrtbin -r -l 长度 -a 起始地址, -w 32 NK.bin
如 cvrtbin -r -l 0x0120FFC8 -a 0x800B8000, -w 32 NK.bin
4.md nb0_file
5.dumprom NK.nb0 -d nb0_file


dumprom romfile extraction tool
and his Windows CE / PocketPC stuff

NK.bin与NK.nb格式
Patch an Existing NK.BIN

0 件のコメント: