summaryrefslogtreecommitdiff
path: root/include/cros_ec_message.h
diff options
context:
space:
mode:
authorBaruch Siach <baruch@tkos.co.il>2017-07-04 17:23:40 (GMT)
committerStefan Roese <sr@denx.de>2017-07-12 04:57:55 (GMT)
commitdb7cd4ed33d6724937c747a7339810b77d6989da (patch)
tree4bfe8c408df50fc8b345726871dd31bc5b8a45fe /include/cros_ec_message.h
parent37d108b64fabc625ae829bc6ee419c163d523c3b (diff)
downloadu-boot-fsl-qoriq-db7cd4ed33d6724937c747a7339810b77d6989da.tar.xz
tools/kwbimage: fix v1 header verification
The verify_header callback in kwbimage.c only verifies v0 headers checksum. Running 'mkimage -l' on a v1 image gives the following misleading output: GP Header: Size ae000000 LoadAddr 34160600 Implement support for v1 headers. For that, factor out the header checksum code to a separate main_hdr_checksum_ok() routine. This routine relies on the fact that the checksum field offset is the same in both v0 and v1 headers. With this patch applied 'mkimage -l' correctly identifies the image: Image Type: MVEBU Boot from sdio Image Image version:1 Data Size: 398904 Bytes = 389.55 KiB = 0.38 MiB Load Address: 007fffc0 Entry Point: 00800000 Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'include/cros_ec_message.h')
0 files changed, 0 insertions, 0 deletions