* [PATCH] Utils: Support 1k page & 32 bytes oob with nandwrite
@ 2007-04-19 15:30 Raphael Zimmerer
0 siblings, 0 replies; only message in thread
From: Raphael Zimmerer @ 2007-04-19 15:30 UTC (permalink / raw)
To: linux-mtd
Some chips have a page size of 1024 bytes with 32 bytes oob.
Signed-off-by: Raphael Zimmerer <killekulla@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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2007-04-19 15:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-19 15:30 [PATCH] Utils: Support 1k page & 32 bytes oob with nandwrite Raphael Zimmerer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox