[PATCH v4 0/5] cmd: mtd: improvements
    Mikhail Kshevetskiy 
    mikhail.kshevetskiy at iopsys.eu
       
    Fri Oct 10 14:41:10 CEST 2025
    
    
  
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 introduce following features:
 * 'mtd markbad' command (clone of 'nand markbad')
 * 'mtd nand_write_test' command (clone of 'nand torture')
Also a new command 'mtd nand_read_test' introduced. It produce readonly
test of flash. It's mostly usefull to:
 * check general flash state,
 * check the correctness of returned number of corrected bits.
Also this patch series fixes speed benchmark.
Changes v2:
 * added detection of the blocks above ECC bitflip threshold
 * minor cleanups of 'nand_read_test'
 * comments of Michael Trimarchi was addressed
Changes v3:
 * speed benchmark fix was added
Changes v4:
 * use lldiv() instead of 64-bit division to find a r/w speed.
Mikhail Kshevetskiy (5):
  cmd: mtd: add markbad command support
  cmd: mtd: add nand_write_test command support
  cmd: mtd: add nand_read_test command support
  cmd: mtd: fix speed measurement in the speed benchmark
  cmd: mtd: add benchmark option to the help
 cmd/Kconfig |  38 +++++
 cmd/mtd.c   | 481 ++++++++++++++++++++++++++++++++++++++++++++++++++--
 2 files changed, 508 insertions(+), 11 deletions(-)
-- 
2.51.0
    
    
More information about the U-Boot
mailing list