
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