NK.bin 辅助工具

有时候需要简单的查看一下NK.bin(CE ROM)中的文件,就需要小工具,这些工具在WinCE SDK中有很多,下面简单介绍几个:

viewbin.exe:显示Bin文件中的内容
                      Displays information about the contents of a run-time image.
cvrtbin.exe  :将.BIN格式转换为其他格式(SRE或者NBX)
                      Converts read-only memory (ROM) files from binary (.bin) format to SRE or NBX (.nb0) format.
binmod.exe :提取文件或者更换BIN中的文件
                      Extracts files from a run-time image, and replaces files in a run-time image.
dumprom.exe:使用.nb0作为输入文件,从内核中提取所有的文件或者模块。
                        this tool extracts all files and modules from the kernel. It does not use NK.BIN files as input but NK.nb0 files, which can be created with the cvrtbin.exe

工具下载

如果需要获取NK.BIN中的内容,可以使用下面的方式:
>>viewbin.exe nk.bin
获取起始地址和长度
>>cvrtbin –r –a –w 32 –l nk.bin
将nk.bin转换为nk.nb0 (起始地址START和长度LENGTH通过前一个命令获取)
>>dumprom.exe –d –v –5 nk.nb0
将nk.nb0的所有内容释放到所指定的文件夹,该命令不会自动创建文件夹,所以这个文件夹要先创建

例子:

>>viewbin.exe nk.bin
ViewBin... nk.bin
Image Start = 0x80070000, length = 0x01DCC294
                Start address = 0x80076068
Checking record #40 for potential TOC (ROMOFFSET = 0xFEB482C4)
Checking record #131 for potential TOC (ROMOFFSET = 0x00000000)
Found pTOC  = 0x81e39cc8
ROMOFFSET = 0x00000000
Done.

>>cvrtbin -r -a 0x80070000 -w 32 -l 0x01DCC294 nk.bin
……

>>dumprom.exe -d nk_dump -v -5 nk.nb0
……

(注意:nk_dump为dump的输出目录,这个需要在运行这个命令前,自己手动创建)

参考网址:
NK.BIN toolset: http://www.t-hack.com/wiki/index.php/NK.BIN_toolset
WinCE Utilities: http://msdn.microsoft.com/en-us/library/aa448635.aspx

  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值