Skip to contentSkip to conversation

cmd_nand: document "scrub" options

PATCH New Mike Frysinger 2 participants 2 messages Sep 22, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cmd_nand: document "scrub" options

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!

---
 common/cmd_nand.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
common/cmd_nand.c +1 -0
index 3f1d077..7c77983 100644
@@ -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
Signature · 1 line
1.7.3
#1 lore raw

PATCH 1/1 cmd_nand: document "scrub" options

Quoted 16 lines · On Wed, 22 Sep 2010 00:05:09 -0400 Mike Frysinger <[email protected]> wrote:

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!

---
 common/cmd_nand.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
common/cmd_nand.c +0 -0
index 3f1d077..7c77983 100644

common/cmd_nand.c U_BOOT_CMD( · line 599

Quoted 7 lines
common/cmd_nand.c +1 -0
@@ -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

I've already got this in my next branch:

"nand scrub off size | scrub.part partition | scrub.chip\n"
" really clean NAND erasing bad blocks (UNSAFE)\n"

-Scott