[PATCH] Utils: Support 1k page & 32 bytes oob with nandwrite
Raphael Zimmerer
killekulla at rdrz.de
Thu Apr 19 11:30:50 EDT 2007
Some chips have a page size of 1024 bytes with 32 bytes oob.
Signed-off-by: Raphael Zimmerer <killekulla at rdrz.de>
---
nandwrite.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/nandwrite.c b/nandwrite.c
index f74581d..52ab580 100644
--- a/nandwrite.c
+++ b/nandwrite.c
@@ -243,6 +243,7 @@ int main(int argc, char **argv)
/* Make sure device page sizes are valid */
if (!(meminfo.oobsize == 16 && meminfo.writesize == 512) &&
+ !(meminfo.oobsize == 32 && meminfo.writesize == 1024) &&
!(meminfo.oobsize == 8 && meminfo.writesize == 256) &&
!(meminfo.oobsize == 64 && meminfo.writesize == 2048)) {
fprintf(stderr, "Unknown flash (not normal NAND)\n");
--
1.4.4.4
More information about the linux-mtd
mailing list