From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eugen.Hristev at microchip.com Date: Tue, 27 Aug 2019 07:54:19 +0000 Subject: [U-Boot] [PATCH] arm: at91: gardena-smart-gateway-at91sam: Enable CONFIG_SYS_NAND_USE_FLASH_BBT In-Reply-To: <20190827061450.10483-1-sr@denx.de> References: <20190827061450.10483-1-sr@denx.de> Message-ID: <759a9c66-a921-c134-b63e-33f7d0ac87f5@microchip.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 27.08.2019 09:14, Stefan Roese wrote: > > This patch enables the BBT in NAND on the AT91SAM based GARDENA smart > Gateway. This is especially important, since the Linux driver also > enables this option and uses the BBT table pages. Without setting this > option, U-Boot will try to re-use these pages again (e.g. UBI). > > Signed-off-by: Stefan Roese > Cc: Eugen Hristev > Cc: Tom Rini > --- > Eugen, I would advise you to double-check, if your AT91 based boards > using NAND also have this BBT option enabled in Linux. If yes, its > definitely necessary to enable it in U-Boot as well to match the same > layout. Hi Stefan, Thank you for the patch. I will look into it with help of Tudor and provide some feedback. Eugen > > configs/gardena-smart-gateway-at91sam_defconfig | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/configs/gardena-smart-gateway-at91sam_defconfig b/configs/gardena-smart-gateway-at91sam_defconfig > index c495ba4612..4a2cc331a6 100644 > --- a/configs/gardena-smart-gateway-at91sam_defconfig > +++ b/configs/gardena-smart-gateway-at91sam_defconfig > @@ -17,6 +17,7 @@ CONFIG_DEBUG_UART_BASE=0xfffff200 > CONFIG_DEBUG_UART_CLOCK=132000000 > CONFIG_SMBIOS_PRODUCT_NAME="at91sam9x5ek" > CONFIG_DEBUG_UART=y > +CONFIG_SPL_TEXT_BASE=0x300000 > CONFIG_FIT=y > CONFIG_NAND_BOOT=y > CONFIG_BOOTDELAY=3 > @@ -24,7 +25,6 @@ CONFIG_USE_BOOTARGS=y > CONFIG_BOOTARGS="console=ttyS0,115200 earlyprintk mtdparts=atmel_nand:256k(bootstrap)ro,768k(uboot)ro,256k(env_redundant),256k(env),512k(dtb),6M(kernel)ro,-(rootfs) rootfstype=ubifs ubi.mtd=6 root=ubi0:rootfs rw" > CONFIG_SYS_CONSOLE_IS_IN_ENV=y > CONFIG_SYS_CONSOLE_INFO_QUIET=y > -CONFIG_SPL_TEXT_BASE=0x300000 > CONFIG_SPL_SYS_MALLOC_SIMPLE=y > CONFIG_SPL_SEPARATE_BSS=y > # CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR is not set > @@ -66,7 +66,6 @@ CONFIG_AT91_GPIO=y > CONFIG_LED=y > CONFIG_LED_GPIO=y > # CONFIG_MMC is not set > -# CONFIG_SYS_NAND_USE_FLASH_BBT is not set > CONFIG_NAND_ATMEL=y > CONFIG_SPL_GENERATE_ATMEL_PMECC_HEADER=y > CONFIG_DM_ETH=y >