[PATCH v1 0/4] Introduce mtdblock device

Alexey Romanov avromanov at salutedevices.com
Tue Feb 27 11:04:37 CET 2024


Hello!

This series adds support for the mtdblock device, which
allows to read/write data block by block. For example,
it can now be used for BCB or Android AB command:

  $ bcb load mtd 0 part_name

Tested only on SPI NAND, so bind is made only for
SPI NAND drivers.

Alexey Romanov (4):
  drivers: introduce mtdblock abstraction
  disk: support MTD partitions
  spinand: bind mtdblock
  efi: block: compile only if CONFIG_EFI_PARTITION enabled

 disk/part.c                 |   5 +-
 drivers/block/blk-uclass.c  |   1 +
 drivers/mtd/Kconfig         |   1 +
 drivers/mtd/Makefile        |   1 +
 drivers/mtd/mtdblock.c      | 170 ++++++++++++++++++++++++++++++++++++
 drivers/mtd/mtdpart.c       |  69 +++++++++++++++
 drivers/mtd/nand/spi/core.c |  20 +++++
 include/linux/mtd/mtd.h     |  12 +++
 include/part.h              |   2 +
 lib/efi_driver/Makefile     |   2 +-
 10 files changed, 281 insertions(+), 2 deletions(-)
 create mode 100644 drivers/mtd/mtdblock.c

-- 
2.34.1



More information about the U-Boot mailing list