summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/booti.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/cmd/booti.c b/cmd/booti.c
index fff9369763..b605e9492b 100644
--- a/cmd/booti.c
+++ b/cmd/booti.c
@@ -44,6 +44,16 @@ static int booti_start(cmd_tbl_t *cmdtp, int flag, int argc,
if (ret != 0)
return 1;
+#ifdef CONFIG_SECURE_BOOT
+ extern int authenticate_image(
+ uint32_t ddr_start, uint32_t raw_image_size);
+ if (authenticate_image(ld, image_size) != 0) {
+ printf("Authenticate Image Fail, Please check\n");
+ return 1;
+ }
+
+#endif
+
/* Handle BOOTM_STATE_LOADOS */
if (relocated_addr != ld) {
debug("Moving Image from 0x%lx to 0x%lx\n", ld, relocated_addr);