@@ -656,15 +656,28 @@ config TPL_ENV_IS_IN_FLASH
endif
config ENV_OFFSET
- hex "Environment offset"
- depends on ENV_IS_IN_EEPROM || ENV_IS_IN_MMC || ENV_IS_IN_NAND || \
- ENV_IS_IN_SPI_FLASH
- help
- Offset from the start of the device (or partition)
+ hex "Environment offset"
+ depends on ENV_IS_IN_EEPROM || ENV_IS_IN_MMC || ENV_IS_IN_NAND || ENV_IS_IN_SPI_FLASH
+ help
+ Offset from the start of the device (or partition)
config ENV_SIZE
- hex "Environment Size"
- help
- Size of the environment storage area
+ hex "Environment Size"
+ help
+ Size of the environment storage area
+
+config SYS_REDUNDAND_ENVIRONMENT
+ bool "Use secondary environment partition"
+ depends on ENV_IS_IN_EEPROM || ENV_IS_IN_MMC || ENV_IS_IN_NAND || ENV_IS_IN_SPI_FLASH
+ help
+ Used to hold a redundant copy of the environment data. This
+ provides a valid backup copy in case the other copy is corrupted,
+ e.g. due to a power failure during a "saveenv" operation.
+
+config ENV_OFFSET_REDUND
+ hex "Secondary environment offset"
+ depends on SYS_REDUNDAND_ENVIRONMENT
+ help
+ Size of the environment storage area
endmenu
Backport SYS_REDUNDAND_ENVIRONMENT and ENV_OFFSET_REDUND options from upstream. Fix indent for ENV_OFFSET and ENV_SIZE Signed-off-by: Andrei Kartashev <a.kartashev@yadro.com> --- env/Kconfig | 29 +++++++++++++++++++++-------- 1 file changed, 21 insertions(+), 8 deletions(-)