summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorJason Liu <r64343@freescale.com>2013-08-14 15:08:39 +0800
committerJason Liu <r64343@freescale.com>2013-08-21 14:54:17 +0800
commitdc526e4eb966cc0311f6ad8dd69d94ffcf56c25f (patch)
treea3e88fe9ac9e34ce810d14d9e4a7cd665b787c75 /common
parent5e228537f389481807bb530b21247d494d887819 (diff)
downloadu-boot-imx-dc526e4eb966cc0311f6ad8dd69d94ffcf56c25f.zip
u-boot-imx-dc526e4eb966cc0311f6ad8dd69d94ffcf56c25f.tar.gz
u-boot-imx-dc526e4eb966cc0311f6ad8dd69d94ffcf56c25f.tar.bz2
ENGR00275348-7 imx6: add secureboot support
This patch add the secureboot support Signed-off-by: Jason Liu <r64343@freescale.com>
Diffstat (limited to 'common')
-rw-r--r--common/cmd_bootm.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c
index 7438469..e27cd8c 100644
--- a/common/cmd_bootm.c
+++ b/common/cmd_bootm.c
@@ -632,6 +632,16 @@ int do_bootm(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
return do_bootm_subcommand(cmdtp, flag, argc, argv);
}
+#ifdef CONFIG_SECURE_BOOT
+ extern uint32_t authenticate_image(
+ uint32_t ddr_start, uint32_t image_size);
+ if (authenticate_image(load_addr,
+ image_get_image_size((image_header_t *)load_addr)) == 0) {
+ printf("Authenticate UImage Fail, Please check\n");
+ return 1;
+ }
+#endif
+
if (bootm_start(cmdtp, flag, argc, argv))
return 1;