Hi,
i want to propose the following patch to bootm.c.
If you want to use FIT Images and HAB together you always get this on bootm:
Not valid image format for Authentication, Please check
This is because there is no case for FIT Images in the switch statement.
I tested the patch below and was able to boot a HAB signed FIT Image without problems.
diff --git "a/cmd/bootm.c" "b/cmd/bootm.c"
index 03ea3b8998..47122e50cc 100644
--- "a/cmd/bootm.c"
+++ "b/cmd/bootm.c"
@@ -176,6 +176,15 @@ int do_bootm(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
case IMAGE_FORMAT_ANDROID:
/* Do this authentication in boota command */
break;
+#endif
+#ifdef CONFIG_FIT
+ case IMAGE_FORMAT_FIT:
+ if (authenticate_image(image_load_addr,
+ image_get_image_size((image_header_t *)image_load_addr)) != 0) {
+ printf("Authenticate FIT image Fail, Please check\n");
+ return 1;
+ }
+ break;
#endif
default:
printf("Not valid image format for Authentication, Please check\n");
Thanks,
Thomas