summaryrefslogtreecommitdiff
path: root/nanddump.c
diff options
context:
space:
mode:
authorJosh Boyer <jwboyer@gmail.com>2006-05-27 10:10:03 -0500
committerJosh Boyer <jwboyer@gmail.com>2006-05-27 10:10:03 -0500
commit69358f79c0523f40001aebb6e43b2401b3a3e070 (patch)
tree4c5b382d02870a6a30a67a75d49ebd916e52ec6d /nanddump.c
parenta96ff574c24dab891c4061d2103815e34aeb78f8 (diff)
parentc712b2344e47101df11f46997508bf96b9f4e24e (diff)
Merge git://git.infradead.org/users/joern/utils
Diffstat (limited to 'nanddump.c')
-rw-r--r--nanddump.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/nanddump.c b/nanddump.c
index a010387..a03c79a 100644
--- a/nanddump.c
+++ b/nanddump.c
@@ -192,9 +192,9 @@ int main(int argc, char **argv)
}
/* Make sure device page sizes are valid */
- if (!(meminfo.oobsize == 64 && meminfo.oobblock == 2048) &&
- !(meminfo.oobsize == 16 && meminfo.oobblock == 512) &&
- !(meminfo.oobsize == 8 && meminfo.oobblock == 256)) {
+ if (!(meminfo.oobsize == 64 && meminfo.writesize == 2048) &&
+ !(meminfo.oobsize == 16 && meminfo.writesize == 512) &&
+ !(meminfo.oobsize == 8 && meminfo.writesize == 256)) {
fprintf(stderr, "Unknown flash (not normal NAND)\n");
close(fd);
exit(1);
@@ -232,10 +232,10 @@ int main(int argc, char **argv)
if (!length || end_addr > meminfo.size)
end_addr = meminfo.size;
- bs = meminfo.oobblock;
+ bs = meminfo.writesize;
/* Print informative message */
- fprintf(stderr, "Block size %u, page size %u, OOB size %u\n", meminfo.erasesize, meminfo.oobblock, meminfo.oobsize);
+ fprintf(stderr, "Block size %u, page size %u, OOB size %u\n", meminfo.erasesize, meminfo.writesize, meminfo.oobsize);
fprintf(stderr, "Dumping data starting at 0x%08x and ending at 0x%08x...\n",
(unsigned int) start_addr, (unsigned int) end_addr);