From bd80c40df71c333ffa870b0eaa7cb4dc89c886fa Mon Sep 17 00:00:00 2001 From: Francesco Dolcini Date: Fri, 27 Aug 2021 11:00:57 +0200 Subject: colibri-imx6ull: improve env badblock management Use the complete 512kb (4 blocks) nand partition reserved for u-boot environment instead of just the first block, this allows the module to have a working environment even if 3 blocks are bad. Signed-off-by: Francesco Dolcini --- include/configs/colibri-imx6ull.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs/colibri-imx6ull.h b/include/configs/colibri-imx6ull.h index d4bcfef98c..5846e6ced9 100644 --- a/include/configs/colibri-imx6ull.h +++ b/include/configs/colibri-imx6ull.h @@ -174,6 +174,8 @@ /* Environment in eMMC, before config block at the end of 1st "boot sector" */ #define CONFIG_SYS_MMC_ENV_DEV 0 #define CONFIG_SYS_MMC_ENV_PART 1 +#elif defined(CONFIG_ENV_IS_IN_NAND) +#define CONFIG_ENV_RANGE (4 * CONFIG_ENV_SIZE) #endif #ifdef CONFIG_TARGET_COLIBRI_IMX6ULL_NAND -- cgit v1.2.3