Skip to content

OSPI NAND MTD load and boot support

Anurag Dutta u-boot 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7common: spl: mtd: Add support for loading images from MTDcommon/spl/spl_mtd.c common/spl/spl_mtd_nand.c include/spl.h+139 -03 replies
2/7spl: mtd: Remove MTD device after loading imagescommon/spl/spl_mtd.c common/spl/spl_mtd_nand.c drivers/mtd/mtd-uclass.c +2 more+38 -170 replies
3/7spl: mtd: Add bad block handling for SPL image loadingcommon/spl/spl_mtd.c+68 -101 reply
4/7spl: Add MTD loading support configurationcommon/spl/Kconfig common/spl/Makefile+24 -00 replies
5/7mtd: nand: spi: Enable spinand build Kconfig option for splcommon/spl/Kconfig drivers/mtd/Makefile drivers/mtd/nand/Makefile+11 -10 replies
6/7arm: spl: Enumerate SPINAND as a boot devicearch/arm/include/asm/spl.h+1 -01 reply
7/7include: environment: ti: Add ospi_nand environment variablesinclude/env/ti/ospi_nand.env+22 -00 replies

Reviews trailers per patch

None of the 7 patches has a Reviewed-by or Acked-by.

PatchSanthosh Kumar K
SeriesT-b
1/7
2/7
3/7
4/7
5/7
6/7
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/7] OSPI NAND MTD load and boot support

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
Signature · 1 line
2.34.1