diff options
author | Enric Balletbo i Serra <eballetbo@iseebcn.com> | 2010-05-18 11:53:59 +0200 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2010-06-12 14:41:26 +0300 |
commit | 772f5e08faa9d2b5677aa6e01fce06860186a49f (patch) | |
tree | 71458f689a2865700a27610a364166fe84a18c9a | |
parent | a8214921bdc7d78b75d133a37ff9f8d4ec919650 (diff) |
mtd-utils: support 4096+64 page sizes
Add support for oobsize 64 and writesize 4096 in nanddump & nandwrite.
Artem: some more info from further e-mail exchange:
> Are there flashes with the 4096 page / 64 spare combination? Could you
> refer to one? May be any URL? I thought 4096 comes with 128.
Much to my regret I can't provide a URL because is not public. IGEP v2
board has a Onenand with two dice of 2048/64 spare combination but mtd
views 4096/64. The minimal write page is 4K (2K from first dice and 2K
from second dice).
Signed-off-by: Enric Balletbo i Serra <eballetbo@iseebcn.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
-rw-r--r-- | nanddump.c | 1 | ||||
-rw-r--r-- | nandwrite.c | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -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 e691ebd..1b4ca3d 100644 --- a/nandwrite.c +++ b/nandwrite.c @@ -301,6 +301,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); |