NK. Bin and NK. nb0

Source: Internet
Author: User
Tags format definition

Both NK. Bin and NK. nb0 are ce images. However, we often encounter this problem during the download process. Sometimes we download NK. bin, and sometimes we download NK. nb0. What is the difference between the two?

First, the content in NK. Bin is compressed, and the content in NK. nb0 is not compressed.
The difference between the two is that bin will automatically remove the null after you set during the generation process, and nb0 won't.
The size of nb0 is the size set by the third variable romsize.
Because NK. nb0 is non-compressed data, the data in it is the data in the memory after NK is expanded.
However, NK. Bin contains compressed data, which is similar to block data after compression. It is no difference after being copied to the memory by loader.
Because the binfile needs to be decompressed, the download method is different,
Generally, nb0 is used for direct download through the serial port, and bin is used for Pb download.

Secondly, NK. nb0 can be directly burned to flash/ROM. It 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.

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.
The nb0 format is the original binary image, which does not include the header. Generally, the system uses the nb0 format to download the kernel to the ram of the device. To generate an nbx file, you need to determine the following values in the related. bib file: romstart, romwidth, and romsize.

 

Note:

In the config. bib file, there are three settings:

Romstart = xxxx
Romwidth = xxxx
Romsize = xxxxxx
These three variables must be assigned values.

 

In addition, bootloader can support downloading nb0 or bin. The general practice is to directly download nb0 files to flash, download the bin files, decompress the files, and then burn them to flash.
In fact, it can also be used as a bin to burn to flash, and load it out before decompression, but this will prolong the start time, this method will only be used in the case of insufficient flash space.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.