WINCE cvrtbin命令简介
********************************LoongEmbedded********************************
作者:LoongEmbedded(kandi)
時間:2010.10.25
類別:WINCE嵌入式操作系統(tǒng)
********************************LoongEmbedded********************************
WINCE cvrtbin命令簡介
關(guān)于cvrtbin的用途,最常用的就是將NK.bin轉(zhuǎn)換出NK.nb0。用法如下:
Cvrtbin (Cvrtbin.exe) is a command-line tool that converts read-only memory (ROM) files from binary (.bin) format to Motorola 32-bit (.sre) format or absolute binary (.abx) format.
?
cvrtbin <-r | -s> -a StartAddress -l ImageLength -w ImageWidth? filename
?
Parameters
-s
Generates an .sre file from a .bin file.
-r
Generates a ROM file from a .bin file.
-a
Specifies the ROM starting address. You must specify this parameter when converting a .bin file to a ROM format.
-w
Specifies ROM width, which is set to either 8, 16, or 32 bits. You must specify this parameter when converting a .bin file to a ROM format.
-l
Specifies ROM length, expressed as a hexadecimal value. You must specify this parameter when converting a bin file to a ROM format.
?
StartAddress
Specifies the start of the run-time image in memory.
?
ImageLength
Specifies the length of the run-time image in memory.
?
ImageWidth
Specifies the width of the run-time image in memory.
?
filename
Specifies the file name of the target run-time image, typically nk.bin.
?
cvrtbin [options] [filename]
-s 從bin文件中產(chǎn)生sre文件
-r 從bin文件中產(chǎn)生rom文件
-a rom文件的起始地址
-w 總線的寬度
-l rom文件的大小
這個工具可以和viewbin工具一起使用,將NK.bin文件轉(zhuǎn)換成NK.nb0。首先通過:viewbin nk.bin命令獲得NK.bin的起始地址和大小,如下所示:
從上圖可以知道image start和length的值,然后通過下面的命令:
Cvrtbin –r –a 0x80200000 –l 0x00E6610C –w 32 nk.bin
如下圖所示:
也可以通過下面的命令:
Cvrtbin –a 0x80200000 –l 0x00E6610C –w 32 –r nk.bin,如下圖所示:
這樣就可以將NK.bin轉(zhuǎn)換成NK.nb0。起始地址為0x802C0000,大小是0x00E6610C,總線寬度為32bit,最后輸出NK.nb0,也可以通過下面的命令來輸出到output.txt文本文件中
輸出的output.txt文本文件如下
……………………….
?
也可以通過上面類似的命令來生成.src文件,我們也可以在config.bib中通過加入如下內(nèi)容:
SRE=ON
這樣在編譯的時候Romimage.exe就會編譯生成NK.src文件,如果config.bib中沒有SRE的設(shè)置或者是SRE=OFF,Romimage.exe就不會編譯生成NK.src文件。
?
總結(jié)
以上是生活随笔為你收集整理的WINCE cvrtbin命令简介的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: WINCE viewbin命令
- 下一篇: 安装RVDS2.2破解版