From 9f0d18e7f655b4fb855853f21cf75ddcdf77cec3 Mon Sep 17 00:00:00 2001 From: Mattijs Korpershoek Date: Mon, 21 Aug 2023 17:20:48 +0200 Subject: [PATCH] configs: am62x_android_a53.config: force ENV_IS_NOWHERE=n When booting with a corrupt MMC environment, we can see: Loading Environment from MMC... *** Warning - bad CRC, using default environment Loading Environment from nowhere... OK After that, saving does not work: => env default -a -f ## Resetting to default environment => saveenv Saving Environment to nowhere... not possible This is because CONFIG_ENV_IS_NOWHERE=y is set in am62x in am62x_evm_a53_defconfig and applying the am62x_android_53.config fragment does not disable it. Disable ENV_IS_NOWHERE explicitly so that => saveenv can repair broken environments. Fixes: d5a7186e16a9 ("configs: am62x_android_a53.config: Store environment in MMC") Signed-off-by: Mattijs Korpershoek Tested-by: Guillaume La Roque Reviewed-by: Guillaume La Roque --- configs/am62x_android_a53.config | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/am62x_android_a53.config b/configs/am62x_android_a53.config index fc949f65d7..3c5c508f53 100644 --- a/configs/am62x_android_a53.config +++ b/configs/am62x_android_a53.config @@ -22,5 +22,6 @@ CONFIG_LIBAVB=y CONFIG_ENV_SIZE=0x20000 CONFIG_ENV_OFFSET=0x680000 CONFIG_ENV_IS_IN_MMC=y +CONFIG_ENV_IS_NOWHERE=n CONFIG_SYS_MMC_ENV_PART=1 CONFIG_SPL_ENV_IS_NOWHERE=y