diff options
author | Ye Li <ye.li@nxp.com> | 2018-04-25 02:45:32 -0700 |
---|---|---|
committer | Ye Li <ye.li@nxp.com> | 2020-04-26 23:21:51 -0700 |
commit | f0220073d1d16638b40da366f01f5035004b5320 (patch) | |
tree | 19a5b077236ca02e2cef52c9242572a24d118922 /board | |
parent | f0445e6cd93cd3e2c29362d98a2ed71713b8b124 (diff) |
MLK-18129-2 imx8qm/qxp: Add secure boot environment
Add the secure boot relevant environment variables to MEK.
When CONFIG_AHAB_BOOT is enabled, we will switch to boot in this
new way:
1. Load the OS container to address 0x98000000
2. Using auth_cntr to authenticate the OS container. It will load the
kernel and FDT to destination address.
3. Using booti to boot kernel.
Signed-off-by: Ye Li <ye.li@nxp.com>
Acked-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit 545c8fe112244f20377e97921389c86eacc8551f)
(cherry picked from commit cba5acebbe6be0736f229ef719b1a1e5835e1a5f)
(cherry picked from commit 07b9850354b27dafa4cc774c59770931af2ac898)
Diffstat (limited to 'board')
-rw-r--r-- | board/freescale/imx8qm_mek/imx8qm_mek.c | 5 | ||||
-rw-r--r-- | board/freescale/imx8qxp_mek/imx8qxp_mek.c | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/board/freescale/imx8qm_mek/imx8qm_mek.c b/board/freescale/imx8qm_mek/imx8qm_mek.c index 83b330541e..a7bb2f91c1 100644 --- a/board/freescale/imx8qm_mek/imx8qm_mek.c +++ b/board/freescale/imx8qm_mek/imx8qm_mek.c @@ -358,5 +358,10 @@ 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 + return 0; } diff --git a/board/freescale/imx8qxp_mek/imx8qxp_mek.c b/board/freescale/imx8qxp_mek/imx8qxp_mek.c index 71e4babbcb..23b893f4d5 100644 --- a/board/freescale/imx8qxp_mek/imx8qxp_mek.c +++ b/board/freescale/imx8qxp_mek/imx8qxp_mek.c @@ -357,5 +357,10 @@ int board_late_init(void) env_set("board_rev", "iMX8QXP"); #endif + env_set("sec_boot", "no"); +#ifdef CONFIG_AHAB_BOOT + env_set("sec_boot", "yes"); +#endif + return 0; } |