[PATCH v2 1/2] colibri-imx6ull: improve env badblock management

Marcel Ziswiler marcel at ziswiler.com
Thu Feb 3 18:41:24 CET 2022

From: Francesco Dolcini <francesco.dolcini at toradex.com>

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 at toradex.com>
Signed-off-by: Marcel Ziswiler <marcel.ziswiler at toradex.com>


Changes in v2:
- Re-based on top of today's master taking our recent addition of the
  eMMC SKU into account.
- Just remove stale eMMC environment comment after Kconfig move.

 include/configs/colibri-imx6ull.h | 5 +++--
 1 file 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 @@
 /* environment organization */
-/* Environment in eMMC, before config block at the end of 1st "boot sector" */
+#if defined(CONFIG_ENV_IS_IN_NAND)
 /* NAND stuff */

More information about the U-Boot mailing list