From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Roese Date: Fri, 13 Sep 2019 15:15:46 +0200 Subject: [U-Boot] [PATCH] arm: at91: gardena-smart-gateway-at91sam: Enable CONFIG_SYS_NAND_USE_FLASH_BBT In-Reply-To: <3334347.rv6oaGkvK3@ada> References: <20190827061450.10483-1-sr@denx.de> <3334347.rv6oaGkvK3@ada> Message-ID: <6835cf4f-2bdd-e0ac-ddbc-882adc7bd346@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Alex, On 13.09.19 15:09, Alexander Dahl wrote: > Am Dienstag, 27. August 2019, 08:14:50 CEST schrieb Stefan Roese: >> 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). > > Does the Linux kernel driver use those unconditionally or is that a kernel > config option? Which one? (Search in 5.2 kernel config for BBT is > inconclusive.) Linux uses the DT property "nand-on-flash-bbt" for this decision. But please be aware - this is only for raw NAND and not SPI NAND (IIRC). And yes, we should definitely move to this DT property instead of the Kconfig symbol in U-Boot as well. To automatically match the configuration of such boards in U-Boot and Linux. But such a change it too intrusive at this time of release cycle. Thanks, Stefan