diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2008-08-20 12:32:14 +0200 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2008-08-21 12:01:49 +0300 |
commit | c67a5c357443321dd252dceddb8e5304430e47c5 (patch) | |
tree | d96c12237efebabac42e20e696f13b97e795fe88 /nanddump.c | |
parent | c865655313b7b8b3f4567e3580273a7f7fce7a2f (diff) |
mtd-utils: add support for 4k pages.
Add support for 4K pages in nanddump & nandwrite.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Sebastian Siewior <bigeasy@linutronix.de>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'nanddump.c')
-rw-r--r-- | nanddump.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -159,8 +159,8 @@ void process_options (int argc, char *argv[]) /* * Buffers for reading data from flash */ -unsigned char readbuf[2048]; -unsigned char oobbuf[64]; +unsigned char readbuf[4096]; +unsigned char oobbuf[128]; /* * Main program @@ -194,7 +194,8 @@ int main(int argc, char **argv) } /* Make sure device page sizes are valid */ - if (!(meminfo.oobsize == 64 && meminfo.writesize == 2048) && + if (!(meminfo.oobsize == 128 && meminfo.writesize == 4096) && + !(meminfo.oobsize == 64 && meminfo.writesize == 2048) && !(meminfo.oobsize == 32 && meminfo.writesize == 1024) && !(meminfo.oobsize == 16 && meminfo.writesize == 512) && !(meminfo.oobsize == 8 && meminfo.writesize == 256)) { |