Skip to contentSkip to conversation

configs: aspeed-common: Add redundant env for mmc

PATCH New Adriana Kobylak 1 participant 1 message Jun 23, 2021 Arm/Aspeed machine support

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 configs: aspeed-common: Add redundant env for mmc

From: Adriana Kobylak <[email protected]>

If the env is in MMC, specify the location of the redundant environment. Per the ast2600_openbmc_spl_emmc_defconfig, the environment is located at byte offset 0x5000 in the user data partition, and is sized at 0x10000. The redundant environment follows it immediately and is the same size.

---
 include/configs/aspeed-common.h | 1 +
 1 file changed, 1 insertion(+)
include/configs/aspeed-common.h +1 -0
index 8f404570b1..62570cea47 100644
@@ -83,6 +83,7 @@
 #ifdef CONFIG_ENV_IS_IN_MMC
 #define CONFIG_SYS_MMC_ENV_DEV		0
 #define CONFIG_SYS_MMC_ENV_PART		0
+#define CONFIG_ENV_OFFSET_REDUND	(CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE)
 #endif
 
 #endif	/* __ASPEED_COMMON_CONFIG_H */
Signature · 1 line
2.25.1