[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: [PATCH v2 3/4] nanddump: nanddump: change default to --bb=skipbad
From: Richard Genoud <richard.genoud () gmail ! com>
Date: 2014-06-24 10:13:00
Message-ID: 1403604781-6892-4-git-send-email-richard.genoud () gmail ! com
[Download RAW message or body]
since mtd-utils 1.4.7, the default behaviour of nanddump is skipbad
(commit 2521d4f1b6b9866a9c89f3c11a4f6a3d763ff1d7)
Signed-off-by: Richard Genoud <richard.genoud@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
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic