diff options
author | Ye.Li <B37916@freescale.com> | 2014-06-20 10:12:36 +0800 |
---|---|---|
committer | Ye.Li <B37916@freescale.com> | 2014-06-20 10:18:02 +0800 |
commit | 591100eec569dd1d54f61e9f49fe995f56a021eb (patch) | |
tree | c480ee8763ed4d7b4849649e09f61699c833c346 /common | |
parent | 90e5482374e2cf7612c83108307478a28f8dfe09 (diff) | |
download | u-boot-imx-591100eec569dd1d54f61e9f49fe995f56a021eb.zip u-boot-imx-591100eec569dd1d54f61e9f49fe995f56a021eb.tar.gz u-boot-imx-591100eec569dd1d54f61e9f49fe995f56a021eb.tar.bz2 |
ENGR00319151-2 HAB: Add the HAB image authentication to bootz
Since the zImage is used at default, add the HAB image authentication
support in bootz to authenticate zImage.
Signed-off-by: Ye.Li <B37916@freescale.com>
Diffstat (limited to 'common')
-rw-r--r-- | common/cmd_bootm.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c index e6b8b0f..7e3558d 100644 --- a/common/cmd_bootm.c +++ b/common/cmd_bootm.c @@ -1910,6 +1910,15 @@ static int bootz_start(cmd_tbl_t *cmdtp, int flag, int argc, return 1; #endif +#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; } |