diff options
| author | Mikhail Kshevetskiy <[email protected]> | 2025-09-24 07:20:32 +0300 |
|---|---|---|
| committer | Michael Trimarchi <[email protected]> | 2025-10-05 20:26:43 +0200 |
| commit | b89b0f3c471114679fd92e01d3ae9e67504d96b3 (patch) | |
| tree | a10854bd5749a9ec77e1815f0a797515866f312a /cmd/Kconfig | |
| parent | 21c1098cf443ea225090520cbe3ac7fc9e75cd33 (diff) | |
cmd: mtd: add nand_write_test command support
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 implements 'nand torture' functionality for mtd command.
Signed-off-by: Mikhail Kshevetskiy <[email protected]>
Reviewed-by: Miquel Raynal <[email protected]>
Signed-off-by: Michael Trimarchi <[email protected]>
Diffstat (limited to 'cmd/Kconfig')
| -rw-r--r-- | cmd/Kconfig | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/cmd/Kconfig b/cmd/Kconfig index 8f2a35d780b..cd1a664f34f 100644 --- a/cmd/Kconfig +++ b/cmd/Kconfig @@ -1519,6 +1519,20 @@ config CMD_MTD_MARKBAD This is a clone of "nand markbad" command, but for 'mtd' subsystem. +config CMD_MTD_NAND_WRITE_TEST + bool "mtd nand_write_test (destructive)" + depends on CMD_MTD + help + MTD nand_write_test command support. + + Writes blocks of NAND flash with different patterns. + This is useful to determine if a block that caused a write error + is still good or should be marked as bad. + + This is a clone of "nand torture" command, but for 'mtd' subsystem. + + WARNING: This test will destroy any data on blocks being tested. + config CMD_MUX bool "mux" depends on MULTIPLEXER |
