diff mbox series

[5/5] imx8mm-cl-iot-gate: Add redundand environment support

Message ID 20220319122249.77456-5-festevam@gmail.com
State Awaiting Upstream
Delegated to: Stefano Babic
Headers show
Series [1/5] imx8mm-cl-iot-gate: Add SPL EEPROM support | expand

Commit Message

Fabio Estevam March 19, 2022, 12:22 p.m. UTC
From: Fabio Estevam <festevam@denx.de>

Add redundand environment support as it is required
by SWUpdate.

While at it, also adjust the CONFIG_ENV_OFFSET to a more appropriate
larger offset as done on other i.MX8M defconfigs.

Signed-off-by: Fabio Estevam <festevam@denx.de>
---
 configs/imx8mm-cl-iot-gate_defconfig | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Comments

Stefano Babic April 12, 2022, 6:43 p.m. UTC | #1
> From: Fabio Estevam <festevam@denx.de>
> Add redundand environment support as it is required
> by SWUpdate.
> While at it, also adjust the CONFIG_ENV_OFFSET to a more appropriate
> larger offset as done on other i.MX8M defconfigs.
> Signed-off-by: Fabio Estevam <festevam@denx.de>
Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic
diff mbox series

Patch

diff --git a/configs/imx8mm-cl-iot-gate_defconfig b/configs/imx8mm-cl-iot-gate_defconfig
index ee171f704ed9..8125f53e50f3 100644
--- a/configs/imx8mm-cl-iot-gate_defconfig
+++ b/configs/imx8mm-cl-iot-gate_defconfig
@@ -9,7 +9,9 @@  CONFIG_SPL_GPIO=y
 CONFIG_SPL_LIBCOMMON_SUPPORT=y
 CONFIG_SPL_LIBGENERIC_SUPPORT=y
 CONFIG_ENV_SIZE=0x4000
-CONFIG_ENV_OFFSET=0x4400
+CONFIG_ENV_OFFSET=0x200000
+CONFIG_ENV_OFFSET_REDUND=0x204000
+CONFIG_SYS_REDUNDAND_ENVIRONMENT=y
 CONFIG_DM_GPIO=y
 CONFIG_DEFAULT_DEVICE_TREE="imx8mm-cl-iot-gate"
 CONFIG_SPL_TEXT_BASE=0x7E1000