Forum Discussion
PHJ
Occasional Contributor
7 years agomkpimage in Boot Tools User Guide
In section 7.3.2 of the Boot Tools User Guide (ug-1137 | 2018.09.24) is the following description: "The header checksum for both versions of the mkpimage header is the CRC checksum of the byte valu...
PHJ
Occasional Contributor
7 years agoHi Ahmed -
I confirmed this by adding a validation routine for new bootloader images that had version 1 of the header - the checksum was correct when done over (n-4) bytes - it also makes sense that the length (n) in version 0 headers are in 32-bit words compared with bytes in the version 1 header and therefore needs the x4 factor in the calculation only for version 0 headers.
The text "header checksum" is just incorrect - the header checksum is just the checksum of the header portion of the image - the image checksum is what is described.
Best Regards,
Paul