[PATCH v4 0/3] cmd/mtd: add missed featuries

Mikhail Kshevetskiy mikhail.kshevetskiy at iopsys.eu
Tue Oct 8 01:20:13 CEST 2024


Some nand flashes (like spi-nand one) are registered with mtd
subsystem only, thus nand command can't be used to work with
such flashes. As result some functionality is missing.

This patch series implements following subcommands:
 * markbad         -- mark block as bad (clone of 'nand markbad')
 * nand_write_test -- destructive test of flash blocks (clone of 'nand torture')
 * nand_read_test  -- non-destructive test of nand flashes

Changes v2:
 * add cover letter

Changes v3:
 * rename 'mtd torture' to 'mtd nand_write_test'
 * rename 'mtd nandread' to 'mtd nand_read_test'
 * improve features description
 * code fixes suggested by Heinrich Schuchardt

Changes v4:
 * fix missed renaming
 * replace '#ifdef CONFIG_CMD_MTD_*' with '#if CONFIG_IS_ENABLED(CMD_MTD_*)'
 * improve nand_read_test output
 * use do_div() properly

Mikhail Kshevetskiy (3):
  cmd: mtd: add markbad command support
  cmd: mtd: add nand_write_test command support
  cmd: mtd: add nand_read_test command support

 cmd/Kconfig |  38 +++++
 cmd/mtd.c   | 452 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 490 insertions(+)

-- 
2.45.2



More information about the U-Boot mailing list