]> www.infradead.org Git - mtd-utils.git/commitdiff
nanddump: increase max OOB size
authorBrian Norris <norris@broadcom.com>
Thu, 8 Jul 2010 20:50:04 +0000 (13:50 -0700)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Sun, 18 Jul 2010 07:07:44 +0000 (10:07 +0300)
Supported OOB and page sizes can now be changed more easily by a
macro constant. NAND_MAX_OOBSIZE needed increased to support 218
and 224 byte OOB.

Signed-off-by: Brian Norris <norris@broadcom.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
nanddump.c

index e44ab36912c2de77d54de18341759b7f6bb27d78..735ae4872e223c81bbe1566fff513adbc99417da 100644 (file)
@@ -174,8 +174,10 @@ static void process_options (int argc, char * const argv[])
 /*
  * Buffers for reading data from flash
  */
-static unsigned char readbuf[4096];
-static unsigned char oobbuf[128];
+#define NAND_MAX_PAGESIZE 4096
+#define NAND_MAX_OOBSIZE 256
+static unsigned char readbuf[NAND_MAX_PAGESIZE];
+static unsigned char oobbuf[NAND_MAX_OOBSIZE];
 
 /*
  * Main program