summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorWolfram Sang <wsa@kernel.org>2023-03-19 16:39:31 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2023-03-21 09:12:51 +0100
commit6de2256898e79c47cd1694cc5e6031e753ab1ea0 (patch)
tree2b6ac7f6a461a7a4c340bb22a9dc363f8bee7ba3 /commands
parent3eeef06443e886f50c631b982b29aad39af75bd2 (diff)
downloadbarebox-6de2256898e79c47cd1694cc5e6031e753ab1ea0.tar.gz
barebox-6de2256898e79c47cd1694cc5e6031e753ab1ea0.tar.xz
commands: nand: add missing parameters to help
Signed-off-by: Wolfram Sang <wsa@kernel.org> Link: https://lore.barebox.org/20230319153931.23867-1-wsa@kernel.org Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands')
-rw-r--r--commands/Kconfig4
-rw-r--r--commands/nand.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/commands/Kconfig b/commands/Kconfig
index 27769950d9..76dfca2dfd 100644
--- a/commands/Kconfig
+++ b/commands/Kconfig
@@ -1950,12 +1950,14 @@ config CMD_NAND
help
NAND flash handling
- Usage: nand [-adb] NANDDEV
+ Usage: nand [-adbgi] NANDDEV
Options:
-a register a bad block aware device ontop of a normal NAND device
-d deregister a bad block aware device
-b OFFS mark block at OFFSet as bad
+ -g OFFS mark block at OFFSet as good
+ -i info. Show information about bad blocks
config CMD_NANDTEST
tristate
diff --git a/commands/nand.c b/commands/nand.c
index 67e43eba30..d07444aee0 100644
--- a/commands/nand.c
+++ b/commands/nand.c
@@ -165,7 +165,7 @@ BAREBOX_CMD_HELP_END
BAREBOX_CMD_START(nand)
.cmd = do_nand,
BAREBOX_CMD_DESC("NAND flash handling")
- BAREBOX_CMD_OPTS("[-adb] NANDDEV")
+ BAREBOX_CMD_OPTS("[-adbgi] NANDDEV")
BAREBOX_CMD_GROUP(CMD_GRP_HWMANIP)
BAREBOX_CMD_HELP(cmd_nand_help)
BAREBOX_CMD_END