[U-Boot] [PATCH] cmd_nand: document "scrub" options

Mike Frysinger vapier at gentoo.org
Wed Sep 22 06:05:09 CEST 2010


The current documentation for the "scrub" option implies it takes no
options at all.  This can be annoying when you only want to scrub a
few blocks and not an entire device.  Good thing the code already
supports this though since it takes the same arguments as the "erase"
option.  Inform people!

Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
 common/cmd_nand.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/common/cmd_nand.c b/common/cmd_nand.c
index 3f1d077..7c77983 100644
--- a/common/cmd_nand.c
+++ b/common/cmd_nand.c
@@ -593,6 +593,7 @@ U_BOOT_CMD(
 	"nand bad - show bad blocks\n"
 	"nand dump[.oob] off - dump page\n"
 	"nand scrub - really clean NAND erasing bad blocks (UNSAFE)\n"
+	"    takes the same options as erase\n"
 	"nand markbad off [...] - mark bad block(s) at offset (UNSAFE)\n"
 	"nand biterr off - make a bit error at offset (UNSAFE)"
 #ifdef CONFIG_CMD_NAND_LOCK_UNLOCK
-- 
1.7.3



More information about the U-Boot mailing list