Hi Dinesh,

On Wed, Feb 11, 2026 at 4:20 AM Michael Nazzareno Trimarchi
<[email protected]> wrote:

> This what I have asked in the beginning, for now I don't like to have
> this change
> in the framework unless we have more consumer. For the patch that you sent for
> make simple spl load, I will try to start to apply on one of my board

I'm also interested in SPL NAND support. I have recently made an
attempt to add SPI NAND SPL support:

https://lore.kernel.org/u-boot/[email protected]/

And then Jonas pointed out your series.

Do you think it can be extended to support SPI NAND?

> > +config SPL_NAND_FRAMEWORK_CAPABLE
> > + bool
> > + depends on SPL_DM
> > + depends on SPL_HAS_BSS_LINKER_SECTION

This is not defined on my platform.

> > + depends on SPL_MAX_SIZE >= 0x40000

This is also not defined.

> > + help
> > +  Indicates that the platform has sufficient SPL capabilities
> > +  (driver model, BSS support, and SRAM size) to support the
> > +  full NAND/MTD framework in SPL.
> > +
> > +config SPL_NAND_USE_NAND_FRAMEWORK
> > + bool "Use NAND/MTD framework in SPL"
> > + depends on SPL_NAND_SUPPORT && MTD
> > + depends on SPL_NAND_FRAMEWORK_CAPABLE
> > + depends on SPL_ENV_SUPPORT
> > + depends on ENV_IS_IN_NAND
> > + select SPL_SYS_NAND_SELF_INIT
> > + select SPL_NAND_BASE
> > + select SPL_NAND_DRIVERS
> > + select SPL_NAND_IDENT
> > + select SPL_NAND_INIT
> > + select SPL_NAND_ECC
> > + help
> > + Enable loading U-Boot from NAND in SPL using the full
> > + NAND/MTD framework instead of the minimal SPL NAND loaders.
> > + This provides bad-block aware reads and flexible offset
> > + handling via the common NAND/MTD infrastructure.
> > + Platforms enabling this option must also provide working
> > + driver model support and sufficient SPL memory resources.

When I try to build it, I get the following error:

drivers/mtd/nand/raw/nand.c:15:34: error: ‘CFG_SYS_NAND_BASE’
undeclared here (not in a function); did you mean
‘CFG_SYS_SDRAM_BASE’?
   15 | #define CFG_SYS_NAND_BASE_LIST { CFG_SYS_NAND_BASE }

In my SPI NAND case, there is no NAND controller, so no
CFG_SYS_NAND_BASE is defined.

Reply via email to