[PATCH 0/7] OSPI NAND MTD load and boot support
Anurag Dutta
a-dutta at ti.com
Tue Feb 17 12:21:49 CET 2026
Hi all
The series adds SPL support for loading images via the MTD subsystem,
including handling of bad blocks during read operations and removal of
the MTD device after image loading to allow reuse by later boot stages.
These changes enable SPL to load U-Boot proper from SPI NAND in a generic
and reusable manner.
Tested on j784s4: https://gist.github.com/anuragdutta731/e873fb91098e71c1613fb9a3472d94e7
Apurva Nandan (6):
common: spl: mtd: Add support for loading images from MTD
spl: mtd: Remove MTD device after loading images
spl: Add MTD loading support configuration
mtd: nand: spi: Enable spinand build Kconfig option for spl
arm: spl: Enumerate SPINAND as a boot device
include: environment: ti: Add ospi_nand environment variables
Santhosh Kumar K (1):
spl: mtd: Add bad block handling for SPL image loading
arch/arm/include/asm/spl.h | 1 +
common/spl/Kconfig | 30 +++++++
common/spl/Makefile | 2 +
common/spl/spl_mtd.c | 149 +++++++++++++++++++++++++++++++++++
common/spl/spl_mtd_nand.c | 35 ++++++++
drivers/mtd/Makefile | 1 +
drivers/mtd/mtd-uclass.c | 12 +++
drivers/mtd/nand/Makefile | 3 +-
drivers/mtd/nand/spi/core.c | 12 ++-
include/env/ti/ospi_nand.env | 22 ++++++
include/mtd.h | 2 +-
include/spl.h | 18 +++++
12 files changed, 281 insertions(+), 6 deletions(-)
create mode 100644 common/spl/spl_mtd.c
create mode 100644 common/spl/spl_mtd_nand.c
create mode 100644 include/env/ti/ospi_nand.env
--
2.34.1
More information about the U-Boot
mailing list