summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/cmd_bootm.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c
index 4f77f22..1825d70 100644
--- a/common/cmd_bootm.c
+++ b/common/cmd_bootm.c
@@ -723,6 +723,15 @@ static int booti_start(cmd_tbl_t *cmdtp, int flag, int argc,
if (bootm_find_ramdisk_fdt(flag, argc, argv))
return 1;
+#ifdef CONFIG_SECURE_BOOT
+ extern uint32_t authenticate_image(
+ uint32_t ddr_start, uint32_t image_size);
+ if (authenticate_image(images->ep, zi_end - zi_start) == 0) {
+ printf("Authenticate zImage Fail, Please check\n");
+ return 1;
+ }
+#endif
+
return 0;
}