summaryrefslogtreecommitdiff
path: root/package/system/fstools/patches/003-nand-jffs2.patch
blob: 17c5afa9b38718ce403503ae527de2ab36609507 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Index: fstools-2015-02-25.1/libfstools/mtd.c
===================================================================
--- fstools-2015-02-25.1.orig/libfstools/mtd.c
+++ fstools-2015-02-25.1/libfstools/mtd.c
@@ -214,7 +214,7 @@ static int mtd_volume_identify(struct vo
 		return FS_JFFS2;
 	}
 
-	if (v->type == UBIVOLUME && deadc0de == 0xffffffff) {
+	if ((v->type == UBIVOLUME || v->type == NANDFLASH) && deadc0de == 0xffffffff) {
 		fprintf(stderr, "jffs2 is ready\n");
 		return FS_JFFS2;
 	}