diff options
author | Francesco Dolcini <francesco.dolcini@toradex.com> | 2021-08-27 11:00:57 +0200 |
---|---|---|
committer | Francesco Dolcini <francesco.dolcini@toradex.com> | 2021-09-01 09:05:07 +0200 |
commit | bd80c40df71c333ffa870b0eaa7cb4dc89c886fa (patch) | |
tree | 3865beee647cd0868204895940c6c8f35f4b2e28 | |
parent | c3e1241862ffaeb2feab7719bf49dfd41607553e (diff) |
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 <francesco.dolcini@toradex.com>
-rw-r--r-- | include/configs/colibri-imx6ull.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 |