1. BIN:
The Microsoft Windows CE binary image data format (. bin) file format contains several independent records (sections) That must be loaded into ram for execution .. The binfile format can minimize the image size and shorten the loading time, but the Boot loader must provide an explanation for loading to run.
2. NB0:
The. nb0 file is a snapshot of the binary data that can be run on an embedded system. The size of the nb0 file is larger than that of the bin file, but it can be run directly.
Generally, nb0 is used for direct download via serial port, and bin is used for PB download via network cable.
3. About the system kernel
Nk. nb0 is a code image and can be directly directed to its portal for execution.
Nk. bin is a Microsoft binary image file, which must be unlocked to the specified address space according to its format definition before execution.
Bootloader supports downloading NB0 or BIN. A common practice is to decompress the nk. binfile into nk. nb0 by Bootloader and download it to RAM through a network cable. Use the Bootloader function to package the content in the specific address space in RAM (that is, the address space containing nk. nb0), compress it into the nk. bin format, and burn it into Flash. The next time you start the system, you can directly decompress the existing system in Flash.
The bin mentioned here is a binary image format that organizes data in units of segments. Each segment contains a header with the start address, length, and check value specified in the header. The Platform Builder tool combines all the files in the WINCE kernel into one file in bin format. The default file name is nk. bin.
BootLoader splits nk. bin into multiple files in the same format and puts them in RAM. You can type "viewbin nk. bin" in the command line to view the specific content in the binfile. Type the Cvrtbin command to convert the. bin format file to. sre or. abx format.
To generate an nbx file, you need to determine the following values in the related. bib file: ROMSTART, ROMWIDTH, and ROMSIZE.
In the config. bib (boot. bib) file, there are three settings:
ROMSTART = xxxx <br/> ROMWIDTH = xxxx <br/> ROMSIZE = xxxxxx
Binfile format:
The detailed format of the BIND file is as follows:
File Header (Length: 7 bytes, fixed content), equivalent to adding a carriage return to the string "B000FF"
42 30 30 30 46 46 0A
Followed by the basic information of the entire image: (8 bytes)
00 00 00 00 00 00 00
Length of the entire image mapped to the first address
Next is the definition of each segment
00 00 00 00 00 00 00 00 00 00 00 00 ...... 00 00
The length of the first CIDR block.
The definition of each segment is the same as above.