From: Raphael Zimmerer <killekulla@rdrz.de>
To: linux-mtd@lists.infradead.org
Subject: [PATCH] Utils: Support 1k page & 32 bytes oob with nandwrite
Date: Thu, 19 Apr 2007 17:30:50 +0200 [thread overview]
Message-ID: <20070419153050.GA30241@rdrz.de> (raw)
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
reply other threads:[~2007-04-19 15:30 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070419153050.GA30241@rdrz.de \
--to=killekulla@rdrz.de \
--cc=linux-mtd@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox