From 9d12256bfcc69d7ec7c20bd0e5205c54cefea700 Mon Sep 17 00:00:00 2001 From: Steffen Trumtrar Date: Mon, 27 Jan 2020 15:51:50 +0100 Subject: 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 Signed-off-by: Sascha Hauer --- commands/imd.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'commands') diff --git a/commands/imd.c b/commands/imd.c index f1a22cef96..fc6cc47231 100644 --- a/commands/imd.c +++ b/commands/imd.c @@ -46,6 +46,8 @@ BAREBOX_CMD_HELP_TEXT("Options:") BAREBOX_CMD_HELP_OPT ("-t ", "only show information of ") BAREBOX_CMD_HELP_OPT ("-n ", "for tags with multiple strings only show string ") BAREBOX_CMD_HELP_OPT ("-s VARNAME", "set variable VARNAME instead of showing information") +BAREBOX_CMD_HELP_OPT ("-V", "Verify checksum of FILE") +BAREBOX_CMD_HELP_OPT ("-c", "Create checksum for FILE and write it to the crc32 tag.") BAREBOX_CMD_HELP_TEXT("") BAREBOX_CMD_HELP_TEXT("Without options all information available is printed. Valid types are:") BAREBOX_CMD_HELP_TEXT("release, build, model, of_compatible") -- cgit v1.2.3