summaryrefslogtreecommitdiff
path: root/include/configs/imx8qxp_mek.h
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2018-06-12 00:42:10 -0700
committerYe Li <ye.li@nxp.com>2018-06-13 19:53:49 -0700
commit639d7ab25ccb967072f3f81eba962cb8ce43fa95 (patch)
tree735937d8e3132860b28c9fe63603bf25fa1bf42d /include/configs/imx8qxp_mek.h
parent1b59659e221236c65d04a18b2a3a42d7a66f2abd (diff)
MLK-18505 imx8qxp: Fix sec_boot environment issue
The sec_boot environment is used for AHAB secure boot. When run command "env default -f -a", this environment is not set due to its default value is not added to CONFIG_EXTRA_ENV_SETTINGS. Then the boot flow will go to AHAB branch to load OS container. Fix the issue by adding default sec_boot value to CONFIG_EXTRA_ENV_SETTINGS. Signed-off-by: Ye Li <ye.li@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com> (cherry picked from commit 20fd426d8d1a8aa42343115f853e4d91087b7a5e)
Diffstat (limited to 'include/configs/imx8qxp_mek.h')
-rw-r--r--include/configs/imx8qxp_mek.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/configs/imx8qxp_mek.h b/include/configs/imx8qxp_mek.h
index b35eafdb61..f1714f0275 100644
--- a/include/configs/imx8qxp_mek.h
+++ b/include/configs/imx8qxp_mek.h
@@ -84,6 +84,12 @@
#define CONFIG_LIB_RAND
#define CONFIG_NET_RANDOM_ETHADDR
+#ifdef CONFIG_AHAB_BOOT
+#define AHAB_ENV "sec_boot=yes\0"
+#else
+#define AHAB_ENV "sec_boot=no\0"
+#endif
+
/* Boot M4 */
#define M4_BOOT_ENV \
"m4_0_image=m4_0.bin\0" \
@@ -145,6 +151,7 @@
CONFIG_MFG_ENV_SETTINGS \
M4_BOOT_ENV \
XEN_BOOT_ENV \
+ AHAB_ENV \
"script=boot.scr\0" \
"image=Image\0" \
"panel=NULL\0" \