summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFrancesco Dolcini <francesco.dolcini@toradex.com>2022-02-03 20:41:24 +0300
committerStefano Babic <sbabic@denx.de>2022-02-20 01:32:22 +0300
commita1128944a10eb798ef3f16494e5fd3ddb8674d54 (patch)
tree8c0523019a05ab794c52e324bb50b9f535a11318 /include
parent9da828c2074e8add2b3f00e7481f8d3b7098de3d (diff)
downloadu-boot-a1128944a10eb798ef3f16494e5fd3ddb8674d54.tar.xz
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> Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Diffstat (limited to 'include')
-rw-r--r--include/configs/colibri-imx6ull.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/configs/colibri-imx6ull.h b/include/configs/colibri-imx6ull.h
index 787fe33941..91f0f953a1 100644
--- a/include/configs/colibri-imx6ull.h
+++ b/include/configs/colibri-imx6ull.h
@@ -140,8 +140,9 @@
(CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
/* environment organization */
-
-/* Environment in eMMC, before config block at the end of 1st "boot sector" */
+#if defined(CONFIG_ENV_IS_IN_NAND)
+#define CONFIG_ENV_RANGE (4 * CONFIG_ENV_SIZE)
+#endif
#ifdef CONFIG_TARGET_COLIBRI_IMX6ULL_NAND
/* NAND stuff */