diff options
author | Steffen Trumtrar <s.trumtrar@pengutronix.de> | 2020-01-27 15:51:50 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-02-10 09:18:12 +0100 |
commit | 9d12256bfcc69d7ec7c20bd0e5205c54cefea700 (patch) | |
tree | db576eb92d01c083d9655052f453888012ad547b /common/imd-barebox.c | |
parent | 3b27a6eecb5bb6089b490258a54e7873aacf6573 (diff) | |
download | barebox-9d12256bfcc69d7ec7c20bd0e5205c54cefea700.tar.gz barebox-9d12256bfcc69d7ec7c20bd0e5205c54cefea700.tar.xz |
imd: add support for checksum generation/verification
Add a new imd type "checksum". This type consists of the CRC32 checksum
of the whole barebox image minus the checksum itself.
The checksum can be written to the imd field with the bareboximd host-tool.
It can be verified with said tool or with "imd" on the target.
Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/imd-barebox.c')
-rw-r--r-- | common/imd-barebox.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/imd-barebox.c b/common/imd-barebox.c index e9cd37d83e..e5cdfd1aed 100644 --- a/common/imd-barebox.c +++ b/common/imd-barebox.c @@ -23,3 +23,4 @@ __BAREBOX_IMD_SECTION(.barebox_imd_end) = { BAREBOX_IMD_TAG_STRING(imd_build_tag, IMD_TYPE_BUILD, UTS_VERSION, 1); BAREBOX_IMD_TAG_STRING(imd_release_tag, IMD_TYPE_RELEASE, UTS_RELEASE, 1); +BAREBOX_IMD_CRC(imd_crc32, 0x0, 1); |