The binfile format is a Pb-compiled image file, which is generally provided in both binfile and nb0 file formats. The nb0 file is a complete image file in the address space, which is equivalent to a hard copy of the address space. The binfile is a binary ROM image file format. It compresses invalid data compared with the nb0 file. The binfile contains the file header and many segments. Each segment provides the first address, length, verification code, and data in the actual image. 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 00Length of the entire image mapped to the first address
Next is the definition of each segment
00 00 00 0000 00 00 0000 00 00 0000 00 ......00 00
The length of the first CIDR block.
The definition of each segment is the same as above. Note: The nb0 file is a complete image file in the address space, which is equivalent to a hard copy of the address space.