[PATCH v2 3/4] nanddump: nanddump: change default to --bb=skipbad

Richard Genoud richard.genoud at gmail.com
Tue Jun 24 10:13:00 UTC 2014


since mtd-utils 1.4.7, the default behaviour of nanddump is skipbad
(commit 2521d4f1b6b9866a9c89f3c11a4f6a3d763ff1d7)

Signed-off-by: Richard Genoud <richard.genoud at gmail.com>
---
 miscutils/nandwrite.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/miscutils/nandwrite.c b/miscutils/nandwrite.c
index ec133bd55071..0095a75fa095 100644
--- a/miscutils/nandwrite.c
+++ b/miscutils/nandwrite.c
@@ -45,8 +45,8 @@
 //usage:     "\n	-l LEN	Length"
 //usage:     "\n	-f FILE	Dump to file ('-' for stdout)"
 //usage:     "\n	--bb=METHOD, where METHOD can be `skipbad', `padbad':"
-//usage:     "\n	    skipbad: dump good data, completely skipping any bad blocks"
-//usage:     "\n	    padbad: dump flash data, substituting 0xFF for any bad blocks (default)"
+//usage:     "\n	    skipbad: dump good data, completely skipping any bad blocks (default)"
+//usage:     "\n	    padbad: dump flash data, substituting 0xFF for any bad blocks"
 //usage:     "\n	The difference between omit and skip bad block is that in the omit"
 //usage:     "\n	case, the length of the bad block is counted as part of the total"
 //usage:     "\n	dump length, and in the skip case, it's not."
@@ -113,7 +113,7 @@ int nandwrite_main(int argc UNUSED_PARAM, char **argv)
 	/* Buffer for OOB data */
 	unsigned char *oobbuf;
 	unsigned opts;
-	unsigned bb_method = BB_PADBAD;
+	unsigned bb_method = BB_SKIPBAD;
 	int fd;
 	ssize_t cnt;
 	unsigned mtdoffset, meminfo_writesize, blockstart, limit;
-- 
2.0.0



More information about the busybox mailing list