-
Notifications
You must be signed in to change notification settings - Fork 0
Binary File Format
John Serock edited this page May 21, 2023
·
1 revision
The paramconfig
, fw_update
, and bin_update
files contain a binary image preceded by a 32-byte header.
The following table depicts the layout of the header fields:
Header Bytes | Field Description |
---|---|
0 – 3 | Unknown |
4 – 7 | Number of bytes in binary image |
8 – 11 | Unknown |
12 – 15 | CRC-32 of image |
16 – 19 |
paramconfig version (in paramconfig file only) |
20 – 23 | Unknown |
24 – 27 | Unknown |
28 – 31 | CRC-32 of header bytes 0 – 27 |
The known fields are unsigned 32-bit integers represented in little-endian format.
For bin_upgrade
and paramconfig
files, the CRC-32 algorithm uses an initial value of 0
.
For fw_upgrade
files, the CRC-32 algorithm uses an initial value of 0xffffffff
.