[][Add initial mtk feed for OpenWRT v21.02]

[Description]
Add initial mtk feed for OpenWRT v21.02

[Release-log]
N/A

Change-Id: I8051c6ba87f1ccf26c02fdd88a17d66f63c0b101
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/4495320
diff --git a/openwrt_patches/101-fstool-add-mtk-patches.patch b/openwrt_patches/101-fstool-add-mtk-patches.patch
new file mode 100644
index 0000000..5afc342
--- /dev/null
+++ b/openwrt_patches/101-fstool-add-mtk-patches.patch
@@ -0,0 +1,18 @@
+diff -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
+--- a/package/system/fstools/patches/0101-jffs2-mount-on-mtk-flash-workaround.patch	1970-01-01 08:00:00.000000000 +0800
++++ b/package/system/fstools/patches/0101-jffs2-mount-on-mtk-flash-workaround.patch	2020-07-30 18:16:13.178070668 +0800
+@@ -0,0 +1,14 @@
++Index: fstools-2016-12-04-84b530a7/libfstools/mtd.c
++===================================================================
++--- fstools-2016-12-04-84b530a7.orig/libfstools/mtd.c	2017-08-29 15:00:46.824333000 +0800
+++++ fstools-2016-12-04-84b530a7/libfstools/mtd.c	2017-08-29 15:02:52.848520000 +0800
++@@ -218,6 +218,9 @@
++ 	if (v->type == UBIVOLUME && deadc0de == 0xffffffff) {
++ 		return FS_JFFS2;
++ 	}
+++	if (v->type == NANDFLASH && deadc0de == 0xffffffff) {
+++		return FS_JFFS2;
+++	}
++ 
++ 	return FS_NONE;
++ }
diff --git a/openwrt_patches/103-generic-kernel-config-for-mtk-snand-driver.patch b/openwrt_patches/103-generic-kernel-config-for-mtk-snand-driver.patch
new file mode 100644
index 0000000..4df19fd
--- /dev/null
+++ b/openwrt_patches/103-generic-kernel-config-for-mtk-snand-driver.patch
@@ -0,0 +1,10 @@
+--- a/target/linux/generic/config-5.4
++++ b/target/linux/generic/config-5.4
+@@ -3273,6 +3273,7 @@ CONFIG_MTD_SPLIT_SUPPORT=y
+ # CONFIG_MTD_UIMAGE_SPLIT is not set
+ # CONFIG_MTD_VIRT_CONCAT is not set
+ # CONFIG_MTK_MMC is not set
++# CONFIG_MTK_SPI_NAND is not set
+ CONFIG_MULTIUSER=y
+ # CONFIG_MUTEX_SPIN_ON_OWNER is not set
+ # CONFIG_MV643XX_ETH is not set
diff --git a/openwrt_patches/200-mt7621-modify-image-load-address.patch b/openwrt_patches/200-mt7621-modify-image-load-address.patch
new file mode 100644
index 0000000..6c85a34
--- /dev/null
+++ b/openwrt_patches/200-mt7621-modify-image-load-address.patch
@@ -0,0 +1,11 @@
+--- a/target/linux/ramips/image/Makefile
++++ b/target/linux/ramips/image/Makefile
+@@ -16,7 +16,7 @@ DEVICE_VARS += SERCOMM_PAD JCG_MAXSIZE
+ 
+ loadaddr-y := 0x80000000
+ loadaddr-$(CONFIG_TARGET_ramips_rt288x) := 0x88000000
+-loadaddr-$(CONFIG_TARGET_ramips_mt7621) := 0x80001000
++loadaddr-$(CONFIG_TARGET_ramips_mt7621) := 0x81001000
+ 
+ ldrplatform-y := ralink
+ ldrplatform-$(CONFIG_TARGET_ramips_mt7621) := mt7621