[PATCH 6/7] hmibsc: enable U-Boot Environment variables protection
Sumit Garg
sumit.garg at linaro.org
Mon Dec 18 08:24:27 CET 2023
Enable Environment protection with:
CONFIG_ENV_WRITEABLE_LIST=y
CONFIG_ENV_ACCESS_IGNORE_FORCE=y
Signed-off-by: Sumit Garg <sumit.garg at linaro.org>
---
configs/hmibsc_defconfig | 4 ++++
include/configs/hmibsc.h | 2 ++
2 files changed, 6 insertions(+)
diff --git a/configs/hmibsc_defconfig b/configs/hmibsc_defconfig
index cef9e304b3a..656c9c6d0d6 100644
--- a/configs/hmibsc_defconfig
+++ b/configs/hmibsc_defconfig
@@ -36,6 +36,10 @@ CONFIG_CMD_USB=y
CONFIG_BOOTP_BOOTFILESIZE=y
CONFIG_CMD_CACHE=y
CONFIG_CMD_TIMER=y
+CONFIG_CMD_ENV_FLAGS=y
+CONFIG_CMD_NVEDIT_INFO=y
+CONFIG_ENV_WRITEABLE_LIST=y
+CONFIG_ENV_ACCESS_IGNORE_FORCE=y
CONFIG_ENV_IS_IN_MMC=y
CONFIG_SYS_RELOC_GD_ENV_ADDR=y
CONFIG_SYS_MMC_ENV_PART=2
diff --git a/include/configs/hmibsc.h b/include/configs/hmibsc.h
index b614dec7870..b228e035429 100644
--- a/include/configs/hmibsc.h
+++ b/include/configs/hmibsc.h
@@ -54,4 +54,6 @@
"fi; " \
"load ${devtype} ${devnum}:${distro_bootpart} ${loadaddr} /boot/fitImage && bootm"
+#define CFG_ENV_FLAGS_LIST_STATIC "BOOT_A_LEFT:dw,BOOT_B_LEFT:dw,BOOT_ORDER:sw"
+
#endif
--
2.34.1
More information about the U-Boot
mailing list