summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFrancesco Dolcini <francesco.dolcini@toradex.com>2021-08-27 11:15:47 +0200
committerFrancesco Dolcini <francesco.dolcini@toradex.com>2021-09-01 09:05:07 +0200
commitcd02128056d52256f994414345f2ae84c4ce7d14 (patch)
tree73ec948011d19a1e8b83ebb930954b55cdc7a8b6 /include
parentbd80c40df71c333ffa870b0eaa7cb4dc89c886fa (diff)
colibri-imx7: 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>
Diffstat (limited to 'include')
-rw-r--r--include/configs/colibri_imx7.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/configs/colibri_imx7.h b/include/configs/colibri_imx7.h
index 3f3d0078c7..43e7f93829 100644
--- a/include/configs/colibri_imx7.h
+++ b/include/configs/colibri_imx7.h
@@ -211,6 +211,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_IMX7_NAND