生成nb0文件的的工具——Cvrtbin Tool

    技术2026-05-26  8

    生成nb0文件的的工具——Cvrtbin Tool

    最近在做CE6.0的时候,bootloader怎么编译都无法生成nb0,只生成bin文件。根据提示:————————————————————————————————The BIB file details the MEMORY layout that the loader will use. Romimage.exe uses this file to convert the boot loader executable into .bin and .nb0 files. For more information about BIB files, see Binary Image Builder File. For more information about Romimage.exe, see Romimage.---------------------------------------------------

    CONFIG    COMPRESSION=OFF    PROFILE=OFF    KERNELFIXUPS=ON        ; These configuration options cause the .nb0 file to be created.     ; An .nb0 file may be directly written to flash memory and then     ; booted. Because the loader is linked to execute from RAM,

    ————————————————————————————————即使添加了也没有效果。只有使用手工方法进行操作了。以下也是从微软的帮助文档中获得的,供参考。————————————————————————————————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.

    <-r | -s> -a StartAddress -l ImageLength -w ImageWidthfilename

    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.

    Examples

    The following code example shows the output from the Viewbin tool for a run-time image:

    C:>viewbin nk.bin ViewBin... nk.bin Image Start = 0x00220000, length = 0x00AC136C Start address = 0x0023D618 Checking record #72 for potential TOC (ROMOFFSET = 0x80000000) Found pTOC = 0x80ce02c0 ROMOFFSET = 0x80000000 Done.

    Using this output, the following code example shows the syntax used to create an nk.nb0 file, using the values found in the Image Start and length lines:

    e C:>cvrtbin -r -a 00220000 -l 00ac136c -w 32 nk.bin
    最新回复(0)