diff options
author | Ye Li <ye.li@nxp.com> | 2018-07-26 07:54:34 -0700 |
---|---|---|
committer | Ye Li <ye.li@nxp.com> | 2018-08-05 19:29:05 -0700 |
commit | e469bf980df3fa5c7d4e059aaaed4db296a0b002 (patch) | |
tree | d15b61a88abdb702ae4c594d0de4c90f65b17de6 /board/freescale/imx8qm_mek | |
parent | 776cd6799e7bb97967a5ee480dbf199bc6ec2586 (diff) |
MLK-19064 imx8qm: Add secure boot environment
Add the secure boot relevant environment variables to ARM2 and MEK.
When CONFIG_AHAB_BOOT is enabled, we will switch to boot flow:
1. Load the signed OS container to address 0x88000000
2. Using auth_cntr to authenticate the OS container. It will load the
kernel and FDT to destination addresses.
3. Using booti to boot kernel.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit eb47b72c1c89deddeaa3b3618d8c28aca05cd4ad)
Diffstat (limited to 'board/freescale/imx8qm_mek')
-rw-r--r-- | board/freescale/imx8qm_mek/imx8qm_mek.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/board/freescale/imx8qm_mek/imx8qm_mek.c b/board/freescale/imx8qm_mek/imx8qm_mek.c index 4d951b27f5..a761010d55 100644 --- a/board/freescale/imx8qm_mek/imx8qm_mek.c +++ b/board/freescale/imx8qm_mek/imx8qm_mek.c @@ -482,6 +482,11 @@ int board_late_init(void) env_set("board_rev", "iMX8QM"); #endif + env_set("sec_boot", "no"); +#ifdef CONFIG_AHAB_BOOT + env_set("sec_boot", "yes"); +#endif + #ifdef CONFIG_ENV_IS_IN_MMC board_late_mmc_env_init(); #endif |