blob: 5afc342f4063e9a53f88b360c23596fa6fc12ed5 [file] [log] [blame]
developerfd40db22021-04-29 10:08:25 +08001diff -urN a/package/system/fstools/patches/0101-jffs2-mount-on-mtk-flash-workaround.patch b/package/system/fstools/patches/0101-jffs2-mount-on-mtk-flash-workaround.patch
2--- a/package/system/fstools/patches/0101-jffs2-mount-on-mtk-flash-workaround.patch 1970-01-01 08:00:00.000000000 +0800
3+++ b/package/system/fstools/patches/0101-jffs2-mount-on-mtk-flash-workaround.patch 2020-07-30 18:16:13.178070668 +0800
4@@ -0,0 +1,14 @@
5+Index: fstools-2016-12-04-84b530a7/libfstools/mtd.c
6+===================================================================
7+--- fstools-2016-12-04-84b530a7.orig/libfstools/mtd.c 2017-08-29 15:00:46.824333000 +0800
8++++ fstools-2016-12-04-84b530a7/libfstools/mtd.c 2017-08-29 15:02:52.848520000 +0800
9+@@ -218,6 +218,9 @@
10+ if (v->type == UBIVOLUME && deadc0de == 0xffffffff) {
11+ return FS_JFFS2;
12+ }
13++ if (v->type == NANDFLASH && deadc0de == 0xffffffff) {
14++ return FS_JFFS2;
15++ }
16+
17+ return FS_NONE;
18+ }