[PATCH] mtd-utils: Support 4096+64 page sizes.

Enric Balletbo i Serra eballetbo at gmail.com
Tue May 18 05:53:59 EDT 2010


From: Enric Balletbo i Serra <eballetbo at iseebcn.com>

Add support for oobsize 64 and writesize 4096 in nanddump & nandwrite.

Signed-off-by: Enric Balletbo i Serra <eballetbo at iseebcn.com>
---
 nanddump.c  |    1 +
 nandwrite.c |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/nanddump.c b/nanddump.c
index ae0e425..e44ab36 100644
--- a/nanddump.c
+++ b/nanddump.c
@@ -212,6 +212,7 @@ int main(int argc, char * const argv[])
 	if (!(meminfo.oobsize == 224 && meminfo.writesize == 4096) &&
 			!(meminfo.oobsize == 218 && meminfo.writesize == 4096) &&
 			!(meminfo.oobsize == 128 && meminfo.writesize == 4096) &&
+			!(meminfo.oobsize == 64 && meminfo.writesize == 4096) &&
 			!(meminfo.oobsize == 64 && meminfo.writesize == 2048) &&
 			!(meminfo.oobsize == 32 && meminfo.writesize == 1024) &&
 			!(meminfo.oobsize == 16 && meminfo.writesize == 512) &&
diff --git a/nandwrite.c b/nandwrite.c
index b77edd6..bd45879 100644
--- a/nandwrite.c
+++ b/nandwrite.c
@@ -294,6 +294,7 @@ int main(int argc, char * const argv[])
 	if (!(meminfo.oobsize == 16 && meminfo.writesize == 512) &&
 			!(meminfo.oobsize == 8 && meminfo.writesize == 256) &&
 			!(meminfo.oobsize == 64 && meminfo.writesize == 2048) &&
+			!(meminfo.oobsize == 64 && meminfo.writesize == 4096) &&
 			!(meminfo.oobsize == 128 && meminfo.writesize == 4096)) {
 		fprintf(stderr, "Unknown flash (not normal NAND)\n");
 		close(fd);
-- 
1.7.0.4




More information about the linux-mtd mailing list