All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/5] roc-pc-rk3399: Enable redundant SPI flash environment
@ 2026-06-26 14:45 Fabio Estevam
  2026-06-26 14:45 ` [PATCH 2/5] roc-pc-rk3399: Introduce a common defconfig Fabio Estevam
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Fabio Estevam @ 2026-06-26 14:45 UTC (permalink / raw)
  To: kever.yang; +Cc: djw, sunil, u-boot, Fabio Estevam

From: Fabio Estevam <festevam@nabladev.com>

Enable redundant environment storage in the SPI NOR flash by enabling
CONFIG_ENV_REDUNDANT and defining CONFIG_ENV_OFFSET_REDUND.

Having two copies of the environment improves robustness against
power loss or interrupted writes and is useful for software update
frameworks such as SWUpdate that modify the U-Boot environment during
system updates.

Signed-off-by: Fabio Estevam <festevam@nabladev.com>
---
 configs/roc-pc-rk3399_defconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/configs/roc-pc-rk3399_defconfig b/configs/roc-pc-rk3399_defconfig
index 1df5cb03adbb..4c9a5a69b4d0 100644
--- a/configs/roc-pc-rk3399_defconfig
+++ b/configs/roc-pc-rk3399_defconfig
@@ -17,6 +17,7 @@ CONFIG_SYS_LOAD_ADDR=0x800800
 CONFIG_SF_DEFAULT_BUS=1
 CONFIG_DEBUG_UART_BASE=0xFF1A0000
 CONFIG_DEBUG_UART_CLOCK=24000000
+CONFIG_ENV_OFFSET_REDUND=0x3F8000
 CONFIG_SPL_SPI_FLASH_SUPPORT=y
 CONFIG_SPL_SPI=y
 CONFIG_DEBUG_UART=y
@@ -39,6 +40,7 @@ CONFIG_CMD_TIME=y
 CONFIG_SPL_OF_CONTROL=y
 CONFIG_OF_SPL_REMOVE_PROPS="clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents"
 CONFIG_ENV_IS_IN_SPI_FLASH=y
+CONFIG_ENV_REDUNDANT=y
 CONFIG_ENV_RELOC_GD_ENV_ADDR=y
 CONFIG_ROCKCHIP_GPIO=y
 CONFIG_SYS_I2C_ROCKCHIP=y
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-06-26 14:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-26 14:45 [PATCH 1/5] roc-pc-rk3399: Enable redundant SPI flash environment Fabio Estevam
2026-06-26 14:45 ` [PATCH 2/5] roc-pc-rk3399: Introduce a common defconfig Fabio Estevam
2026-06-26 14:45 ` [PATCH 3/5] mtd: spi-nor-ids: Add XMC XM25QH128C Fabio Estevam
2026-06-26 14:45 ` [PATCH 4/5] roc-pc-plus-rk3399: Introduce new variant Fabio Estevam
2026-06-26 14:45 ` [PATCH 5/5] roc-pc-plus-rk3399: Enable USB Mass Storage support Fabio Estevam

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.