From: Stefan Eichenberger Date: Fri, 10 Feb 2023 10:33:51 +0000 (+0100) Subject: configs: colibri-imx7: Fix bad block table in flash configuration X-Git-Tag: baikal/mips/sdk6.2~4^2~3^2~175^2~16^2~50 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=50bc0f4360a7a576e6c719902b18c149fd8e4b58;p=uboot.git configs: colibri-imx7: Fix bad block table in flash configuration Make sure that the bad block table in flash is used on Colibri iMX7. Without this configuration enabled U-Boot corrupts the bad block table and Linux will update the table on each reboot. The corruption occurs because if CONFIG_SYS_NAND_USE_FLASH_BBT is not set, U-boot will store bad blocks out of band, while the Linux driver for the iMX7 will store them in band in a bad block table. Fixes: e0af4a568aa ("arm: dts: imx7: colibri: add raw NAND support") Signed-off-by: Stefan Eichenberger Signed-off-by: Francesco Dolcini Reviewed-by: Michael Trimarchi Reviewed-by: Marcel Ziswiler --- diff --git a/configs/colibri_imx7_defconfig b/configs/colibri_imx7_defconfig index d00144eccc..3a67ea3850 100644 --- a/configs/colibri_imx7_defconfig +++ b/configs/colibri_imx7_defconfig @@ -77,6 +77,7 @@ CONFIG_FSL_USDHC=y CONFIG_MTD=y CONFIG_DM_MTD=y CONFIG_MTD_RAW_NAND=y +CONFIG_SYS_NAND_USE_FLASH_BBT=y CONFIG_NAND_MXS_DT=y CONFIG_SYS_NAND_ONFI_DETECTION=y CONFIG_MTD_UBI_FASTMAP=y