mtd-utils: add patch to make nanddump --ignoreerrors actually do something different
authorArjan Schrijver <arjan@anymore.nl>
Fri, 30 Dec 2005 18:15:34 +0000 (18:15 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Fri, 30 Dec 2005 18:15:34 +0000 (18:15 +0000)
packages/mtd/mtd-utils/fix-ignoreerrors.patch [new file with mode: 0644]
packages/mtd/mtd-utils_20050801.bb

diff --git a/packages/mtd/mtd-utils/fix-ignoreerrors.patch b/packages/mtd/mtd-utils/fix-ignoreerrors.patch
new file mode 100644 (file)
index 0000000..b1f702a
--- /dev/null
@@ -0,0 +1,20 @@
+--- mtd/util/nanddump.c.orig   2005-12-30 19:07:39.000000000 +0100
++++ mtd/util/nanddump.c        2005-12-30 19:08:53.000000000 +0100
+@@ -224,7 +224,7 @@
+                       }
+               }
+-              if (badblock) {
++              if (badblock && !ignoreerrors) {
+                       if (omitbad)
+                               continue;
+                       memset (readbuf, 0xff, bs);
+@@ -259,7 +259,7 @@
+               if (omitoob)
+                       continue;
+                       
+-              if (badblock) {
++              if (badblock && !ignoreerrors) {
+                       memset (readbuf, 0xff, meminfo.oobsize);
+               } else {
+                       /* Read OOB data and exit on failure */
index 20ef373..ca7c471 100644 (file)
@@ -8,7 +8,8 @@ CVSDATE = "${PV}"
 
 SRC_URI = "cvs://anoncvs:anoncvs@cvs.infradead.org/home/cvs;module=mtd \ 
            file://add-exclusion-to-mkfs-jffs2.patch;patch=1 \
-           file://more-verbosity.patch;patch=1"
+           file://more-verbosity.patch;patch=1 \
+          file://fix-ignoreerrors.patch;patch=1"
 S = "${WORKDIR}/mtd/"
 
 CFLAGS_prepend = "-I${S}/include "