Skip to contentSkip to conversation

mtd-utils: Support 4096+64 page sizes.

PATCH Applied Enric Balletbo i Serra 2 participants 4 messages May 18, 2010 – Jun 12, 2010 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mtd-utils: Support 4096+64 page sizes.

From: Enric Balletbo i Serra <[email protected]>

Add support for oobsize 64 and writesize 4096 in nanddump & nandwrite.

---
 nanddump.c  |    1 +
 nandwrite.c |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)
nanddump.c +1 -0
index ae0e425..e44ab36 100644
@@ -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) &&
nandwrite.c +1 -0
index b77edd6..bd45879 100644
@@ -294,6 +294,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);
Signature · 1 line
1.7.0.4
#1 lore raw
Quoted 2 lines · Enric Balletbo i Serra

+ !(meminfo.oobsize == 64 && meminfo.writesize
== 4096) &&

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.

Signature · 2 lines
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
#2 lore raw

Hello,

2010/5/22 Artem Bityutskiy <[email protected]>:

Quoted 6 lines · Enric Balletbo i Serra
Quoted 2 lines

+                       !(meminfo.oobsize == 64 && meminfo.writesize == 4096) &&

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).

Best regards,

Enric

Quoted 6 lines

--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)