summaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
Diffstat (limited to 'target')
-rwxr-xr-xtarget/linux/mediatek/Makefile22
-rwxr-xr-xtarget/linux/mediatek/image/Makefile801
-rwxr-xr-xtarget/linux/mediatek/mt7623_emmc/config-default988
-rwxr-xr-xtarget/linux/mediatek/mt7623_emmc/profiles/00-default.mk27
-rwxr-xr-xtarget/linux/mediatek/mt7623_emmc/target.mk17
-rwxr-xr-xtarget/linux/mediatek/mt7623_mtd/config-default1031
-rwxr-xr-xtarget/linux/mediatek/mt7623_mtd/profiles/00-default.mk27
-rwxr-xr-xtarget/linux/mediatek/mt7623_mtd/target.mk17
-rw-r--r--target/linux/mediatek/patches/mt7623-nand-workaround.patch39
9 files changed, 2969 insertions, 0 deletions
diff --git a/target/linux/mediatek/Makefile b/target/linux/mediatek/Makefile
new file mode 100755
index 0000000..2e166e8
--- /dev/null
+++ b/target/linux/mediatek/Makefile
@@ -0,0 +1,22 @@
+#
+# Copyright (C) 2015 MediaTek
+#
+include $(TOPDIR)/rules.mk
+
+ARCH:=arm
+BOARD:=mediatek
+BOARDNAME:=MTK APSoC (ARM)
+SUBTARGETS:=mt7623_emmc mt7623_mtd
+FEATURES:=squashfs gpio ubifs nand
+LINUX_VERSION:=3.10.20
+P4REV:=156334
+LINUX_EXT_VERSION:=$(LINUX_VERSION)-$(P4REV)
+
+include $(INCLUDE_DIR)/target.mk
+DEFAULT_PACKAGES +=
+
+define Target/Description
+ Build firmware images for MTK/Ralink APSoC based boards.
+endef
+
+$(eval $(call BuildTarget))
diff --git a/target/linux/mediatek/image/Makefile b/target/linux/mediatek/image/Makefile
new file mode 100755
index 0000000..282b04b
--- /dev/null
+++ b/target/linux/mediatek/image/Makefile
@@ -0,0 +1,801 @@
+#
+# Copyright (C) 2008-2011 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+include $(TOPDIR)/rules.mk
+include $(INCLUDE_DIR)/image.mk
+
+define imgname
+$(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1)
+endef
+
+define sysupname
+$(call imgname,$(1),$(2))-sysupgrade.bin
+endef
+
+VMLINUX:=$(IMG_PREFIX)-vmlinux
+UIMAGE:=$(IMG_PREFIX)-uImage
+
+ifeq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y)
+define Image/Build/Initramfs
+ $(call Image/Build/Profile/$(PROFILE),initramfs)
+endef
+endif
+
+define kernel_entry
+-a 0x80008000 -e 0x80008000
+endef
+
+define MkCombineduImage
+ $(call PatchKernelLzma,$(2),$(3))
+ if [ `stat -c%s "$(KDIR)/vmlinux-$(2).bin.lzma"` -gt `expr $(4) - 64` ]; then \
+ echo "Warning: $(KDIR)/vmlinux-$(2).bin.lzma is too big" >&2; \
+ else if [ `stat -c%s "$(KDIR)/root.$(1)"` -gt $(5) ]; then \
+ echo "Warning: $(KDIR)/root.$(1) is too big" >&2; \
+ else \
+ ( dd if=$(KDIR)/vmlinux-$(2).bin.lzma bs=`expr $(4) - 64` conv=sync ; dd if=$(KDIR)/root.$(1) ) > $(KDIR)/vmlinux-$(2).bin.lzma.combined ; \
+ fi ; fi
+ $(call MkImage,lzma,$(KDIR)/vmlinux-$(2).bin.lzma.combined,$(call sysupname,$(1),$(2)),$(6))
+endef
+
+
+#
+# The real magic happens inside these templates
+#
+
+define MkImage
+ $(eval ZKERNEL=$(LINUX_DIR)/arch/arm/boot/zImage)
+ echo MkImage $(1) $(2) $(3) $(4)
+ $(eval imagename=$(if $(4),$(4),OpenWrt Linux-$(LINUX_VERSION)))
+ -mkimage -A arm -O linux -T kernel -C none $(call kernel_entry)\
+ -n "$(imagename)" \
+ -d $(ZKERNEL) $(3)
+endef
+
+define CompressLzma
+ $(STAGING_DIR_HOST)/bin/lzma e $(1) -lc1 -lp2 -pb2 $(2)
+endef
+
+define MkImageSysupgrade/squashfs
+ $(eval output_name=$(IMG_PREFIX)-$(2)-$(1)-$(if $(4),$(4),sysupgrade).bin)
+ cat $(KDIR)/vmlinux-$(2).uImage $(KDIR)/root.$(1) > $(KDIR)/$(output_name)
+ $(call prepare_generic_squashfs,$(KDIR)/$(output_name))
+ if [ `stat -c%s "$(KDIR)/$(output_name)"` -gt $(3) ]; then \
+ echo "Warning: $(KDIR)/$(output_name) is too big" >&2; \
+ else \
+ $(CP) $(KDIR)/$(output_name) $(BIN_DIR)/$(output_name); \
+ fi
+endef
+
+define PatchKernelLzmaDtb
+ cp $(KDIR)/vmlinux$(3) $(KDIR)/vmlinux-$(1)$(3)
+ #$(LINUX_DIR)/scripts/dtc/dtc -O dtb -o $(KDIR)/$(2).dtb ../dts/$(2).dts
+ #$(STAGING_DIR_HOST)/bin/patch-dtb $(KDIR)/vmlinux-$(1)$(3) $(KDIR)/$(2).dtb
+ $(call CompressLzma,$(KDIR)/vmlinux-$(1)$(3),$(KDIR)/vmlinux-$(1)$(3).bin.lzma)
+endef
+
+define MkImageLzmaDtb
+ $(call PatchKernelLzmaDtb,$(1),$(2),$(4))
+ $(call MkImage,lzma,$(KDIR)/vmlinux-$(1)$(4).bin.lzma,$(KDIR)/vmlinux-$(1)$(4).uImage,$(3))
+endef
+
+define BuildFirmware/OF
+ $(call MkImageLzmaDtb,$(2),$(3),$(5))
+ $(call MkImageSysupgrade/$(1),$(1),$(2),$(4),$(6))
+endef
+
+define BuildFirmware/OF/initramfs
+ $(call MkImageLzmaDtb,$(2),$(3),$(4),-initramfs)
+ $(CP) $(KDIR)/vmlinux-$(2)-initramfs.uImage $(call imgname,$(1),$(2))-uImage.bin
+endef
+
+
+# Build images for default ralink layout for 4MB flash
+# kernel + roots = 0x3b0000
+# $(1) = squashfs/initramfs
+# $(2) = lowercase board name
+# $(3) = dts file
+ralink_default_fw_size_4M=3866624
+BuildFirmware/Default4M/squashfs=$(call BuildFirmware/OF,$(1),$(2),$(3),$(ralink_default_fw_size_4M),$(4))
+BuildFirmware/Default4M/initramfs=$(call BuildFirmware/OF/initramfs,$(1),$(2),$(3),$(4))
+
+# Build images for default ralink layout for 8MB flash
+# kernel + roots = 0x7b0000
+# $(1) = squashfs/initramfs
+# $(2) = lowercase board name
+# $(3) = dts file
+ralink_default_fw_size_8M=8060928
+BuildFirmware/Default8M/squashfs=$(call BuildFirmware/OF,$(1),$(2),$(3),$(ralink_default_fw_size_8M),$(4))
+BuildFirmware/Default8M/initramfs=$(call BuildFirmware/OF/initramfs,$(1),$(2),$(3),$(4))
+
+ralink_default_fw_size_16M=16121856
+BuildFirmware/Default16M/squashfs=$(call BuildFirmware/OF,$(1),$(2),$(3),$(ralink_default_fw_size_16M),$(4))
+BuildFirmware/Default16M/initramfs=$(call BuildFirmware/OF/initramfs,$(1),$(2),$(3),$(4))
+
+ralink_default_fw_size_32M=33554432
+BuildFirmware/Default32M/squashfs=$(call BuildFirmware/OF,$(1),$(2),$(3),$(ralink_default_fw_size_32M),$(4))
+BuildFirmware/Default32M/initramfs=$(call BuildFirmware/OF/initramfs,$(1),$(2),$(3),$(4))
+
+# Build images for a custom sized flash layout
+# $(1) = squashfs/initramfs
+# $(2) = lowercase board name
+# $(3) = dts file
+# $(4) = kernel + rootfs size
+BuildFirmware/CustomFlash/squashfs=$(call BuildFirmware/OF,$(1),$(2),$(3),$(4),$(5),$(6))
+BuildFirmware/CustomFlash/initramfs=$(call BuildFirmware/OF/initramfs,$(1),$(2),$(3))
+
+# wrappers for boards that have 4MB and 8MB versions
+define BuildFirmware/DefaultDualSize/squashfs
+ $(call BuildFirmware/Default4M/$(1),$(1),$(2)-4M,$(3)-4M)
+ $(call BuildFirmware/Default8M/$(1),$(1),$(2)-8M,$(3)-8M)
+endef
+define BuildFirmware/DefaultDualSize/initramfs
+ $(call BuildFirmware/OF/initramfs,$(1),$(2)-4M,$(3)-4M)
+ $(call BuildFirmware/OF/initramfs,$(1),$(2)-8M,$(3)-8M)
+endef
+
+# Some boards need a special header inside the uImage to make them bootable
+define BuildFirmware/CustomFlashFactory/squashfs
+ $(call BuildFirmware/CustomFlash/$(1),$(1),$(2),$(3),$(4))
+ $(call BuildFirmware/CustomFlash/$(1),$(1),$(2),$(3),$(4),$(5),$(6))
+endef
+BuildFirmware/CustomFlashFactory/initramfs=$(call BuildFirmware/OF/initramfs,$(1),$(2),$(3))
+
+# sign an image to make it work with edimax tftp recovery
+define BuildFirmware/Edimax/squashfs
+ $(call BuildFirmware/OF,$(1),$(2),$(3),$(4))
+ if [ -e "$(call sysupname,$(1),$(2))" ]; then \
+ mkedimaximg -i $(call sysupname,$(1),$(2)) \
+ -o $(call imgname,$(1),$(2))-factory.bin \
+ -s $(5) -m $(6) -f $(7) -S $(8); \
+ fi
+endef
+BuildFirmware/Edimax/initramfs=$(call BuildFirmware/OF/initramfs,$(1),$(2),$(3))
+
+# build Seama header images
+define BuildFirmware/Seama/squashfs
+ $(call MkImageLzmaDtb,$(2),$(3),$(5))
+ $(eval output_name=$(IMG_PREFIX)-$(2)-$(1)-sysupgrade.bin)
+ cat $(KDIR)/vmlinux-$(2).bin.lzma $(KDIR)/root.$(1) > $(KDIR)/img_$(2).$(1).tmp
+ if [ `stat -c%s "$(KDIR)/img_$(2).$(1).tmp"` -gt $$$$(($(5) - 64)) ]; then \
+ echo "Warning: $(KDIR)/img_$(2).$(1).tmp is too big" >&2; \
+ else \
+ dd if=$(KDIR)/vmlinux-$(2).bin.lzma of=$(KDIR)/vmlinux-$(2).bin.lzma.padded bs=64k conv=sync; \
+ ( \
+ dd if=$(KDIR)/vmlinux-$(2).bin.lzma.padded bs=1 count=`expr \`stat -c%s $(KDIR)/vmlinux-$(2).bin.lzma.padded\` - 64`; \
+ dd if=$(KDIR)/root.$(1) bs=64k conv=sync; \
+ ) > $(KDIR)/vmlinux-$(2).tmp; \
+ $(STAGING_DIR_HOST)/bin/seama \
+ -i $(KDIR)/vmlinux-$(2).tmp \
+ -m "dev=/dev/mtdblock/2" -m "type=firmware"; \
+ $(STAGING_DIR_HOST)/bin/seama \
+ -s $(call imgname,$(1),$(2))-factory.bin \
+ -m "signature=$(4)" \
+ -i $(KDIR)/vmlinux-$(2).tmp.seama; \
+ dd if=$(KDIR)/vmlinux-$(2).bin.lzma.padded bs=1 count=`expr \`stat -c%s $(KDIR)/vmlinux-$(2).bin.lzma.padded\` - 64` of=$(KDIR)/vmlinux-$(2)-sysupgrade.tmp; \
+ $(STAGING_DIR_HOST)/bin/seama \
+ -i $(KDIR)/vmlinux-$(2)-sysupgrade.tmp \
+ -m "dev=/dev/mtdblock/2" -m "type=firmware"; \
+ ( \
+ dd if=$(KDIR)/vmlinux-$(2)-sysupgrade.tmp.seama; \
+ dd if=$(KDIR)/root.$(1) bs=64k conv=sync; \
+ ) > $(BIN_DIR)/$(output_name); \
+ fi
+endef
+BuildFirmware/Seama/initramfs=$(call BuildFirmware/OF/initramfs,$(1),$(2),$(3))
+
+# sign Buffalo images
+define BuildFirmware/Buffalo
+ if [ -e "$(call sysupname,$(1),$(2))" ]; then \
+ buffalo-enc -p $(3) -v 1.76 \
+ -i $(KDIR)/vmlinux-$(2).uImage \
+ -o $(KDIR)/vmlinux-$(2).uImage.enc; \
+ buffalo-enc -p $(3) -v 1.76 \
+ -i $(KDIR)/root.$(1) \
+ -o $(KDIR)/root.$(2).enc; \
+ buffalo-tag -b $(3) -p $(3) -a ram -v 1.76 -m 1.01 \
+ -l mlang8 -f 1 -r EU \
+ -i $(KDIR)/vmlinux-$(2).uImage.enc \
+ -i $(KDIR)/root.$(2).enc \
+ -o $(call imgname,$(1),$(2))-factory-EU.bin; \
+ fi
+endef
+
+# sign trednet / UMedia images
+define BuildFirmware/UMedia/squashfs
+ $(call BuildFirmware/Default8M/$(1),$(1),$(2),$(3))
+ if [ -e "$(call sysupname,$(1),$(2))" ]; then \
+ fix-u-media-header -T 0x46 -B $(4) \
+ -i $(call sysupname,$(1),$(2)) \
+ -o $(call imgname,$(1),$(2))-factory.bin; \
+ fi
+endef
+BuildFirmware/UMedia/initramfs=$(call BuildFirmware/OF/initramfs,$(1),$(2),$(3))
+
+# sign dap 1350 based images
+dap1350_mtd_size=7667712
+define BuildFirmware/dap1350/squashfs
+ $(call BuildFirmware/CustomFlash/$(1),$(1),$(2),$(3),$(dap1350_mtd_size))
+ -mkdapimg -s $(4) \
+ -i $(call sysupname,$(1),$(2)) \
+ -o $(call imgname,$(1),$(2))-factory.bin
+endef
+BuildFirmware/dap1350/initramfs=$(call BuildFirmware/OF/initramfs,$(1),$(2),$(3))
+
+# Sign Poray images
+define BuildFirmware/Poray4M/squashfs
+ $(call BuildFirmware/Default4M/$(1),$(1),$(2),$(3))
+ if [ -e "$(call sysupname,$(1),$(2))" ]; then \
+ mkporayfw -B $(3) -F 4M \
+ -f $(call sysupname,$(1),$(2)) \
+ -o $(call imgname,$(1),$(2))-factory.bin; \
+ fi
+endef
+BuildFirmware/Poray4M/initramfs=$(call BuildFirmware/OF/initramfs,$(1),$(2),$(3))
+
+define BuildFirmware/Poray8M/squashfs
+ $(call BuildFirmware/Default8M/$(1),$(1),$(2),$(3))
+ if [ -e "$(call sysupname,$(1),$(2))" ]; then \
+ mkporayfw -B $(3) -F 8M \
+ -f $(call sysupname,$(1),$(2)) \
+ -o $(call imgname,$(1),$(2))-factory.bin; \
+ fi
+endef
+BuildFirmware/Poray8M/initramfs=$(call BuildFirmware/OF/initramfs,$(1),$(2),$(3))
+
+define BuildFirmware/PorayDualSize/squashfs
+ $(call BuildFirmware/DefaultDualSize/$(1),$(1),$(2),$(3))
+ if [ -e "$(call sysupname,$(1),$(2)-4M)" ]; then \
+ mkporayfw -B $(3) -F 4M \
+ -f $(call sysupname,$(1),$(2)-4M) \
+ -o $(call imgname,$(1),$(2))-4M-factory.bin; \
+ fi
+ if [ -e "$(call sysupname,$(1),$(2)-8M)" ]; then \
+ mkporayfw -B $(3) -F 8M \
+ -f $(call sysupname,$(1),$(2)-8M) \
+ -o $(call imgname,$(1),$(2))-8M-factory.bin; \
+ fi
+endef
+BuildFirmware/PorayDualSize/initramfs=$(call BuildFirmware/DefaultDualSize/initramfs,$(1),$(2),$(3))
+
+define BuildFirmware/Gemtek/squashfs
+ $(call BuildFirmware/Default4M/$(1),$(1),$(2),$(3))
+ if [ -e "$(call sysupname,$(1),$(2))" ]; then \
+ mkheader_gemtek "$(call sysupname,$(1),$(2))" \
+ "$(call imgname,$(1),$(2))-factory.bin" $(2) || \
+ rm -f "$(call imgname,$(1),$(2))-factory.bin"; \
+ fi
+endef
+BuildFirmware/Gemtek/initramfs=$(call BuildFirmware/OF/initramfs,$(1),$(2),$(3))
+
+#
+# RT288X Profiles
+#
+
+Image/Build/Profile/AR725W=$(call BuildFirmware/Gemtek/$(1),$(1),ar725w,AR725W)
+
+# 0x790000
+belkin_f5d8235v1_mtd_size=7929856
+Image/Build/Profile/F5D8235V1=$(call BuildFirmware/CustomFlash/$(1),$(1),f5d8235v1,F5D8235_V1,$(belkin_f5d8235v1_mtd_size))
+
+Image/Build/Profile/RTN15=$(call BuildFirmware/Default4M/$(1),$(1),rt-n15,RT-N15)
+
+Image/Build/Profile/V11STFE=$(call BuildFirmware/Default4M/$(1),$(1),v11st-fe,V11STFE)
+
+Image/Build/Profile/WLITX4AG300N=$(call BuildFirmware/Default4M/$(1),$(1),wli-tx4-ag300n,WLI-TX4-AG300N)
+
+ifeq ($(SUBTARGET),rt288x)
+define Image/Build/Profile/Default
+ $(call Image/Build/Profile/AR725W,$(1))
+ $(call Image/Build/Profile/F5D8235V1,$(1))
+ $(call Image/Build/Profile/RTN15,$(1))
+ $(call Image/Build/Profile/V11STFE,$(1))
+ $(call Image/Build/Profile/WLITX4AG300N,$(1))
+endef
+endif
+
+
+
+#
+# RT305X Profiles
+#
+
+Image/Build/Profile/DIR610A1=$(call BuildFirmware/Seama/$(1),$(1),dir-610-a1,DIR-610-A1,wrgn59_dlob.hans_dir610,$(ralink_default_fw_size_4M))
+
+edimax_3g6200n_mtd_size=3735552
+Image/Build/Profile/3G6200N=$(call BuildFirmware/Edimax/$(1),$(1),3g-6200n,3G-6200N,$(edimax_3g6200n_mtd_size),CSYS,3G62,0x50000,0xc0000)
+
+Image/Build/Profile/3G6200NL=$(call BuildFirmware/Edimax/$(1),$(1),3g-6200nl,3G-6200NL,$(edimax_3g6200n_mtd_size),CSYS,3G62,0x50000,0xc0000)
+
+Image/Build/Profile/3G300M=$(call BuildFirmware/CustomFlashFactory/$(1),$(1),3g300m,3G300M,$(ralink_default_fw_size_4M),3G150M_SPI Kernel Image,factory)
+
+Image/Build/Profile/AIR3GII=$(call BuildFirmware/Default4M/$(1),$(1),air3gii,AIR3GII)
+
+define BuildFirmware/UIMAGE_8M
+ $(call MkCombineduImage,$(1),$(2),$(call mkcmdline,$(3),$(4),$(5)) $(call mkmtd/$(6),$(mtdlayout_8M)),$(kernel_size_8M),$(rootfs_size_8M),$(7))
+endef
+define Image/Build/Profile/ALL02393G
+ $(call Image/Build/Template/$(image_type)/$(1),UIMAGE_8M,all0239-3g,ALL0239-3G,ttyS1,57600,phys)
+endef
+
+Image/Build/Profile/ALL0256N=$(call BuildFirmware/DefaultDualSize/$(1),$(1),all0256n,ALL0256N)
+
+allnet_all5002_mtd_size=33226752
+Image/Build/Profile/ALL5002=$(call BuildFirmware/CustomFlash/$(1),$(1),all5002,ALL5002,$(allnet_all5002_mtd_size))
+Image/Build/Profile/ALL5003=$(call BuildFirmware/CustomFlash/$(1),$(1),all5003,ALL5003,$(allnet_all5002_mtd_size))
+
+argus_atp52b_mtd_size=7995392
+Image/Build/Profile/ARGUS_ATP52B=$(call BuildFirmware/CustomFlash/$(1),$(1),argus_atp52b,ARGUS_ATP52B,$(argus_atp52b_mtd_size))
+
+asl26555_8mb_mtd_size=7929856
+asl26555_16mb_mtd_size=16252928
+define BuildFirmware/ASL26555/squashfs
+ $(call BuildFirmware/CustomFlash/$(1),$(1),$(2)-8M,$(3)-8M,$(asl26555_8mb_mtd_size))
+ $(call BuildFirmware/CustomFlash/$(1),$(1),$(2)-16M,$(3)-16M,$(asl26555_16mb_mtd_size))
+endef
+define BuildFirmware/ASL26555/initramfs
+ $(call BuildFirmware/OF/initramfs,$(1),$(2)-8M,$(3)-8M)
+ $(call BuildFirmware/OF/initramfs,$(1),$(2)-16M,$(3)-16M)
+endef
+Image/Build/Profile/ASL26555=$(call BuildFirmware/ASL26555/$(1),$(1),asl26555,ASL26555)
+
+Image/Build/Profile/AWM002EVB=$(call BuildFirmware/DefaultDualSize/$(1),$(1),awm002-evb,AWM002-EVB)
+Image/Build/Profile/AWM003EVB=$(call BuildFirmware/Default8M/$(1),$(1),awm003-evb,AWM003-EVB)
+Image/Build/Profile/AWAPN2403=$(call BuildFirmware/Default4M/$(1),$(1),awmapn2403,AWAPN2403)
+
+Image/Build/Profile/BC2=$(call BuildFirmware/Default8M/$(1),$(1),bc2,BC2)
+
+broadway_mtd_size=7929856
+Image/Build/Profile/BROADWAY=$(call BuildFirmware/CustomFlashFactory/$(1),$(1),broadway,BROADWAY,$(broadway_mtd_size),Broadway Kernel Image,factory)
+
+Image/Build/Profile/CARAMBOLA=$(call BuildFirmware/Default8M/$(1),$(1),carambola,CARAMBOLA)
+
+Image/Build/Profile/D105=$(call BuildFirmware/Default4M/$(1),$(1),d105,D105)
+
+define BuildFirmware/DIR300B1/squashfs
+ $(call BuildFirmware/Default4M/$(1),$(1),$(2),$(3))
+ -mkwrgimg -s $(4) -d /dev/mtdblock/2 \
+ -i $(call sysupname,$(1),$(2)) \
+ -o $(call imgname,$(1),$(2))-factory.bin
+endef
+BuildFirmware/DIR300B1/initramfs=$(call BuildFirmware/OF/initramfs,$(1),$(2),$(3))
+Image/Build/Profile/DIR-300-B1=$(call BuildFirmware/DIR300B1/$(1),$(1),dir-300-b1,DIR-300-B1,wrgn23_dlwbr_dir300b)
+Image/Build/Profile/DIR-600-B1=$(call BuildFirmware/DIR300B1/$(1),$(1),dir-600-b1,DIR-600-B1,wrgn23_dlwbr_dir600b)
+Image/Build/Profile/DIR-600-B2=$(call BuildFirmware/DIR300B1/$(1),$(1),dir-600-b2,DIR-600-B2,wrgn23_dlwbr_dir600b)
+Image/Build/Profile/DIR-615-D=$(call BuildFirmware/DIR300B1/$(1),$(1),dir-615-d,DIR-615-D,wrgn23_dlwbr_dir615d)
+
+Image/Build/Profile/DIR-620-A1=$(call BuildFirmware/Default8M/$(1),$(1),dir-620-a1,DIR-620-A1)
+Image/Build/Profile/DIR-620-D1=$(call BuildFirmware/Default8M/$(1),$(1),dir-620-d1,DIR-620-D1)
+
+define BuildFirmware/DIR615H1/squashfs
+ $(call BuildFirmware/Default4M/$(1),$(1),dir-615-h1,DIR-615-H1)
+ -mksenaofw -e $(call sysupname,$(1),dir-615-h1) \
+ -o $(call imgname,$(1),dir-615-h1)-factory.bin \
+ -r 0x218 -p 0x30 -t 3
+endef
+BuildFirmware/DIR615H1/initramfs=$(call BuildFirmware/OF/initramfs,$(1),dir-615-h1,DIR-615-H1)
+Image/Build/Profile/DIR615H1=$(call BuildFirmware/DIR615H1/$(1),$(1))
+
+Image/Build/Profile/DAP1350=$(call BuildFirmware/dap1350/$(1),$(1),dap-1350,DAP-1350,RT3052-AP-DAP1350-3)
+
+Image/Build/Profile/DAP1350WW=$(call BuildFirmware/dap1350/$(1),$(1),dap-1350WW,DAP-1350,RT3052-AP-DAP1350WW-3)
+
+define BuildFirmware/DCS930/squashfs
+ $(call BuildFirmware/Default4M/squashfs,squashfs,$(2),$(3))
+ dd if=$(KDIR)/vmlinux-$(2).bin.lzma of=$(KDIR)/image.$(2).combined bs=1048512 count=1 conv=sync
+ cat $(KDIR)/root.squashfs >> $(KDIR)/image.$(2).combined
+ $(call MkImage,lzma,$(KDIR)/image.$(2).combined,$(KDIR)/image.$(2))
+ $(call prepare_generic_squashfs,$(KDIR)/image.$(2))
+ if [ `stat -c%s "$(KDIR)/image.$(2)"` -gt $(ralink_default_fw_size_4M) ]; then \
+ echo "Warning: $(KDIR)/image.$(2) is too big" >&2; \
+ else \
+ dd if=$(KDIR)/image.$(2) of=$(KDIR)/dcs.tmp bs=64K count=5 conv=sync ;\
+ cat $(KDIR)/image.$(2) >> $(KDIR)/dcs.tmp ; \
+ dd if=$(KDIR)/dcs.tmp of=$(call imgname,$(1),$(2))-factory.bin bs=4096k count=1 conv=sync ;\
+ $(STAGING_DIR_HOST)/bin/mkdcs932 $(call imgname,$(1),$(2))-factory.bin ; \
+ fi
+endef
+BuildFirmware/DCS930/initramfs=$(call BuildFirmware/OF/initramfs,$(1),$(2),$(3))
+Image/Build/Profile/DCS930=$(call BuildFirmware/DCS930/$(1),$(1),dcs-930,DCS-930)
+
+Image/Build/Profile/ESR-9753=$(call BuildFirmware/Default4M/$(1),$(1),esr-9753,ESR-9753)
+
+Image/Build/Profile/HW550-3G=$(call BuildFirmware/Default8M/$(1),$(1),hw550-3g,HW550-3G)
+
+belkin_f5d8235v2_mtd_size=7929856
+Image/Build/Profile/F5D8235V2=$(call BuildFirmware/CustomFlash/$(1),$(1),f5d8235v2,F5D8235_V2,$(belkin_f5d8235v2_mtd_size))
+
+# 0x770000
+belkin_f7c027_mtd_size=7798784
+Image/Build/Profile/F7C027=$(call BuildFirmware/CustomFlash/$(1),$(1),belkinf7c027,F7C027,$(belkin_f7c027_mtd_size))
+
+Image/Build/Profile/FONERA20N=$(call BuildFirmware/Edimax/$(1),$(1),fonera20n,FONERA20N,$(ralink_default_fw_size_8M),RSDK,NL1T,0x50000,0xc0000)
+
+Image/Build/Profile/RT-N13U=$(call BuildFirmware/Default8M/$(1),$(1),rt-n13u,RT-N13U)
+
+#Image/Build/Profile/HG255D=$(call BuildFirmware/Default16M/$(1),$(1),hg255d,HG255D)
+
+Image/Build/Profile/FREESTATION5=$(call BuildFirmware/Default8M/$(1),$(1),freestation5,FREESTATION5)
+
+Image/Build/Profile/IP2202=$(call BuildFirmware/Default8M/$(1),$(1),ip2202,IP2202)
+
+BuildFirmware/HLKRM04/squashfs=$(call BuildFirmware/Default4M/squashfs,$(1),$(2),$(3),$(4))
+define BuildFirmware/HLKRM04/initramfs
+ $(call BuildFirmware/OF/initramfs,$(1),$(2),$(3),$(4))
+ #mkhilinkfw -e -i$(call imgname,$(1),$(2))-uImage.bin -o $(call imgname,$(1),$(2))-factory.bin;
+endef
+Image/Build/Profile/HLKRM04=$(call BuildFirmware/HLKRM04/$(1),$(1),hlk-rm04,HLKRM04,HLK-RM02)
+
+Image/Build/Profile/M3=$(call BuildFirmware/Poray4M/$(1),$(1),m3,M3)
+
+Image/Build/Profile/M4=$(call BuildFirmware/PorayDualSize/$(1),$(1),m4,M4)
+
+Image/Build/Profile/MOFI3500-3GN=$(call BuildFirmware/Default8M/$(1),$(1),mofi3500-3gn,MOFI3500-3GN)
+
+# Kernel name should be "Linux Kernel Image" to make the OpenWrt image installable from factory Web UI
+Image/Build/Profile/MPRA1=$(call BuildFirmware/Default4M/$(1),$(1),mpr-a1,MPRA1,Linux Kernel Image)
+Image/Build/Profile/MPRA2=$(call BuildFirmware/Default8M/$(1),$(1),mpr-a2,MPRA2,Linux Kernel Image)
+
+Image/Build/Profile/DIR-300-B7=$(call BuildFirmware/Default4M/$(1),$(1),dir-300-b7,DIR-300-B7)
+Image/Build/Profile/DIR-320-B1=$(call BuildFirmware/Default8M/$(1),$(1),dir-320-b1,DIR-320-B1)
+
+Image/Build/Profile/NBG-419N=$(call BuildFirmware/Default4M/$(1),$(1),nbg-419n,NBG-419N)
+
+Image/Build/Profile/MZKW300NH2=$(call BuildFirmware/Edimax/$(1),$(1),mzk-w300nh2,MZK-W300NH2,$(mzkw300nh2_mtd_size),CSYS,RN52,0x50000,0xc0000)
+
+Image/Build/Profile/NCS601W=$(call BuildFirmware/Default8M/$(1),$(1),ncs601W,NCS601W)
+
+nw718_mtd_size=3801088
+Image/Build/Profile/NW718=$(call BuildFirmware/CustomFlashFactory/$(1),$(1),nw718m,NW718,$(nw718_mtd_size),ARA1B4NCRNW718;1,factory)
+
+Image/Build/Profile/OMNI-EMB=$(call BuildFirmware/Default8M/$(1),$(1),omni-emb,OMNI-EMB)
+
+Image/Build/Profile/OMNI-PLUG=$(call BuildFirmware/Default8M/$(1),$(1),omni-plug,OMNI-PLUG)
+
+Image/Build/Profile/PSR-680W=$(call BuildFirmware/Default4M/$(1),$(1),psr-680w,PSR-680W)
+
+Image/Build/Profile/PWH2004=$(call BuildFirmware/Default8M/$(1),$(1),pwh2004,PWH2004)
+
+Image/Build/Profile/PX4885=$(call BuildFirmware/Default4M/$(1),$(1),px4885,PX4885)
+
+Image/Build/Profile/RTG32B1=$(call BuildFirmware/Default4M/$(1),$(1),rt-g32-b1,RT-G32-B1)
+
+Image/Build/Profile/RTN10PLUS=$(call BuildFirmware/Default4M/$(1),$(1),rt-n10-plus,RT-N10-PLUS)
+
+Image/Build/Profile/RUT5XX=$(call BuildFirmware/Default8M/$(1),$(1),rut5xx,RUT5XX)
+
+Image/Build/Profile/SL-R7205=$(call BuildFirmware/Default4M/$(1),$(1),sl-r7205,SL-R7205)
+
+Image/Build/Profile/V22RW-2X2=$(call BuildFirmware/Default4M/$(1),$(1),v22rw-2x2,V22RW-2X2)
+
+Image/Build/Profile/VOCORE=$(call BuildFirmware/Default8M/$(1),$(1),vocore,VOCORE)
+
+Image/Build/Profile/W150M=$(call BuildFirmware/CustomFlashFactory/$(1),$(1),w150m,W150M,$(ralink_default_fw_size_4M),W150M Kernel Image,factory)
+
+Image/Build/Profile/W306R_V20=$(call BuildFirmware/CustomFlashFactory/$(1),$(1),w306r-v20,W306R_V20,$(ralink_default_fw_size_4M),linkn Kernel Image,factory)
+
+Image/Build/Profile/W502U=$(call BuildFirmware/Default8M/$(1),$(1),w502u,W502U)
+
+Image/Build/Profile/WCR150GN=$(call BuildFirmware/Default4M/$(1),$(1),wcr150gn,WCR150GN)
+
+buffalo_whrg300n_mtd_size=3801088
+define BuildFirmware/WHRG300N/squashfs
+ $(call BuildFirmware/Default4M/$(1),$(1),whr-g300n,WHR-G300N)
+ # the following line has a bad argument 3 ... the old Makefile was already broken
+ $(call BuildFirmware/Buffalo,$(1),whr-g300n,whr-g300n)
+ if [ -e "$(call sysupname,$(1),$(2))" ]; then \
+ ( \
+ echo -n -e "# Airstation FirmWare\nrun u_fw\nreset\n\n" | \
+ dd bs=512 count=1 conv=sync; \
+ dd if=$(call sysupname,$(1),whr-g300n); \
+ ) > $(KDIR)/whr-g300n-tftp.tmp && \
+ buffalo-tftp -i $(KDIR)/whr-g300n-tftp.tmp \
+ -o $(call imgname,$(1),whr-g300n)-tftp.bin; \
+ fi
+endef
+BuildFirmware/WHRG300N/initramfs=$(call BuildFirmware/OF/initramfs,$(1),whr-g300n,WHR-G300N)
+Image/Build/Profile/WHRG300N=$(call BuildFirmware/WHRG300N/$(1),$(1))
+
+Image/Build/Profile/WL_330N=$(call BuildFirmware/Default4M/$(1),$(1),wl-330n,WL_330N)
+
+Image/Build/Profile/WL_330N3G=$(call BuildFirmware/Default4M/$(1),$(1),wl-330n3g,WL_330N3G)
+
+kernel_size_wl341v3=917504
+rootfs_size_wl341v3=2949120
+define BuildFirmware/WL341V3/squashfs
+ $(call BuildFirmware/Default4M/$(1),$(1),wl341v3,WL341V3)
+ # This code looks broken and really needs to be converted to C
+ if [ -e "$(call sysupname,$(1),$(2))" ]; then \
+ ( \
+ dd if=/dev/zero bs=195936 count=1; \
+ echo "1.01"; \
+ dd if=/dev/zero bs=581 count=1; \
+ echo -n -e "\x73\x45\x72\x43\x6F\x4D\x6D\x00\x01\x00\x00\x59\x4E\x37\x95\x58\x10\x00\x20\x00\x28\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x11\x03\x00\x00\x80\x00\x00\x00\x00\x03\x00\x00\x10\x12\x00\x00\x00\x10\x73\x45\x72\x43\x6F\x4D\x6D"; \
+ dd if=/dev/zero bs=65552 count=1; \
+ dd if=$(KDIR)/vmlinux-$(2).uImage bs=$(kernel_size_wl341v3) conv=sync; \
+ dd if=$(KDIR)/root.$(1) bs=64k conv=sync; \
+ dd if=/dev/zero bs=`expr 4194304 - 262144 - 16 - $(kernel_size_wl341v3) - \( \( \( \`stat -c%s $(KDIR)/root.$(1)\` / 65536 \) + 1 \) \* 65536 \)` count=1; \
+ echo -n -e "\x11\x03\x80\x00\x10\x12\x90\xF7\x65\x52\x63\x4F\x6D\x4D\x00\x00"; \
+ ) > $(call imgname,$(1),$(2))-factory.bin; \
+ fi
+endef
+BuildFirmware/WL341V3/initramfs=$(call BuildFirmware/OF/initramfs,$(1),wl341v3,WL341V3)
+Image/Build/Profile/WL341V3=$(call BuildFirmware/WL341V3/$(1),$(1))
+
+Image/Build/Profile/WL-351=$(call BuildFirmware/Default4M/$(1),$(1),wl-351,WL-351)
+
+define BuildFirmware/WNCE2001/squashfs
+ $(call BuildFirmware/Default4M/$(1),$(1),$(2),$(3))
+ -mkdapimg -s RT3052-AP-WNCE2001-3 -r WW -v 1.0.0.99 \
+ -i $(call sysupname,$(1),$(2)) \
+ -o $(call imgname,$(1),$(2))-factory-worldwide.bin
+ -mkdapimg -s RT3052-AP-WNCE2001-3 -r NA -v 1.0.0.99 \
+ -i $(call sysupname,$(1),$(2)) \
+ -o $(call imgname,$(1),$(2))-factory-northamerica.bin
+endef
+BuildFirmware/WNCE2001/initramfs=$(call BuildFirmware/OF/initramfs,$(1),$(2),$(3))
+Image/Build/Profile/WNCE2001=$(call BuildFirmware/WNCE2001/$(1),$(1),wnce2001,WNCE2001)
+
+Image/Build/Profile/WR512-3GN=$(call BuildFirmware/DefaultDualSize/$(1),$(1),wr512-3ng,WR512-3GN)
+
+Image/Build/Profile/UR-326N4G=$(call BuildFirmware/Default4M/$(1),$(1),ur-326n4g,UR-326N4G)
+
+Image/Build/Profile/UR-336UN=$(call BuildFirmware/Default8M/$(1),$(1),ur-336un,UR-336UN)
+
+Image/Build/Profile/WR6202=$(call BuildFirmware/Default8M/$(1),$(1),wr6202,WR6202)
+
+Image/Build/Profile/X5=$(call BuildFirmware/Poray8M/$(1),$(1),x5,X5)
+
+Image/Build/Profile/X8=$(call BuildFirmware/Poray8M/$(1),$(1),x8,X8)
+
+Image/Build/Profile/XDXRN502J=$(call BuildFirmware/Default4M/$(1),$(1),xdxrn502j,XDXRN502J)
+
+ifeq ($(SUBTARGET),rt305x)
+define Image/Build/Profile/Default
+ $(call Image/Build/Profile/3G6200N,$(1))
+ $(call Image/Build/Profile/3G6200NL,$(1))
+ $(call Image/Build/Profile/3G300M,$(1))
+ $(call Image/Build/Profile/AIR3GII,$(1))
+ $(call Image/Build/Profile/ALL02393G,$(1))
+ $(call Image/Build/Profile/ALL0256N,$(1))
+ $(call Image/Build/Profile/ALL5002,$(1))
+ $(call Image/Build/Profile/ALL5003,$(1))
+ $(call Image/Build/Profile/ARGUS_ATP52B,$(1))
+ $(call Image/Build/Profile/ASL26555,$(1))
+ $(call Image/Build/Profile/AWM002EVB,$(1))
+ $(call Image/Build/Profile/AWAPN2403,$(1))
+ $(call Image/Build/Profile/BC2,$(1))
+ $(call Image/Build/Profile/BROADWAY,$(1))
+ $(call Image/Build/Profile/CARAMBOLA,$(1))
+ $(call Image/Build/Profile/D105,$(1))
+ $(call Image/Build/Profile/DIR-300-B1,$(1))
+ $(call Image/Build/Profile/DIR-600-B1,$(1))
+ $(call Image/Build/Profile/DIR-300-B7,$(1))
+ $(call Image/Build/Profile/DIR-320-B1,$(1))
+ $(call Image/Build/Profile/DIR-600-B2,$(1))
+ $(call Image/Build/Profile/DIR610A1,$(1))
+ $(call Image/Build/Profile/DIR-615-D,$(1))
+ $(call Image/Build/Profile/DIR-620-A1,$(1))
+ $(call Image/Build/Profile/DIR-620-D1,$(1))
+ $(call Image/Build/Profile/DIR615H1,$(1))
+ $(call Image/Build/Profile/DAP1350,$(1))
+ $(call Image/Build/Profile/DAP1350WW,$(1))
+ $(call Image/Build/Profile/DCS930,$(1))
+ $(call Image/Build/Profile/ESR-9753,$(1))
+ $(call Image/Build/Profile/F7C027,$(1))
+ $(call Image/Build/Profile/F5D8235V2,$(1))
+ $(call Image/Build/Profile/FONERA20N,$(1))
+ $(call Image/Build/Profile/FREESTATION5,$(1))
+# $(call Image/Build/Profile/HG255D,$(1))
+ $(call Image/Build/Profile/HLKRM04,$(1))
+ $(call Image/Build/Profile/HW550-3G,$(1))
+ $(call Image/Build/Profile/IP2202,$(1))
+ $(call Image/Build/Profile/M3,$(1))
+ $(call Image/Build/Profile/M4,$(1))
+ $(call Image/Build/Profile/MOFI3500-3GN,$(1))
+ $(call Image/Build/Profile/MPRA1,$(1))
+ $(call Image/Build/Profile/MPRA2,$(1))
+ $(call Image/Build/Profile/MZKW300NH2,$(1))
+ $(call Image/Build/Profile/NBG-419N,$(1))
+ $(call Image/Build/Profile/NCS601W,$(1))
+ $(call Image/Build/Profile/NW718,$(1))
+ $(call Image/Build/Profile/OMNI-EMB,$(1))
+ $(call Image/Build/Profile/OMNI-PLUG,$(1))
+ $(call Image/Build/Profile/PSR-680W,$(1))
+ $(call Image/Build/Profile/PWH2004,$(1))
+ $(call Image/Build/Profile/PX4885,$(1))
+ $(call Image/Build/Profile/RTG32B1,$(1))
+ $(call Image/Build/Profile/RTN10PLUS,$(1))
+ $(call Image/Build/Profile/RT-N13U,$(1))
+ $(call Image/Build/Profile/RUT5XX,$(1))
+ $(call Image/Build/Profile/SL-R7205,$(1))
+ $(call Image/Build/Profile/UR-326N4G,$(1))
+ $(call Image/Build/Profile/V22RW-2X2,$(1))
+ $(call Image/Build/Profile/VOCORE,$(1))
+ $(call Image/Build/Profile/W150M,$(1))
+ $(call Image/Build/Profile/W306R_V20,$(1))
+ $(call Image/Build/Profile/W502U,$(1))
+ $(call Image/Build/Profile/WCR150GN,$(1))
+ $(call Image/Build/Profile/WHRG300N,$(1))
+ $(call Image/Build/Profile/WL_330N,$(1))
+ $(call Image/Build/Profile/WL_330N3G,$(1))
+ $(call Image/Build/Profile/WL341V3,$(1))
+ $(call Image/Build/Profile/WL-351,$(1))
+ $(call Image/Build/Profile/WNCE2001,$(1))
+ $(call Image/Build/Profile/WR512-3GN,$(1))
+ $(call Image/Build/Profile/WR6202,$(1))
+ $(call Image/Build/Profile/X5,$(1))
+ $(call Image/Build/Profile/X8,$(1))
+ $(call Image/Build/Profile/XDXRN502J,$(1))
+endef
+endif
+
+
+
+#
+# RT3662/RT3883 Profiles
+#
+
+# $(1) = squashfs/initramfs
+# $(2) = lowercase board name
+# $(3) = dts file
+# $(4) = kernel size
+# $(5) = rootfs size
+# $(6) = signature
+# $(7) = model
+# $(8) = flash address
+# $(9) = start address
+define BuildFirmware/EdimaxCombined/squashfs
+ $(call PatchKernelLzmaDtb,$(2),$(3))
+ $(call MkImage,lzma,$(KDIR)/vmlinux-$(2).bin.lzma,$(KDIR)/vmlinux-$(2).bin.uImage)
+ if [ `stat -c%s "$(KDIR)/vmlinux-$(2).bin.uImage"` -gt `expr $(4) - 20` ]; then \
+ echo "Warning: $(KDIR)/vmlinux-$(2).bin.uImage is too big" >&2; \
+ exit 1; \
+ else if [ `stat -c%s "$(KDIR)/root.$(1)"` -gt $(5) ]; then \
+ echo "Warning: $(KDIR)/root.$(1) is too big" >&2; \
+ exit 1; \
+ else \
+ ( dd if=$(KDIR)/vmlinux-$(2).bin.uImage bs=`expr $(4) - 20` conv=sync ; dd if=$(KDIR)/root.$(1) ) > $(KDIR)/vmlinux-$(2).bin.uImage.combined ; \
+ fi ; fi
+ mkedimaximg -i "$(KDIR)/vmlinux-$(2).bin.uImage.combined" \
+ -o $(call imgname,$(1),$(2)).bin \
+ -s $(6) -m $(7) -f $(8) -S $(9)
+endef
+
+Image/Build/Profile/CYSWR1100=$(call BuildFirmware/Seama/$(1),$(1),cy-swr1100,CY-SWR1100,wrgnd10_samsung_ss815,$(ralink_default_fw_size_8M))
+
+Image/Build/Profile/DIR645=$(call BuildFirmware/Seama/$(1),$(1),dir-645,DIR-645,wrgn39_dlob.hans_dir645,$(ralink_default_fw_size_8M))
+
+omniembhpm_mtd_size=16449536
+Image/Build/Profile/OMNIEMBHPM=$(call BuildFirmware/CustomFlash/$(1),$(1),omni-emb-hpm,OMNI-EMB-HPM,$(omniembhpm_mtd_size))
+
+define BuildFirmware/RTN56U/squashfs
+ $(call BuildFirmware/Default8M/$(1),$(1),rt-n56u,RTN56U)
+ -mkrtn56uimg -s $(call sysupname,$(1),rt-n56u)
+ -cp $(call sysupname,$(1),rt-n56u) $(call imgname,$(1),rt-n56u)-factory.bin
+ -mkrtn56uimg -f $(call imgname,$(1),rt-n56u)-factory.bin
+endef
+Image/Build/Profile/RTN56U=$(call BuildFirmware/RTN56U/$(1),$(1),rt-n56u,RTN56U)
+
+Image/Build/Profile/TEW691GR=$(call BuildFirmware/UMedia/$(1),$(1),tew-691gr,TEW-691GR,0x026910)
+
+Image/Build/Profile/TEW692GR=$(call BuildFirmware/UMedia/$(1),$(1),tew-692gr,TEW-692GR,0x026920)
+
+kernel_size_BR6475ND:=2097152
+rootfs_size_BR6475ND:=5832704
+Image/Build/Profile/BR6475ND=$(call BuildFirmware/EdimaxCombined/$(1),$(1),br-6475nd,BR-6475ND,$(kernel_size_BR6475ND),$(rootfs_size_BR6475ND),CSYS,RN54,0x70000,0x01100000)
+
+ifeq ($(SUBTARGET),rt3883)
+define Image/Build/Profile/Default
+ $(call Image/Build/Profile/CYSWR1100,$(1))
+ $(call Image/Build/Profile/DIR645,$(1))
+ $(call Image/Build/Profile/OMNIEMBHPM,$(1))
+ $(call Image/Build/Profile/RTN56U,$(1))
+ $(call Image/Build/Profile/BR6475ND,$(1))
+ $(call Image/Build/Profile/TEW691GR,$(1))
+ $(call Image/Build/Profile/TEW692GR,$(1))
+endef
+endif
+
+#
+# MT7620 Profiles
+#
+
+
+Image/Build/Profile/MT7620=$(call BuildFirmware/Default8M/$(1),$(1),mt7620,MT7620)
+
+ifeq ($(SUBTARGET),mt7620)
+define Image/Build/Profile/Default
+ $(call Image/Build/Profile/MT7620,$(1))
+endef
+endif
+
+
+#
+# MT7621 Profiles
+#
+
+Image/Build/Profile/MT7621=$(call BuildFirmware/Default8M/$(1),$(1),mt7621,MT7621)
+
+ifeq ($(SUBTARGET),mt7621)
+define Image/Build/Profile/Default
+ $(call Image/Build/Profile/MT7621,$(1))
+endef
+endif
+
+
+#
+# MT7628 Profiles
+#
+
+Image/Build/Profile/MT7628=$(call BuildFirmware/Default8M/$(1),$(1),mt7628,MT7628)
+
+ifeq ($(SUBTARGET),mt7628)
+define Image/Build/Profile/Default
+ $(call Image/Build/Profile/MT7628,$(1))
+endef
+endif
+
+
+#
+# MT7688 Profiles
+#
+
+Image/Build/Profile/MT7688=$(call BuildFirmware/Default8M/$(1),$(1),mt7688,MT7688)
+
+ifeq ($(SUBTARGET),mt7688)
+define Image/Build/Profile/Default
+ $(call Image/Build/Profile/MT7688,$(1))
+endef
+endif
+
+
+
+#
+# MT7623 Profiles
+#
+
+Image/Build/Profile/MT7623_MTD=$(call BuildFirmware/Default32M/$(1),$(1),mt7623_mtd,MT7623_MTD)
+Image/Build/Profile/MT7623_EMMC=$(call BuildFirmware/Default32M/$(1),$(1),mt7623_emmc,MT7623_EMMC)
+
+ifeq ($(SUBTARGET),mt7623_mtd)
+define Image/Build/Profile/Default
+ $(call Image/Build/Profile/MT7623_MTD,$(1))
+endef
+endif
+
+ifeq ($(SUBTARGET),mt7623_emmc)
+define Image/Build/Profile/Default
+ $(call Image/Build/Profile/MT7623_EMMC,$(1))
+endef
+endif
+
+
+#
+# Generic Targets
+#
+define Image/BuildKernel
+ cp $(KDIR)/vmlinux.elf $(BIN_DIR)/$(VMLINUX).elf
+ cp $(KDIR)/vmlinux $(BIN_DIR)/$(VMLINUX).bin
+ $(call CompressLzma,$(KDIR)/vmlinux,$(KDIR)/vmlinux.bin.lzma)
+ $(call MkImage,lzma,$(KDIR)/vmlinux.bin.lzma,$(KDIR)/uImage.lzma)
+ cp $(KDIR)/uImage.lzma $(BIN_DIR)/$(UIMAGE).bin
+ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
+ cp $(KDIR)/vmlinux-initramfs.elf $(BIN_DIR)/$(VMLINUX)-initramfs.elf
+ cp $(KDIR)/vmlinux-initramfs $(BIN_DIR)/$(VMLINUX)-initramfs.bin
+ $(call CompressLzma,$(KDIR)/vmlinux-initramfs,$(KDIR)/vmlinux-initramfs.bin.lzma)
+ $(call MkImage,lzma,$(KDIR)/vmlinux-initramfs.bin.lzma,$(KDIR)/uImage-initramfs.lzma)
+ cp $(KDIR)/uImage-initramfs.lzma $(BIN_DIR)/$(UIMAGE)-initramfs.bin
+endif
+ $(call Image/Build/Initramfs)
+endef
+
+define Image/Build
+ $(call Image/Build/$(1))
+ dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/$(IMG_PREFIX)-root.$(1) bs=128k conv=sync
+ $(call Image/Build/Profile/$(PROFILE),$(1))
+endef
+
+$(eval $(call BuildImage))
diff --git a/target/linux/mediatek/mt7623_emmc/config-default b/target/linux/mediatek/mt7623_emmc/config-default
new file mode 100755
index 0000000..4afc52d
--- /dev/null
+++ b/target/linux/mediatek/mt7623_emmc/config-default
@@ -0,0 +1,988 @@
+# CONFIG_ACCELEROMETER_MTK_SUPPORT is not set
+CONFIG_ALIGNMENT_TRAP=y
+# CONFIG_ALSPS_MTK_SUPPORT is not set
+CONFIG_AMPC_CDEV_NUM=151
+# CONFIG_ANDROID_PARANOID_NETWORK is not set
+# CONFIG_ANDROID_PMEM is not set
+# CONFIG_ANDROID_VMEM is not set
+CONFIG_APCLI_CERT_SUPPORT=y
+CONFIG_APCLI_SUPPORT=y
+# CONFIG_APM_EMULATION is not set
+CONFIG_ARCH_BINFMT_ELF_RANDOMIZE_PIE=y
+CONFIG_ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE=y
+CONFIG_ARCH_HAS_CPUFREQ=y
+CONFIG_ARCH_HAS_TICK_BROADCAST=y
+CONFIG_ARCH_HAVE_CUSTOM_GPIO_H=y
+CONFIG_ARCH_HIBERNATION_POSSIBLE=y
+# CONFIG_ARCH_MT6595 is not set
+CONFIG_ARCH_MT7623=y
+# CONFIG_ARCH_MT8127 is not set
+# CONFIG_ARCH_MT8135 is not set
+CONFIG_ARCH_MTK_PROJECT="fpga7623_emmc"
+# CONFIG_ARCH_NEEDS_CPU_IDLE_COUPLED is not set
+CONFIG_ARCH_NR_GPIO=0
+# CONFIG_ARCH_SELECT_MEMORY_MODEL is not set
+# CONFIG_ARCH_SPARSEMEM_DEFAULT is not set
+CONFIG_ARCH_SUSPEND_POSSIBLE=y
+CONFIG_ARCH_WANT_IPC_PARSE_VERSION=y
+CONFIG_ARM=y
+CONFIG_ARM_AMBA=y
+# CONFIG_ARM_CCI is not set
+CONFIG_ARM_CPU_SUSPEND=y
+# CONFIG_ARM_CPU_TOPOLOGY is not set
+# CONFIG_ARM_EXYNOS4210_CPUFREQ is not set
+# CONFIG_ARM_EXYNOS4X12_CPUFREQ is not set
+# CONFIG_ARM_EXYNOS5250_CPUFREQ is not set
+# CONFIG_ARM_FLUSH_CONSOLE_ON_RESTART is not set
+CONFIG_ARM_HAS_SG_CHAIN=y
+# CONFIG_ARM_KIRKWOOD_CPUFREQ is not set
+CONFIG_ARM_L1_CACHE_SHIFT=6
+CONFIG_ARM_L1_CACHE_SHIFT_6=y
+# CONFIG_ARM_LPAE is not set
+CONFIG_ARM_NR_BANKS=8
+CONFIG_ARM_THUMB=y
+CONFIG_ARM_THUMBEE=y
+CONFIG_ARM_VIRT_EXT=y
+# CONFIG_ARPD is not set
+CONFIG_ATAGS=y
+CONFIG_ATE_SUPPORT=y
+# CONFIG_ATH_CARDS is not set
+CONFIG_AUDIT=y
+CONFIG_AUDIT_GENERIC=y
+CONFIG_BACKGROUND_SCAN_SUPPORT=y
+CONFIG_BACKWARD_COMPATIBLE=y
+# CONFIG_BAND_STEERING is not set
+# CONFIG_BAT_LOW_TEMP_PROTECT_ENABLE is not set
+# CONFIG_BLK_CGROUP is not set
+CONFIG_BLK_DEV_LOOP=y
+CONFIG_BLK_DEV_SD=m
+CONFIG_BOUNCE=y
+# CONFIG_BRIDGE_IGMP_SNOOPING is not set
+# CONFIG_CACHE_L2X0 is not set
+CONFIG_CC_STACKPROTECTOR=y
+CONFIG_CFG80211=y
+# CONFIG_CFG80211_ALLOW_RECONNECT is not set
+# CONFIG_CFG80211_CERTIFICATION_ONUS is not set
+# CONFIG_CFG80211_DEBUGFS is not set
+CONFIG_CFG80211_DEFAULT_PS=y
+# CONFIG_CFG80211_DEVELOPER_WARNINGS is not set
+# CONFIG_CFG80211_INTERNAL_REGDB is not set
+# CONFIG_CFG80211_REG_DEBUG is not set
+# CONFIG_CFG80211_SUPPORT is not set
+CONFIG_CFG80211_WEXT=y
+# CONFIG_CFS_BANDWIDTH is not set
+CONFIG_CGROUPS=y
+CONFIG_CGROUP_CPUACCT=y
+# CONFIG_CGROUP_DEVICE is not set
+# CONFIG_CGROUP_FREEZER is not set
+CONFIG_CGROUP_SCHED=y
+# CONFIG_CHARGER_ISP1704 is not set
+CONFIG_CHIP_MT7615E=y
+CONFIG_CLONE_BACKWARDS=y
+CONFIG_CMA=y
+CONFIG_CMA_ALIGNMENT=8
+CONFIG_CMA_AREAS=7
+# CONFIG_CMA_DEBUG is not set
+CONFIG_CMA_SIZE_MBYTES=16
+# CONFIG_CMA_SIZE_SEL_MAX is not set
+CONFIG_CMA_SIZE_SEL_MBYTES=y
+# CONFIG_CMA_SIZE_SEL_MIN is not set
+# CONFIG_CMA_SIZE_SEL_PERCENTAGE is not set
+CONFIG_CMDLINE="console=ttyMT2,115200n1 mtdparts=eMMC:256k(mbr),512k(uboot),256k(config),256k(factory),36M(firmware),3100M(rootfs_data),-(bmtpool) block2mtd.block2mtdparts=/dev/mmcblk0,65536,eMMC,5 root=/dev/mtdblock5 vmalloc=496M slub_max_order=0 slub_debug=O coherent_pool=4M rdinit=/init androidboot.selinux=disabled androidboot.serialno=0123456789ABCDEF printk.disable_uart=0 boot_reason=0"
+CONFIG_CMDLINE_FROM_BOOTLOADER=y
+# CONFIG_CM_N070ICE_DSI_VDO is not set
+# CONFIG_CM_N070ICE_DSI_VDO_MT8135 is not set
+CONFIG_COMPACTION=y
+CONFIG_COMPAT_BRK=y
+# CONFIG_COMPAT_CPUINFO is not set
+CONFIG_CONFIGFS_FS=y
+# CONFIG_CONFIG_DIS_CHECK_BATTERY is not set
+# CONFIG_CONFIG_USB_IF is not set
+CONFIG_CON_WPS_SUPPORT=y
+CONFIG_COREDUMP=y
+# CONFIG_CPT_CLAA101FP01_DSI_VDO is not set
+# CONFIG_CPT_CLAP070WP03XG_LVDS is not set
+# CONFIG_CPT_CLAP070WP03XG_SN65DSI83 is not set
+# CONFIG_CPUSETS is not set
+# CONFIG_CPUTIME_STATS is not set
+# CONFIG_CPUTIME_SUPPORT is not set
+CONFIG_CPU_32v6K=y
+CONFIG_CPU_32v7=y
+CONFIG_CPU_ABRT_EV7=y
+# CONFIG_CPU_BPREDICT_DISABLE is not set
+CONFIG_CPU_CACHE_V7=y
+CONFIG_CPU_CACHE_VIPT=y
+CONFIG_CPU_COPY_V6=y
+CONFIG_CPU_CP15=y
+CONFIG_CPU_CP15_MMU=y
+CONFIG_CPU_FREQ=y
+# CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set
+# CONFIG_CPU_FREQ_DEFAULT_GOV_HOTPLUG is not set
+# CONFIG_CPU_FREQ_DEFAULT_GOV_INTERACTIVE is not set
+# CONFIG_CPU_FREQ_DEFAULT_GOV_INTERACTIVEPLUS is not set
+# CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND is not set
+CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y
+# CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE is not set
+# CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set
+CONFIG_CPU_FREQ_GOV_COMMON=y
+# CONFIG_CPU_FREQ_GOV_CONSERVATIVE is not set
+CONFIG_CPU_FREQ_GOV_HOTPLUG=y
+# CONFIG_CPU_FREQ_GOV_INTERACTIVE is not set
+# CONFIG_CPU_FREQ_GOV_INTERACTIVEPLUS is not set
+# CONFIG_CPU_FREQ_GOV_ONDEMAND is not set
+CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
+CONFIG_CPU_FREQ_GOV_POWERSAVE=y
+CONFIG_CPU_FREQ_GOV_USERSPACE=y
+CONFIG_CPU_FREQ_STAT=y
+CONFIG_CPU_FREQ_STAT_DETAILS=y
+CONFIG_CPU_FREQ_TABLE=y
+CONFIG_CPU_HAS_ASID=y
+# CONFIG_CPU_ICACHE_DISABLE is not set
+CONFIG_CPU_PABRT_V7=y
+CONFIG_CPU_PM=y
+CONFIG_CPU_RMAP=y
+# CONFIG_CPU_THERMAL is not set
+CONFIG_CPU_TLB_V7=y
+CONFIG_CPU_V7=y
+CONFIG_CRC16=y
+CONFIG_CRC32_SLICEBY8=y
+CONFIG_CROSS_MEMORY_ATTACH=y
+CONFIG_CRYPTO_AEAD=y
+CONFIG_CRYPTO_AEAD2=y
+CONFIG_CRYPTO_ANSI_CPRNG=y
+CONFIG_CRYPTO_ARC4=y
+CONFIG_CRYPTO_AUTHENC=y
+CONFIG_CRYPTO_BLKCIPHER=y
+CONFIG_CRYPTO_BLKCIPHER2=y
+CONFIG_CRYPTO_CBC=y
+CONFIG_CRYPTO_CRC32C=y
+CONFIG_CRYPTO_DEFLATE=y
+CONFIG_CRYPTO_DES=y
+CONFIG_CRYPTO_ECB=y
+CONFIG_CRYPTO_HASH=y
+CONFIG_CRYPTO_HASH2=y
+CONFIG_CRYPTO_HMAC=y
+CONFIG_CRYPTO_MANAGER=y
+CONFIG_CRYPTO_MANAGER2=y
+CONFIG_CRYPTO_MD5=y
+CONFIG_CRYPTO_PCOMP2=y
+CONFIG_CRYPTO_RNG=y
+CONFIG_CRYPTO_RNG2=y
+CONFIG_CRYPTO_SHA1=y
+CONFIG_CRYPTO_SHA256=y
+CONFIG_CRYPTO_WORKQUEUE=y
+# CONFIG_CSR_WIFI is not set
+# CONFIG_CUSTOM_BATTERY_CYCLE_AGING_DATA is not set
+# CONFIG_CUSTOM_KERNEL_ACCELEROMETER is not set
+CONFIG_CUSTOM_KERNEL_ALSPS=y
+# CONFIG_CUSTOM_KERNEL_BAROMETER is not set
+CONFIG_CUSTOM_KERNEL_EXTMD=""
+CONFIG_CUSTOM_KERNEL_FLASHLIGHT=""
+# CONFIG_CUSTOM_KERNEL_GYROSCOPE is not set
+CONFIG_CUSTOM_KERNEL_HDMI=""
+CONFIG_CUSTOM_KERNEL_IMGSENSOR=""
+CONFIG_CUSTOM_KERNEL_LCM="HX8392A_DSI_VDO"
+# CONFIG_CUSTOM_KERNEL_MAGNETOMETER is not set
+# CONFIG_CUSTOM_KERNEL_OFN is not set
+# CONFIG_CUSTOM_KERNEL_SSW is not set
+CONFIG_CUSTOM_KERNEL_TOUCHPANEL=""
+# CONFIG_CUSTOM_SEC_AUTH_SUPPORT is not set
+# CONFIG_CUST_DISABLE_CAPACITY_OCV2CV_TRANSFORM is not set
+# CONFIG_CYPRESS_CYTTSP4_BUS is not set
+CONFIG_DBDC_MODE=y
+CONFIG_DCACHE_WORD_ACCESS=y
+# CONFIG_DCC_TTY is not set
+CONFIG_DEBUG_KERNEL=y
+CONFIG_DEBUG_LL_INCLUDE="mach/debug-macro.S"
+# CONFIG_DEBUG_USER is not set
+CONFIG_DEFAULT_CFQ=y
+# CONFIG_DEFAULT_DEADLINE is not set
+CONFIG_DEFAULT_IOSCHED="cfq"
+CONFIG_DEVMEM=y
+# CONFIG_DISABLE_CPU_SCHED_DOMAIN_BALANCE is not set
+CONFIG_DNOTIFY=y
+# CONFIG_DOT11K_RRM_SUPPORT is not set
+# CONFIG_DOT11R_FT_SUPPORT is not set
+CONFIG_DOT11W_PMF_SUPPORT=y
+CONFIG_DOT11_N_SUPPORT=y
+CONFIG_DOT11_VHT_AC=y
+CONFIG_EARLYSUSPEND=y
+CONFIG_EARLY_LINUX_PORTING=y
+# CONFIG_EMMC_50_FEATURE is not set
+CONFIG_ESW_DOUBLE_VLAN_TAG=y
+CONFIG_ETH_PAGE_ALLOC_SKB=y
+CONFIG_ETH_SKB_ALLOC_SELECT=y
+# CONFIG_ETH_SLAB_ALLOC_SKB is not set
+# CONFIG_ETH_WIFI_OOM_DEBUG is not set
+# CONFIG_EVDO_DT_SUPPORT is not set
+CONFIG_EXT2_FS=m
+CONFIG_EXT2_FS_POSIX_ACL=y
+CONFIG_EXT2_FS_SECURITY=y
+CONFIG_EXT2_FS_XATTR=y
+CONFIG_EXT3_DEFAULTS_TO_ORDERED=y
+CONFIG_EXT3_FS=m
+CONFIG_EXT3_FS_POSIX_ACL=y
+CONFIG_EXT3_FS_SECURITY=y
+CONFIG_EXT3_FS_XATTR=y
+CONFIG_EXT4_DEBUG=y
+CONFIG_EXT4_FS=m
+CONFIG_EXT4_FS_POSIX_ACL=y
+CONFIG_EXT4_FS_SECURITY=y
+# CONFIG_EXT_FG_HAS_SOC is not set
+# CONFIG_EXT_FG_HAS_TEMPERATURE is not set
+CONFIG_FAIR_GROUP_SCHED=y
+CONFIG_FB_EARLYSUSPEND=y
+CONFIG_FIQ=y
+CONFIG_FIQ_DEBUGGER=y
+CONFIG_FIQ_DEBUGGER_CONSOLE=y
+CONFIG_FIQ_DEBUGGER_CONSOLE_DEFAULT_ENABLE=y
+# CONFIG_FIQ_DEBUGGER_NO_SLEEP is not set
+# CONFIG_FIQ_DEBUGGER_WAKEUP_IRQ_ALWAYS_ON is not set
+CONFIG_FIQ_GLUE=y
+# CONFIG_FIRST_IF_EEPROM_FLASH is not set
+CONFIG_FIRST_IF_EPAELNA=y
+# CONFIG_FIRST_IF_IPAELNA is not set
+# CONFIG_FIRST_IF_IPAILNA is not set
+# CONFIG_FIRST_IF_MT7602E is not set
+# CONFIG_FIRST_IF_MT7603E is not set
+# CONFIG_FIRST_IF_MT7610E is not set
+# CONFIG_FIRST_IF_MT7612E is not set
+CONFIG_FIRST_IF_MT7615E=y
+# CONFIG_FIRST_IF_MT7637E is not set
+# CONFIG_FIRST_IF_NONE is not set
+CONFIG_FONT_8x16=y
+# CONFIG_FPE_FASTFPE is not set
+# CONFIG_FPE_NWFPE is not set
+# CONFIG_FPGA_EARLY_PORTING is not set
+CONFIG_FRAME_POINTER=y
+CONFIG_FREEZER=y
+CONFIG_FS_MBCACHE=m
+CONFIG_FS_POSIX_ACL=y
+# CONFIG_GE1_RGMII_AN is not set
+# CONFIG_GE1_RGMII_NONE is not set
+# CONFIG_GE1_TRGMII_FORCE_2000 is not set
+CONFIG_GE1_TRGMII_FORCE_2600=y
+CONFIG_GE2_INTERNAL_GPHY=y
+# CONFIG_GE2_MII_AN is not set
+# CONFIG_GE2_MII_FORCE_100 is not set
+# CONFIG_GE2_RGMII_AN is not set
+# CONFIG_GE2_RGMII_FORCE_1000 is not set
+# CONFIG_GE2_RVMII_FORCE_100 is not set
+CONFIG_GENERIC_BUG=y
+CONFIG_GENERIC_CLOCKEVENTS=y
+CONFIG_GENERIC_CLOCKEVENTS_BROADCAST=y
+CONFIG_GENERIC_CLOCKEVENTS_BUILD=y
+CONFIG_GENERIC_IDLE_POLL_SETUP=y
+CONFIG_GENERIC_IO=y
+CONFIG_GENERIC_IRQ_SHOW=y
+CONFIG_GENERIC_PCI_IOMAP=y
+CONFIG_GENERIC_SMP_IDLE_THREAD=y
+CONFIG_GENERIC_STRNCPY_FROM_USER=y
+CONFIG_GENERIC_STRNLEN_USER=y
+# CONFIG_GENERIC_TRACER is not set
+CONFIG_GE_RGMII_INTERNAL_P4_AN=y
+CONFIG_GPIO_DEVRES=y
+# CONFIG_GPS is not set
+CONFIG_GREENAP_SUPPORT=y
+# CONFIG_GYROSCOPE_MTK_SUPPORT is not set
+CONFIG_G_BAND_256QAM_SUPPORT=y
+CONFIG_HARDIRQS_SW_RESEND=y
+CONFIG_HAS_DMA=y
+CONFIG_HAS_EARLYSUSPEND=y
+CONFIG_HAS_IOMEM=y
+CONFIG_HAS_IOPORT=y
+CONFIG_HAS_WAKELOCK=y
+# CONFIG_HAVE_64BIT_ALIGNED_ACCESS is not set
+# CONFIG_HAVE_AEE_FEATURE is not set
+CONFIG_HAVE_AOUT=y
+CONFIG_HAVE_ARCH_JUMP_LABEL=y
+CONFIG_HAVE_ARCH_KGDB=y
+CONFIG_HAVE_ARCH_PFN_VALID=y
+CONFIG_HAVE_ARCH_SECCOMP_FILTER=y
+CONFIG_HAVE_ARCH_TRACEHOOK=y
+# CONFIG_HAVE_BOOTMEM_INFO_NODE is not set
+CONFIG_HAVE_BPF_JIT=y
+# CONFIG_HAVE_CMMB_FEATURE is not set
+CONFIG_HAVE_CONTEXT_TRACKING=y
+CONFIG_HAVE_C_RECORDMCOUNT=y
+CONFIG_HAVE_DEBUG_KMEMLEAK=y
+CONFIG_HAVE_DMA_API_DEBUG=y
+CONFIG_HAVE_DMA_ATTRS=y
+CONFIG_HAVE_DMA_CONTIGUOUS=y
+CONFIG_HAVE_DYNAMIC_FTRACE=y
+CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y
+CONFIG_HAVE_FUNCTION_GRAPH_TRACER=y
+CONFIG_HAVE_FUNCTION_TRACER=y
+CONFIG_HAVE_GENERIC_DMA_COHERENT=y
+CONFIG_HAVE_GENERIC_HARDIRQS=y
+CONFIG_HAVE_IDE=y
+CONFIG_HAVE_IRQ_TIME_ACCOUNTING=y
+CONFIG_HAVE_KERNEL_GZIP=y
+CONFIG_HAVE_KERNEL_LZMA=y
+CONFIG_HAVE_KERNEL_LZO=y
+CONFIG_HAVE_KERNEL_XZ=y
+CONFIG_HAVE_MEMBLOCK=y
+CONFIG_HAVE_MTK_IN_HOUSE_TEE_SUPPORT=y
+CONFIG_HAVE_NET_DSA=y
+CONFIG_HAVE_OPROFILE=y
+CONFIG_HAVE_PERF_EVENTS=y
+CONFIG_HAVE_PROC_CPU=y
+CONFIG_HAVE_REGS_AND_STACK_ACCESS_API=y
+CONFIG_HAVE_SMP=y
+CONFIG_HAVE_SYSCALL_TRACEPOINTS=y
+CONFIG_HAVE_TRUSTONIC_TEE_SUPPORT=y
+CONFIG_HAVE_UID16=y
+CONFIG_HAVE_XLOG_FEATURE=y
+CONFIG_HDR_TRANS_RX_SUPPORT=y
+CONFIG_HDR_TRANS_TX_SUPPORT=y
+# CONFIG_HEVTASK_INTERFACE is not set
+CONFIG_HIGHMEM=y
+# CONFIG_HIGHPTE is not set
+# CONFIG_HIGH_BATTERY_VOLTAGE_SUPPORT is not set
+CONFIG_HNAT_V2=y
+CONFIG_HOTPLUG_CPU=y
+# CONFIG_HSD070PFW3_8135 is not set
+CONFIG_HWMON=y
+# CONFIG_HW_IPSEC is not set
+# CONFIG_HW_SFQ is not set
+# CONFIG_HX8392A_DSI_CMD is not set
+# CONFIG_HX8392A_DSI_VDO is not set
+CONFIG_I2C=y
+CONFIG_I2C_BOARDINFO=y
+CONFIG_I2C_COMPAT=y
+CONFIG_I2C_HELPER_AUTO=y
+CONFIG_ICAP_SUPPORT=y
+# CONFIG_IDME is not set
+# CONFIG_IGB_V5215 is not set
+CONFIG_IGMP_SNOOP_SUPPORT=y
+CONFIG_IKCONFIG=y
+CONFIG_IKCONFIG_PROC=y
+# CONFIG_IMQ is not set
+CONFIG_INET_AH=y
+CONFIG_INET_ESP=y
+CONFIG_INET_XFRM_MODE_TRANSPORT=y
+CONFIG_INET_XFRM_MODE_TUNNEL=y
+CONFIG_INITRAMFS_SOURCE=""
+CONFIG_INPUT=y
+CONFIG_INPUT_EVDEV=y
+# CONFIG_INPUT_GPIO is not set
+# CONFIG_INPUT_HALL_BU520 is not set
+CONFIG_INPUT_KEYBOARD=y
+# CONFIG_INPUT_KEYCHORD is not set
+# CONFIG_INPUT_KEYRESET is not set
+CONFIG_INPUT_MOUSE=y
+CONFIG_INPUT_MOUSEDEV=y
+CONFIG_INPUT_MOUSEDEV_PSAUX=y
+CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
+CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
+# CONFIG_INPUT_TEMPERATURE_TMP103 is not set
+CONFIG_INPUT_TOUCHSCREEN=y
+CONFIG_INPUT_UINPUT=y
+# CONFIG_ION_MTK is not set
+CONFIG_IOSCHED_CFQ=y
+CONFIG_IP6_NF_FILTER=m
+CONFIG_IP6_NF_IPTABLES=m
+CONFIG_IP6_NF_TARGET_REJECT=m
+CONFIG_IP6_NF_TARGET_REJECT_SKERR=y
+CONFIG_IPV6=y
+# CONFIG_IPV6_GRE is not set
+# CONFIG_IP_MROUTE_MULTIPLE_TABLES is not set
+# CONFIG_IP_MULTIPLE_TABLES is not set
+CONFIG_IP_NF_FILTER=m
+CONFIG_IP_NF_IPTABLES=m
+CONFIG_IP_NF_TARGET_REJECT=m
+# CONFIG_IP_NF_TARGET_REJECT_SKERR is not set
+# CONFIG_IP_ROUTE_MULTIPATH is not set
+# CONFIG_IP_ROUTE_VERBOSE is not set
+# CONFIG_IP_WOW is not set
+CONFIG_IRQ_WORK=y
+# CONFIG_ISR_MONITOR is not set
+CONFIG_JBD=m
+CONFIG_JBD2=m
+CONFIG_JUMP_LABEL=y
+CONFIG_KALLSYMS=y
+CONFIG_KALLSYMS_ALL=y
+CONFIG_KERNEL_NVRAM=y
+CONFIG_KEYBOARD_HID=y
+CONFIG_KTIME_SCALAR=y
+CONFIG_LAN_WAN_SUPPORT=y
+CONFIG_LCM_HEIGHT="1920"
+CONFIG_LCM_WIDTH="1080"
+# CONFIG_LEDS_LP855X is not set
+# CONFIG_LEDS_TRIGGER_DEFAULT_ON is not set
+CONFIG_LED_CONTROL_SUPPORT=y
+CONFIG_LIBCRC32C=y
+CONFIG_LOCAL_TIMERS=y
+CONFIG_LZO_COMPRESS=y
+CONFIG_LZO_DECOMPRESS=y
+CONFIG_MAC_REPEATER_SUPPORT=y
+CONFIG_MAC_TO_GIGAPHY_MODE_ADDR2=4
+# CONFIG_MAGNETOMETER_MTK_SUPPORT is not set
+CONFIG_MAX_DRAM_SIZE_SUPPORT=0x10000000
+CONFIG_MBSS_SUPPORT=y
+CONFIG_MCAST_RATE_SPECIFIC=y
+CONFIG_MD1_SMEM_SIZE=""
+CONFIG_MD2_SMEM_SIZE=""
+# CONFIG_MD32_SUPPORT is not set
+# CONFIG_MDUMP is not set
+CONFIG_MEDIATEK_GPIO=y
+CONFIG_MEDIATEK_GPIO_LED=y
+CONFIG_MEDIATEK_SOLUTION=y
+# CONFIG_MEMCG is not set
+CONFIG_MEMORY_ISOLATION=y
+# CONFIG_MET_MMC_PROFILE is not set
+CONFIG_MIGHT_HAVE_PCI=y
+CONFIG_MIGRATION=y
+CONFIG_MMC=y
+CONFIG_MMC_BLOCK=y
+# CONFIG_MMC_BLOCK_DEFERRED_RESUME is not set
+CONFIG_MMC_BLOCK_MINORS=32
+# CONFIG_MMC_EMBEDDED_SDIO is not set
+# CONFIG_MMC_FFU is not set
+# CONFIG_MMC_PARANOID_SD_INIT is not set
+# CONFIG_MMC_SAMSUNG_SMART is not set
+# CONFIG_MMC_TIFM_SD is not set
+CONFIG_MMC_UNSAFE_RESUME=y
+# CONFIG_MMPROFILE is not set
+# CONFIG_MODEM_UMTS_TDD128_MODE is not set
+CONFIG_MODULES_USE_ELF_REL=y
+# CONFIG_MOUSE_AVAGOTECH_A320 is not set
+# CONFIG_MOUSE_BCM5974 is not set
+# CONFIG_MOUSE_CYAPA is not set
+# CONFIG_MOUSE_PANASONIC_EVQWJN is not set
+# CONFIG_MOUSE_PS2 is not set
+# CONFIG_MOUSE_SERIAL is not set
+# CONFIG_MOUSE_VSXXXAA is not set
+# CONFIG_MT592X_SDIO_CLNT is not set
+# CONFIG_MT65XX_TRACER is not set
+# CONFIG_MT6605_NFC is not set
+CONFIG_MT7623_EVB_BOARD=y
+# CONFIG_MT7623_FPGA is not set
+CONFIG_MTD_BLOCK2MTD=y
+CONFIG_MTD_CMDLINE_PARTS=y
+CONFIG_MTD_NAND=y
+CONFIG_MTD_NAND_ECC=y
+# CONFIG_MTD_ROOTFS_SPLIT is not set
+# CONFIG_MTD_SM_COMMON is not set
+# CONFIG_MTD_SPLIT is not set
+CONFIG_MTD_SPLIT_FIRMWARE=y
+CONFIG_MTD_UIMAGE_SPLIT=y
+# CONFIG_MTK_AAL_SUPPORT is not set
+# CONFIG_MTK_ACCDET is not set
+# CONFIG_MTK_AEE_AED is not set
+# CONFIG_MTK_AEE_FEATURE is not set
+# CONFIG_MTK_AEE_IPANIC is not set
+# CONFIG_MTK_AEE_MRDUMP is not set
+# CONFIG_MTK_ALPS_BOX_SUPPORT is not set
+# CONFIG_MTK_AUTO_DETECT_ALSPS is not set
+# CONFIG_MTK_AUTO_POWER_ON_WITH_CHARGER is not set
+# CONFIG_MTK_BATTERY_LIFETIME_DATA_SUPPORT is not set
+# CONFIG_MTK_BATTERY_PROTECT is not set
+# CONFIG_MTK_BATTERY_THROTTLING is not set
+# CONFIG_MTK_BICR_SUPPORT is not set
+# CONFIG_MTK_BQ24158_SUPPORT is not set
+# CONFIG_MTK_BQ24160_SUPPORT is not set
+# CONFIG_MTK_BQ24196_SUPPORT is not set
+# CONFIG_MTK_BQ24296_SUPPORT is not set
+# CONFIG_MTK_BQ24297_SUPPORT is not set
+# CONFIG_MTK_BQ27541_SUPPORT is not set
+CONFIG_MTK_BTIF=y
+# CONFIG_MTK_BT_SUPPORT is not set
+# CONFIG_MTK_CAMCAL_DUMMYCAMCAL_SUPPORT is not set
+# CONFIG_MTK_CCCI_DEVICES is not set
+CONFIG_MTK_CIRQ=y
+CONFIG_MTK_CMMB_CHIP=""
+CONFIG_MTK_COMBO=y
+CONFIG_MTK_COMBO_BT=y
+CONFIG_MTK_COMBO_CHIP="CONSYS_7623"
+# CONFIG_MTK_COMBO_CHIP_CONSYS_6572 is not set
+# CONFIG_MTK_COMBO_CHIP_CONSYS_6582 is not set
+# CONFIG_MTK_COMBO_CHIP_CONSYS_6592 is not set
+CONFIG_MTK_COMBO_CHIP_CONSYS_7623=y
+# CONFIG_MTK_COMBO_CHIP_CONSYS_8127 is not set
+# CONFIG_MTK_COMBO_CHIP_MT6620 is not set
+# CONFIG_MTK_COMBO_CHIP_MT6627 is not set
+# CONFIG_MTK_COMBO_CHIP_MT6628 is not set
+# CONFIG_MTK_COMBO_CHIP_MT6630 is not set
+# CONFIG_MTK_COMBO_COMM is not set
+# CONFIG_MTK_COMBO_GPS is not set
+CONFIG_MTK_COMBO_PLAT_PATH=""
+CONFIG_MTK_COMBO_PSM_RX_TH=""
+CONFIG_MTK_COMBO_PSM_TX_TH=""
+CONFIG_MTK_COMBO_WIFI=y
+CONFIG_MTK_CONNSYS_WIFI=y
+# CONFIG_MTK_CTP_RESET_CONFIG is not set
+# CONFIG_MTK_DHCPV6C_WIFI is not set
+CONFIG_MTK_DISABLE_POWER_ON_OFF_VOLTAGE_LIMITATION=y
+# CONFIG_MTK_DITHERING_SUPPORT is not set
+# CONFIG_MTK_DSPIRDBG is not set
+# CONFIG_MTK_DT_SUPPORT is not set
+# CONFIG_MTK_ECCCI_DRIVER is not set
+# CONFIG_MTK_EEPROM_DUMMYEEPROM_SUPPORT is not set
+# CONFIG_MTK_EMMC_CACHE is not set
+CONFIG_MTK_EMMC_SUPPORT=y
+# CONFIG_MTK_EMMC_SUPPORT_OTP is not set
+# CONFIG_MTK_ENABLE_AGING_ALGORITHM is not set
+# CONFIG_MTK_ENABLE_MD1 is not set
+# CONFIG_MTK_ENABLE_MD2 is not set
+# CONFIG_MTK_ETM is not set
+CONFIG_MTK_EXTERNAL_MODEM_SLOT=""
+# CONFIG_MTK_FAKE_MPIDR is not set
+# CONFIG_MTK_FAN5402_SUPPORT is not set
+# CONFIG_MTK_FAN5405_SUPPORT is not set
+# CONFIG_MTK_FLASHLIGHT_DUMMYFLASHLIGHT_SUPPORT is not set
+# CONFIG_MTK_FM is not set
+# CONFIG_MTK_FM_SUPPORT is not set
+# CONFIG_MTK_FORCE_CLUSTER1 is not set
+# CONFIG_MTK_G2D is not set
+# CONFIG_MTK_GET_BATTERY_ID_BY_AUXADC is not set
+# CONFIG_MTK_GPS_SUPPORT is not set
+CONFIG_MTK_GPU_CHIP=""
+# CONFIG_MTK_GPU_SUPPORT is not set
+# CONFIG_MTK_H264_DEC_DRIVER is not set
+# CONFIG_MTK_HDMI_SUPPORT is not set
+CONFIG_MTK_I2C=y
+# CONFIG_MTK_ICUSB_SUPPORT is not set
+# CONFIG_MTK_IDLE_TIME_FIX is not set
+# CONFIG_MTK_IMGSENSOR_HI253YUV_SUPPORT is not set
+# CONFIG_MTK_IMGSENSOR_HI704YUV_SUPPORT is not set
+# CONFIG_MTK_IMGSENSOR_IMX135MIPIRAW_SUPPORT is not set
+# CONFIG_MTK_IMGSENSOR_OV2659YUV_SUPPORT is not set
+# CONFIG_MTK_IMGSENSOR_OV2722MIPIRAW_SUPPORT is not set
+# CONFIG_MTK_IMGSENSOR_OV2724MIPIRAW_SUPPORT is not set
+# CONFIG_MTK_IMGSENSOR_OV5647RAW_SUPPORT is not set
+# CONFIG_MTK_INTERNAL is not set
+# CONFIG_MTK_INTERNAL_MHL_SUPPORT is not set
+# CONFIG_MTK_IN_HOUSE_TEE_SUPPORT is not set
+# CONFIG_MTK_IPV6_TETHER_NDP_MODE is not set
+# CONFIG_MTK_JEITA_STANDARD_SUPPORT is not set
+# CONFIG_MTK_JPEG is not set
+# CONFIG_MTK_KERNEL_POWER_OFF_CHARGING is not set
+CONFIG_MTK_KEYPAD=y
+CONFIG_MTK_LCM_PHYSICAL_ROTATION=""
+# CONFIG_MTK_LDVT is not set
+CONFIG_MTK_LEDS=y
+CONFIG_MTK_LEGACY_GPIO_DRIVER=y
+# CONFIG_MTK_LENS_DUMMYLENS_SUPPORT is not set
+# CONFIG_MTK_LENS_DW9718AF_SUPPORT is not set
+# CONFIG_MTK_LM_MODE is not set
+CONFIG_MTK_M4U_SUPPORT=y
+# CONFIG_MTK_MCI is not set
+CONFIG_MTK_MEMCFG=y
+# CONFIG_MTK_MERGE_INTERFACE_SUPPORT is not set
+# CONFIG_MTK_MET is not set
+# CONFIG_MTK_MFLEXVIDEO_DRIVER is not set
+CONFIG_MTK_MMC=y
+# CONFIG_MTK_MMPROFILE_SUPPORT is not set
+# CONFIG_MTK_MPEG4_DEC_DRIVER is not set
+# CONFIG_MTK_MPEG4_ENC_DRIVER is not set
+# CONFIG_MTK_MT6333_SUPPORT is not set
+# CONFIG_MTK_MT8193_HDCP_SUPPORT is not set
+# CONFIG_MTK_MT8193_SUPPORT is not set
+# CONFIG_MTK_MTD_NOR is not set
+# CONFIG_MTK_MULTIBRIDGE_SUPPORT is not set
+# CONFIG_MTK_MULTI_BAT_PROFILE_SUPPORT is not set
+# CONFIG_MTK_MULTI_PARTITION_MOUNT_ONLY_SUPPORT is not set
+CONFIG_MTK_MULTI_STORAGE_SUPPORT=y
+# CONFIG_MTK_MUTATION is not set
+# CONFIG_MTK_NCP1851_SUPPORT is not set
+CONFIG_MTK_NEW_COMBO_EMMC_SUPPORT=y
+# CONFIG_MTK_NFC is not set
+# CONFIG_MTK_NFC_SUPPORT is not set
+# CONFIG_MTK_OVERLAY_ENGINE_SUPPORT is not set
+# CONFIG_MTK_OWNER_SDCARD_ONLY_SUPPORT is not set
+CONFIG_MTK_PLATFORM="mt7623"
+CONFIG_MTK_PMIC=y
+# CONFIG_MTK_PMIC_RF2_26M_ALWAYS_ON is not set
+CONFIG_MTK_PMIC_WRAP=y
+CONFIG_MTK_RAM_CONSOLE=y
+CONFIG_MTK_RAM_CONSOLE_ADDR=0xF900DC00
+CONFIG_MTK_RAM_CONSOLE_DRAM_ADDR=0x81F00000
+CONFIG_MTK_RAM_CONSOLE_DRAM_SIZE=0x4000
+CONFIG_MTK_RAM_CONSOLE_SIZE=0x1C00
+# CONFIG_MTK_RAM_CONSOLE_USING_DRAM is not set
+CONFIG_MTK_RAM_CONSOLE_USING_SRAM=y
+CONFIG_MTK_RTC=y
+# CONFIG_MTK_SCHED_RQAVG_KS is not set
+# CONFIG_MTK_SCHED_RQAVG_US is not set
+CONFIG_MTK_SECURITY_SW_SUPPORT=y
+# CONFIG_MTK_SEC_MODEM_NVRAM_ANTI_CLONE is not set
+# CONFIG_MTK_SENSOR_SUPPORT is not set
+CONFIG_MTK_SERIAL=y
+CONFIG_MTK_SERIAL_CONSOLE=y
+# CONFIG_MTK_SERIAL_MODEM_TEST is not set
+# CONFIG_MTK_SHARED_SDCARD is not set
+CONFIG_MTK_SIM1_SOCKET_TYPE=""
+# CONFIG_MTK_SIM2 is not set
+CONFIG_MTK_SIM2_SOCKET_TYPE=""
+# CONFIG_MTK_SMARTBOOK_SUPPORT is not set
+# CONFIG_MTK_SMART_BATTERY is not set
+# CONFIG_MTK_SOUND is not set
+CONFIG_MTK_STAGING=y
+CONFIG_MTK_STORAGE_PID_LOGGER=y
+CONFIG_MTK_SWCHR_SUPPORT=y
+# CONFIG_MTK_TC1_FEATURE is not set
+# CONFIG_MTK_TEST_XHCI is not set
+# CONFIG_MTK_TETHERINGIPV6_SUPPORT is not set
+# CONFIG_MTK_THERMAL_PA_VIA_ATCMD is not set
+# CONFIG_MTK_THERMAL_STATUS_COLLECTION is not set
+# CONFIG_MTK_TMP103_SUPPORT is not set
+# CONFIG_MTK_TOUCHPANEL is not set
+# CONFIG_MTK_TVOUT_SUPPORT is not set
+# CONFIG_MTK_UMTS_TDD128_MODE is not set
+# CONFIG_MTK_USBFSH is not set
+CONFIG_MTK_USB_GADGET=y
+# CONFIG_MTK_USB_UNIQUE_SERIAL is not set
+# CONFIG_MTK_VIBRATOR is not set
+# CONFIG_MTK_VIDEOCODEC_DRIVER is not set
+# CONFIG_MTK_VIDEO_HEVC_SUPPORT is not set
+# CONFIG_MTK_WAPI_SUPPORT is not set
+CONFIG_MTK_WD_KICKER=y
+# CONFIG_MTK_WD_KICKER_WCN is not set
+# CONFIG_MTK_WFD_SUPPORT is not set
+# CONFIG_MTK_WIRELESS_CHARGER_SUPPORT is not set
+CONFIG_MTK_WLAN_CHIP="CONSYS_7623"
+CONFIG_MTK_WLAN_SUPPORT=y
+CONFIG_MTK_WQ_DEBUG=y
+# CONFIG_MTK_XHCI is not set
+# CONFIG_MTPROF_IRQ_DURATION is not set
+CONFIG_MT_AP_SUPPORT=y
+CONFIG_MT_CHRDEV_REG=y
+CONFIG_MT_DFS_SUPPORT=y
+CONFIG_MT_ENG_BUILD=y
+# CONFIG_MT_LOAD_BALANCE_ENHANCEMENT is not set
+# CONFIG_MT_LOCK_DEBUG is not set
+CONFIG_MT_MAC=y
+# CONFIG_MT_PRIO_TRACER is not set
+# CONFIG_MT_RT_SCHED_CRIT is not set
+# CONFIG_MT_RT_SCHED_LOG is not set
+CONFIG_MT_SCHED=y
+# CONFIG_MT_SCHED_DEBUG_ONLY is not set
+# CONFIG_MT_SCHED_MONITOR is not set
+# CONFIG_MT_SCHED_NOTICE is not set
+CONFIG_MT_WIFI=y
+CONFIG_MT_WIFI_PATH="mt_wifi"
+# CONFIG_MU3_PHY is not set
+# CONFIG_MULTIPLE_MU3H_PORT is not set
+CONFIG_MULTI_INF_SUPPORT=y
+CONFIG_MUMIMO_SUPPORT=y
+# CONFIG_MUSBFSH_PIO_ONLY is not set
+CONFIG_MUTEX_SPIN_ON_OWNER=y
+CONFIG_MU_RA_SUPPORT=y
+# CONFIG_MWIFIEX is not set
+# CONFIG_NAT_FCONE is not set
+CONFIG_NAT_LINUX=y
+# CONFIG_NAT_RCONE is not set
+CONFIG_NEED_DMA_MAP_STATE=y
+CONFIG_NEED_MACH_IO_H=y
+CONFIG_NEED_MACH_MEMORY_H=y
+CONFIG_NEON=y
+CONFIG_NETFILTER=y
+CONFIG_NETFILTER_ADVANCED=y
+# CONFIG_NETFILTER_RALINK_SWQOS_SUPPORT is not set
+CONFIG_NETFILTER_XTABLES=m
+CONFIG_NETFILTER_XT_MATCH_CONNTRACK=m
+# CONFIG_NETFILTER_XT_MATCH_QUOTA2 is not set
+# CONFIG_NETPRIO_CGROUP is not set
+# CONFIG_NET_ACTIVITY_STATS is not set
+CONFIG_NET_IPGRE=y
+# CONFIG_NET_IPGRE_BROADCAST is not set
+CONFIG_NET_IPGRE_DEMUX=y
+CONFIG_NET_IP_TUNNEL=y
+CONFIG_NET_KEY=y
+# CONFIG_NET_SCHED is not set
+# CONFIG_NET_VENDOR_SILICOM is not set
+CONFIG_NF_CONNTRACK=m
+CONFIG_NF_CONNTRACK_IPV4=m
+# CONFIG_NF_CONNTRACK_PROCFS is not set
+CONFIG_NF_DEFRAG_IPV4=m
+# CONFIG_NF_DEFRAG_IPV6 is not set
+CONFIG_NF_NAT=m
+CONFIG_NF_NAT_NEEDED=y
+CONFIG_NF_SHORTCUT_HOOK=y
+CONFIG_NL80211_TESTMODE=y
+CONFIG_NLS=y
+CONFIG_NLS_CODEPAGE_437=m
+CONFIG_NLS_CODEPAGE_936=m
+CONFIG_NLS_CODEPAGE_950=m
+CONFIG_NLS_UTF8=y
+CONFIG_NOP_USB_XCEIV=m
+CONFIG_NO_HZ=y
+CONFIG_NO_HZ_COMMON=y
+CONFIG_NO_HZ_IDLE=y
+CONFIG_NR_CPUS=4
+# CONFIG_NT35517_QHD_DSI_VIDEO is not set
+# CONFIG_NT35521_WXGA_DSI_VDO_HH060IA is not set
+# CONFIG_NT35590_HD720_DSI_CMD_AUO is not set
+# CONFIG_NT51012_WXGA_DSI_VDO is not set
+CONFIG_OABI_COMPAT=y
+CONFIG_OLD_SIGACTION=y
+CONFIG_OLD_SIGSUSPEND3=y
+CONFIG_PAGEFLAGS_EXTENDED=y
+CONFIG_PAGE_OFFSET=0xC0000000
+CONFIG_PANIC_TIMEOUT=5
+# CONFIG_PARTITION_ADVANCED is not set
+# CONFIG_PASSPOINT_R2 is not set
+CONFIG_PCI=y
+CONFIG_PCIE_PORT0=y
+CONFIG_PCIE_PORT1=y
+CONFIG_PCIE_PORT2=y
+CONFIG_PDMA_NEW=y
+# CONFIG_PERFSTATS_PERTASK is not set
+CONFIG_PERF_USE_VMALLOC=y
+CONFIG_PHYLIB=m
+CONFIG_PM=y
+CONFIG_PM_AUTOSLEEP=y
+# CONFIG_PM_DEBUG is not set
+CONFIG_PM_SLEEP=y
+CONFIG_PM_SLEEP_SMP=y
+CONFIG_POWER_EXT=y
+CONFIG_POWER_SUPPLY=y
+# CONFIG_PPE_MCAST is not set
+CONFIG_PPP=m
+CONFIG_PPPOE=m
+# CONFIG_PPPOLAC is not set
+CONFIG_PPPOPNS=m
+CONFIG_PPS=y
+CONFIG_PREEMPT=y
+CONFIG_PREEMPT_COUNT=y
+# CONFIG_PREEMPT_MONITOR is not set
+# CONFIG_PREEMPT_NONE is not set
+CONFIG_PREEMPT_RCU=y
+CONFIG_PRINTK_PROCESS_INFO=y
+CONFIG_PRINTK_TIME=y
+CONFIG_PTP_1588_CLOCK=y
+# CONFIG_PURE_AP_USE_EXTERNAL_MODEM is not set
+# CONFIG_PWR_LOSS_MTK_TEST is not set
+# CONFIG_RADIUS_ACCOUNTING_SUPPORT is not set
+CONFIG_RAETH=y
+CONFIG_RAETH_CHECKSUM_OFFLOAD=y
+# CONFIG_RAETH_DVT is not set
+CONFIG_RAETH_GMAC2=y
+CONFIG_RAETH_HW_LRO=y
+# CONFIG_RAETH_HW_LRO_DBG is not set
+CONFIG_RAETH_HW_VLAN_TX=y
+# CONFIG_RAETH_LRO is not set
+# CONFIG_RAETH_NAPI is not set
+CONFIG_RAETH_QDMA=y
+CONFIG_RAETH_SCATTER_GATHER_RX_DMA=y
+# CONFIG_RAETH_SKB_RECYCLE_2K is not set
+# CONFIG_RAETH_SPECIAL_TAG is not set
+CONFIG_RAETH_TSO=y
+# CONFIG_RAETH_TSOV6 is not set
+# CONFIG_RAETH_TSO_DBG is not set
+CONFIG_RAETH_TX_RX_INT_SEPARATION=y
+# CONFIG_RALINK_GDMA is not set
+# CONFIG_RALINK_HSDMA is not set
+# CONFIG_RALINK_I2C is not set
+# CONFIG_RALINK_I2C_CODEC is not set
+# CONFIG_RALINK_I2S is not set
+# CONFIG_RALINK_PCM is not set
+CONFIG_RALINK_RDM=y
+# CONFIG_RALINK_SPI is not set
+CONFIG_RAMDISK_OFFSET=0xF00000
+CONFIG_RATE_ADAPTION=y
+CONFIG_RATE_ADAPT_AGBS_SUPPORT=y
+CONFIG_RA_HW_NAT=m
+# CONFIG_RA_HW_NAT_ACCNT_MAINTAINER is not set
+CONFIG_RA_HW_NAT_BINDING_THRESHOLD=30
+CONFIG_RA_HW_NAT_FIN_DLTA=5
+# CONFIG_RA_HW_NAT_HASH0 is not set
+CONFIG_RA_HW_NAT_HASH1=y
+# CONFIG_RA_HW_NAT_HASH2 is not set
+# CONFIG_RA_HW_NAT_HASH3 is not set
+# CONFIG_RA_HW_NAT_HASH_DBG is not set
+# CONFIG_RA_HW_NAT_IPV6 is not set
+CONFIG_RA_HW_NAT_LAN_VLANID=1
+# CONFIG_RA_HW_NAT_NIC_USB is not set
+CONFIG_RA_HW_NAT_NTU_DLTA=5
+CONFIG_RA_HW_NAT_NTU_KA=1
+# CONFIG_RA_HW_NAT_PACKET_SAMPLING is not set
+# CONFIG_RA_HW_NAT_PREBIND is not set
+# CONFIG_RA_HW_NAT_TBL_16K is not set
+# CONFIG_RA_HW_NAT_TBL_1K is not set
+# CONFIG_RA_HW_NAT_TBL_2K is not set
+CONFIG_RA_HW_NAT_TBL_4K=y
+# CONFIG_RA_HW_NAT_TBL_8K is not set
+CONFIG_RA_HW_NAT_TCP_DLTA=5
+CONFIG_RA_HW_NAT_TCP_KA=1
+CONFIG_RA_HW_NAT_UDP_DLTA=5
+CONFIG_RA_HW_NAT_UDP_KA=1
+CONFIG_RA_HW_NAT_UNB_DLTA=3
+CONFIG_RA_HW_NAT_UNB_MNP=1000
+CONFIG_RA_HW_NAT_WAN_VLANID=2
+# CONFIG_RA_HW_NAT_WIFI is not set
+CONFIG_RA_NAT_HW=y
+# CONFIG_RA_NAT_NONE is not set
+CONFIG_RA_NETWORK_TASKLET_BH=y
+# CONFIG_RA_NETWORK_WORKQUEUE_BH is not set
+# CONFIG_RCU_BOOST is not set
+CONFIG_RCU_CPU_STALL_VERBOSE=y
+CONFIG_RCU_STALL_COMMON=y
+CONFIG_RED_SUPPORT=y
+CONFIG_RESOURCE_COUNTERS=y
+CONFIG_RESTART_DISABLE_CACHE=y
+CONFIG_RFS_ACCEL=y
+CONFIG_RF_LOCKDOWN_SUPPORT=y
+CONFIG_RIRST_IF_EEPROM_EFUSE=y
+CONFIG_RLM_CAL_CACHE_SUPPORT=y
+# CONFIG_RLT_MAC is not set
+CONFIG_RPS=y
+CONFIG_RTC_CLASS=y
+CONFIG_RTDEV=y
+CONFIG_RTMP_FLASH_SUPPORT=y
+# CONFIG_RTMP_MAC is not set
+CONFIG_RT_3052_ESW=y
+CONFIG_RT_FIRST_CARD="7615e"
+CONFIG_RT_FIRST_IF_RF_OFFSET=0x0
+CONFIG_RT_GROUP_SCHED=y
+CONFIG_RT_SECOND_CARD="7615e"
+CONFIG_RT_SECOND_CARD_EEPROM="efuse"
+CONFIG_RT_SECOND_IF_RF_OFFSET=0x8000
+# CONFIG_SAMSUNG_USB2PHY is not set
+# CONFIG_SAMSUNG_USB3PHY is not set
+# CONFIG_SAMSUNG_USBPHY is not set
+CONFIG_SCHED_HRTICK=y
+CONFIG_SCSI=m
+CONFIG_SCSI_MOD=m
+# CONFIG_SDIOAUTOK_SUPPORT is not set
+CONFIG_SECOND_IF_EEPROM_EFUSE=y
+# CONFIG_SECOND_IF_EEPROM_FLASH is not set
+# CONFIG_SECOND_IF_EEPROM_PROM is not set
+CONFIG_SECOND_IF_EPAELNA=y
+# CONFIG_SECOND_IF_IPAELNA is not set
+# CONFIG_SECOND_IF_IPAILNA is not set
+# CONFIG_SECOND_IF_MT7602E is not set
+# CONFIG_SECOND_IF_MT7603E is not set
+# CONFIG_SECOND_IF_MT7610E is not set
+# CONFIG_SECOND_IF_MT7610U is not set
+# CONFIG_SECOND_IF_MT7612E is not set
+# CONFIG_SECOND_IF_MT7612U is not set
+CONFIG_SECOND_IF_MT7615E=y
+# CONFIG_SECOND_IF_MT7637E is not set
+# CONFIG_SECOND_IF_NONE is not set
+# CONFIG_SERIAL_AMBA_PL010 is not set
+# CONFIG_SERIAL_AMBA_PL011 is not set
+# CONFIG_SLAB is not set
+CONFIG_SLHC=m
+# CONFIG_SLIMPORT_ANX3618 is not set
+CONFIG_SLUB=y
+CONFIG_SMART_CARRIER_SENSE_SUPPORT=y
+CONFIG_SMP=y
+# CONFIG_SMP_ON_UP is not set
+# CONFIG_SOC_BY_AUXADC is not set
+# CONFIG_SOC_BY_EXT_HW_FG is not set
+# CONFIG_SOC_BY_HW_FG is not set
+# CONFIG_SOC_BY_SW_FG is not set
+CONFIG_SPLICE_NET_SUPPORT=y
+CONFIG_STACKTRACE=y
+# CONFIG_STOP_CHARGING_IN_TAKLING is not set
+CONFIG_STOP_MACHINE=y
+CONFIG_SUSPEND=y
+CONFIG_SUSPEND_FREEZER=y
+# CONFIG_SUSPEND_TIME is not set
+CONFIG_SWAP=y
+# CONFIG_SWCHR_POWER_PATH is not set
+CONFIG_SWITCH=y
+CONFIG_SWP_EMULATE=y
+CONFIG_SYS_SUPPORTS_APM_EMULATION=y
+# CONFIG_TCP_CONG_ADVANCED is not set
+CONFIG_THERMAL=y
+CONFIG_THERMAL_DEFAULT_GOV_BACKWARD_COMPATIBLE=y
+# CONFIG_THERMAL_DEFAULT_GOV_FAIR_SHARE is not set
+# CONFIG_THERMAL_DEFAULT_GOV_STEP_WISE is not set
+# CONFIG_THERMAL_DEFAULT_GOV_USER_SPACE is not set
+# CONFIG_THERMAL_EMULATION is not set
+# CONFIG_THERMAL_GOV_FAIR_SHARE is not set
+# CONFIG_THERMAL_GOV_STEP_WISE is not set
+# CONFIG_THERMAL_GOV_USER_SPACE is not set
+CONFIG_THERMAL_HWMON=y
+# CONFIG_THIRD_IF_MT7615E is not set
+CONFIG_THIRD_IF_NONE=y
+# CONFIG_THUMB2_KERNEL is not set
+CONFIG_TICK_CPU_ACCOUNTING=y
+# CONFIG_TIMERFD is not set
+# CONFIG_TOUCHSCREEN_ATMEL_MXT is not set
+# CONFIG_TOUCHSCREEN_BU21013 is not set
+# CONFIG_TOUCHSCREEN_CYPRESS_CYTTSP4 is not set
+# CONFIG_TOUCHSCREEN_DYNAPRO is not set
+# CONFIG_TOUCHSCREEN_HAMPSHIRE is not set
+# CONFIG_TOUCHSCREEN_MAX11801 is not set
+# CONFIG_TOUCHSCREEN_MTK_SUPPORT is not set
+# CONFIG_TOUCHSCREEN_PIXCIR is not set
+# CONFIG_TOUCHSCREEN_ST1232 is not set
+# CONFIG_TOUCHSCREEN_TSC_SERIO is not set
+CONFIG_TPC_SUPPORT=y
+CONFIG_TREE_PREEMPT_RCU=y
+# CONFIG_TRUSTONIC_TEE_SUPPORT is not set
+CONFIG_TXBF_SUPPORT=y
+CONFIG_UAPSD=y
+CONFIG_UID16=y
+CONFIG_UIDGID_CONVERTED=y
+# CONFIG_UIDGID_STRICT_TYPE_CHECKS is not set
+# CONFIG_UID_STAT is not set
+CONFIG_UNCOMPRESS_INCLUDE="mach/uncompress.h"
+CONFIG_UNINLINE_SPIN_UNLOCK=y
+CONFIG_USB=y
+CONFIG_USB_ARCH_HAS_XHCI=y
+CONFIG_USB_COMMON=y
+CONFIG_USB_DEBUG=y
+# CONFIG_USB_EHCI_HCD is not set
+# CONFIG_USB_ETH is not set
+CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_VBUS_DRAW=500
+# CONFIG_USB_MTK_ACM_TEMP is not set
+CONFIG_USB_MTK_DEBUG=y
+# CONFIG_USB_MTK_DEBUG_FS is not set
+# CONFIG_USB_MTK_DUALMODE is not set
+# CONFIG_USB_MTK_HDRC is not set
+# CONFIG_USB_MTK_HDRC_GADGET is not set
+# CONFIG_USB_MTK_HDRC_HCD is not set
+CONFIG_USB_MTK_OTG=y
+# CONFIG_USB_MU3D_DRV is not set
+# CONFIG_USB_MU3D_DVT is not set
+# CONFIG_USB_MU3D_PIO_ONLY is not set
+CONFIG_USB_MU3H=y
+CONFIG_USB_MU3H_DRV=y
+# CONFIG_USB_MU3H_TEST_DRV is not set
+# CONFIG_USB_OTG_WAKELOCK is not set
+CONFIG_USB_PHY=y
+CONFIG_USB_SUPPORT=y
+# CONFIG_USB_UHCI_HCD is not set
+# CONFIG_USB_XHCI_DEBUGGING is not set
+CONFIG_USE_GENERIC_SMP_HELPERS=y
+CONFIG_VECTORS_BASE=0xffff0000
+CONFIG_VFP=y
+CONFIG_VFPv3=y
+CONFIG_VM_EVENT_COUNTERS=y
+CONFIG_VOW_SUPPORT=y
+CONFIG_WAKELOCK=y
+# CONFIG_WAN_AT_P0 is not set
+CONFIG_WAN_AT_P4=y
+# CONFIG_WATCHDOG is not set
+CONFIG_WDS_SUPPORT=y
+CONFIG_WIFI_BASIC_FUNC=y
+# CONFIG_WIFI_CONTROL_FUNC is not set
+CONFIG_WIFI_DRIVER=y
+CONFIG_WIFI_MODE_AP=y
+# CONFIG_WIFI_MODE_BOTH is not set
+# CONFIG_WIFI_MODE_STA is not set
+CONFIG_WIFI_PKT_FWD=y
+CONFIG_WSC_INCLUDED=y
+CONFIG_WSC_V2_SUPPORT=y
+CONFIG_XFRM_ALGO=y
+CONFIG_XFRM_USER=y
+# CONFIG_XHCI_DEV_NOTE is not set
+# CONFIG_XHCI_PM is not set
+CONFIG_XPS=y
+CONFIG_XZ_DEC_ARM=y
+CONFIG_XZ_DEC_ARMTHUMB=y
+CONFIG_XZ_DEC_BCJ=y
+CONFIG_ZBOOT_ROM_BSS=0
+CONFIG_ZBOOT_ROM_TEXT=0
+CONFIG_ZLIB_DEFLATE=y
+CONFIG_ZLIB_INFLATE=y
+CONFIG_ZONE_DMA_FLAG=0
+CONFIG_ZRAM=y
+CONFIG_ZRAM_DEBUG=y
+CONFIG_ZSMALLOC=y
diff --git a/target/linux/mediatek/mt7623_emmc/profiles/00-default.mk b/target/linux/mediatek/mt7623_emmc/profiles/00-default.mk
new file mode 100755
index 0000000..66f7b17
--- /dev/null
+++ b/target/linux/mediatek/mt7623_emmc/profiles/00-default.mk
@@ -0,0 +1,27 @@
+#
+# Copyright (C) 2015 MediaTek
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+define Profile/MT7623_EMMC
+ NAME:=Default Profile
+ PACKAGES:=\
+ -swconfig -rt2x00 \
+ ated hwnat switch uci2dat mii_mgr 8021xd e2fsprogs luci mpstat reg qdma nvram \
+ wireless-tools block-mount fstools kmod-scsi-generic \
+ kmod-nf-sc \
+ kmod-usb-core kmod-usb-storage \
+ kmod-fs-vfat kmod-fs-ext4 kmod-fs-ntfs \
+ kmod-nls-base kmod-nls-utf8 kmod-nls-cp936 \
+ kmod-nls-cp437 kmod-nls-cp850 kmod-nls-iso8859-1 kmod-nls-iso8859-15 kmod-nls-cp950
+endef
+
+
+define Profile/MT7623_EMMC/Description
+ Basic MT7623 SoC support
+endef
+$(eval $(call Profile,MT7623_EMMC))
+
+
diff --git a/target/linux/mediatek/mt7623_emmc/target.mk b/target/linux/mediatek/mt7623_emmc/target.mk
new file mode 100755
index 0000000..043184b
--- /dev/null
+++ b/target/linux/mediatek/mt7623_emmc/target.mk
@@ -0,0 +1,17 @@
+#
+# Copyright (C) 2015 MediaTek
+#
+
+SUBTARGET:=mt7623_emmc
+BOARDNAME:=MT7623 based boards (eMMC)
+ARCH_PACKAGES:=arm
+FEATURES+=usb fpu
+CPU_TYPE:=cortex-a7
+CPU_SUBTYPE:=vfp
+
+DEFAULT_PACKAGES +=
+
+define Target/Description
+ Build firmware images for Ralink MT7623 based boards.
+endef
+
diff --git a/target/linux/mediatek/mt7623_mtd/config-default b/target/linux/mediatek/mt7623_mtd/config-default
new file mode 100755
index 0000000..df84efe
--- /dev/null
+++ b/target/linux/mediatek/mt7623_mtd/config-default
@@ -0,0 +1,1031 @@
+# CONFIG_ACCELEROMETER_MTK_SUPPORT is not set
+CONFIG_ALIGNMENT_TRAP=y
+# CONFIG_ALSPS_MTK_SUPPORT is not set
+CONFIG_AMPC_CDEV_NUM=151
+CONFIG_ANDROID=y
+# CONFIG_ANDROID_BINDER_IPC is not set
+# CONFIG_ANDROID_INTF_ALARM_DEV is not set
+# CONFIG_ANDROID_LOGGER is not set
+# CONFIG_ANDROID_LOW_MEMORY_KILLER is not set
+# CONFIG_ANDROID_PARANOID_NETWORK is not set
+# CONFIG_ANDROID_PMEM is not set
+# CONFIG_ANDROID_TIMED_OUTPUT is not set
+# CONFIG_ANDROID_VMEM is not set
+CONFIG_APCLI_CERT_SUPPORT=y
+CONFIG_APCLI_SUPPORT=y
+# CONFIG_APM_EMULATION is not set
+CONFIG_ARCH_BINFMT_ELF_RANDOMIZE_PIE=y
+CONFIG_ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE=y
+CONFIG_ARCH_HAS_CPUFREQ=y
+CONFIG_ARCH_HAS_TICK_BROADCAST=y
+CONFIG_ARCH_HAVE_CUSTOM_GPIO_H=y
+CONFIG_ARCH_HIBERNATION_POSSIBLE=y
+# CONFIG_ARCH_MT6595 is not set
+CONFIG_ARCH_MT7623=y
+# CONFIG_ARCH_MT8127 is not set
+# CONFIG_ARCH_MT8135 is not set
+CONFIG_ARCH_MTK_PROJECT="fpga7623_nand"
+# CONFIG_ARCH_NEEDS_CPU_IDLE_COUPLED is not set
+CONFIG_ARCH_NR_GPIO=0
+# CONFIG_ARCH_SELECT_MEMORY_MODEL is not set
+# CONFIG_ARCH_SPARSEMEM_DEFAULT is not set
+CONFIG_ARCH_SUSPEND_POSSIBLE=y
+CONFIG_ARCH_WANT_IPC_PARSE_VERSION=y
+CONFIG_ARM=y
+CONFIG_ARM_AMBA=y
+# CONFIG_ARM_CCI is not set
+CONFIG_ARM_CPU_SUSPEND=y
+# CONFIG_ARM_CPU_TOPOLOGY is not set
+# CONFIG_ARM_EXYNOS4210_CPUFREQ is not set
+# CONFIG_ARM_EXYNOS4X12_CPUFREQ is not set
+# CONFIG_ARM_EXYNOS5250_CPUFREQ is not set
+# CONFIG_ARM_FLUSH_CONSOLE_ON_RESTART is not set
+CONFIG_ARM_HAS_SG_CHAIN=y
+# CONFIG_ARM_KIRKWOOD_CPUFREQ is not set
+CONFIG_ARM_L1_CACHE_SHIFT=6
+CONFIG_ARM_L1_CACHE_SHIFT_6=y
+# CONFIG_ARM_LPAE is not set
+CONFIG_ARM_NR_BANKS=8
+CONFIG_ARM_THUMB=y
+CONFIG_ARM_THUMBEE=y
+CONFIG_ARM_VIRT_EXT=y
+# CONFIG_ASHMEM is not set
+CONFIG_ATAGS=y
+CONFIG_ATE_SUPPORT=y
+# CONFIG_ATH_CARDS is not set
+CONFIG_AUDIT=y
+CONFIG_AUDIT_GENERIC=y
+CONFIG_BACKGROUND_SCAN_SUPPORT=y
+CONFIG_BACKWARD_COMPATIBLE=y
+CONFIG_BAND_STEERING=y
+# CONFIG_BAT_LOW_TEMP_PROTECT_ENABLE is not set
+# CONFIG_BLK_CGROUP is not set
+CONFIG_BLK_DEV_LOOP=y
+CONFIG_BLK_DEV_SD=m
+CONFIG_BOUNCE=y
+# CONFIG_CACHE_L2X0 is not set
+CONFIG_CC_STACKPROTECTOR=y
+CONFIG_CFG80211=y
+# CONFIG_CFG80211_ALLOW_RECONNECT is not set
+# CONFIG_CFG80211_CERTIFICATION_ONUS is not set
+# CONFIG_CFG80211_DEBUGFS is not set
+CONFIG_CFG80211_DEFAULT_PS=y
+# CONFIG_CFG80211_DEVELOPER_WARNINGS is not set
+# CONFIG_CFG80211_INTERNAL_REGDB is not set
+# CONFIG_CFG80211_REG_DEBUG is not set
+# CONFIG_CFG80211_SUPPORT is not set
+CONFIG_CFG80211_WEXT=y
+# CONFIG_CFS_BANDWIDTH is not set
+CONFIG_CGROUPS=y
+CONFIG_CGROUP_CPUACCT=y
+# CONFIG_CGROUP_DEVICE is not set
+# CONFIG_CGROUP_FREEZER is not set
+CONFIG_CGROUP_SCHED=y
+# CONFIG_CHARGER_ISP1704 is not set
+CONFIG_CHIP_MT7615E=y
+CONFIG_CLONE_BACKWARDS=y
+CONFIG_CMA=y
+CONFIG_CMA_ALIGNMENT=8
+CONFIG_CMA_AREAS=7
+# CONFIG_CMA_DEBUG is not set
+CONFIG_CMA_SIZE_MBYTES=16
+# CONFIG_CMA_SIZE_SEL_MAX is not set
+CONFIG_CMA_SIZE_SEL_MBYTES=y
+# CONFIG_CMA_SIZE_SEL_MIN is not set
+# CONFIG_CMA_SIZE_SEL_PERCENTAGE is not set
+CONFIG_CMDLINE="console=ttyMT2,115200n1 root=/dev/mtdblock6 vmalloc=496M slub_max_order=0 slub_debug=O coherent_pool=4M rdinit=/init androidboot.selinux=disabled androidboot.serialno=0123456789ABCDEF printk.disable_uart=0 boot_reason=0"
+CONFIG_CMDLINE_FROM_BOOTLOADER=y
+# CONFIG_CM_N070ICE_DSI_VDO is not set
+# CONFIG_CM_N070ICE_DSI_VDO_MT8135 is not set
+CONFIG_COMPACTION=y
+CONFIG_COMPAT_BRK=y
+# CONFIG_COMPAT_CPUINFO is not set
+# CONFIG_CONFIG_DIS_CHECK_BATTERY is not set
+# CONFIG_CONFIG_USB_IF is not set
+CONFIG_CON_WPS_SUPPORT=y
+CONFIG_COREDUMP=y
+# CONFIG_CPT_CLAA101FP01_DSI_VDO is not set
+# CONFIG_CPT_CLAP070WP03XG_LVDS is not set
+# CONFIG_CPT_CLAP070WP03XG_SN65DSI83 is not set
+# CONFIG_CPUSETS is not set
+# CONFIG_CPUTIME_STATS is not set
+# CONFIG_CPUTIME_SUPPORT is not set
+CONFIG_CPU_32v6K=y
+CONFIG_CPU_32v7=y
+CONFIG_CPU_ABRT_EV7=y
+# CONFIG_CPU_BPREDICT_DISABLE is not set
+CONFIG_CPU_CACHE_V7=y
+CONFIG_CPU_CACHE_VIPT=y
+CONFIG_CPU_COPY_V6=y
+CONFIG_CPU_CP15=y
+CONFIG_CPU_CP15_MMU=y
+CONFIG_CPU_FREQ=y
+# CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set
+# CONFIG_CPU_FREQ_DEFAULT_GOV_HOTPLUG is not set
+# CONFIG_CPU_FREQ_DEFAULT_GOV_INTERACTIVE is not set
+# CONFIG_CPU_FREQ_DEFAULT_GOV_INTERACTIVEPLUS is not set
+# CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND is not set
+CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y
+# CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE is not set
+# CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set
+CONFIG_CPU_FREQ_GOV_COMMON=y
+# CONFIG_CPU_FREQ_GOV_CONSERVATIVE is not set
+CONFIG_CPU_FREQ_GOV_HOTPLUG=y
+# CONFIG_CPU_FREQ_GOV_INTERACTIVE is not set
+# CONFIG_CPU_FREQ_GOV_INTERACTIVEPLUS is not set
+# CONFIG_CPU_FREQ_GOV_ONDEMAND is not set
+CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
+CONFIG_CPU_FREQ_GOV_POWERSAVE=y
+CONFIG_CPU_FREQ_GOV_USERSPACE=y
+CONFIG_CPU_FREQ_STAT=y
+# CONFIG_CPU_FREQ_STAT_DETAILS is not set
+CONFIG_CPU_FREQ_TABLE=y
+CONFIG_CPU_HAS_ASID=y
+# CONFIG_CPU_ICACHE_DISABLE is not set
+CONFIG_CPU_PABRT_V7=y
+CONFIG_CPU_PM=y
+CONFIG_CPU_RMAP=y
+# CONFIG_CPU_THERMAL is not set
+CONFIG_CPU_TLB_V7=y
+CONFIG_CPU_V7=y
+CONFIG_CRC16=y
+CONFIG_CRC32_SLICEBY8=y
+CONFIG_CROSS_MEMORY_ATTACH=y
+CONFIG_CRYPTO_AEAD=y
+CONFIG_CRYPTO_AEAD2=y
+CONFIG_CRYPTO_ANSI_CPRNG=y
+CONFIG_CRYPTO_AUTHENC=y
+CONFIG_CRYPTO_BLKCIPHER=y
+CONFIG_CRYPTO_BLKCIPHER2=y
+CONFIG_CRYPTO_CBC=y
+CONFIG_CRYPTO_CRC32C=y
+CONFIG_CRYPTO_DEFLATE=y
+CONFIG_CRYPTO_DES=y
+CONFIG_CRYPTO_HASH=y
+CONFIG_CRYPTO_HASH2=y
+CONFIG_CRYPTO_HMAC=y
+CONFIG_CRYPTO_LZO=y
+CONFIG_CRYPTO_MANAGER=y
+CONFIG_CRYPTO_MANAGER2=y
+CONFIG_CRYPTO_MD5=y
+CONFIG_CRYPTO_PCOMP2=y
+CONFIG_CRYPTO_RNG=y
+CONFIG_CRYPTO_RNG2=y
+CONFIG_CRYPTO_SHA1=y
+CONFIG_CRYPTO_SHA1_ARM=y
+CONFIG_CRYPTO_WORKQUEUE=y
+# CONFIG_CSR_WIFI is not set
+# CONFIG_CUSTOM_BATTERY_CYCLE_AGING_DATA is not set
+# CONFIG_CUSTOM_KERNEL_ACCELEROMETER is not set
+CONFIG_CUSTOM_KERNEL_ALSPS=y
+# CONFIG_CUSTOM_KERNEL_BAROMETER is not set
+CONFIG_CUSTOM_KERNEL_EXTMD=""
+CONFIG_CUSTOM_KERNEL_FLASHLIGHT=""
+# CONFIG_CUSTOM_KERNEL_GYROSCOPE is not set
+CONFIG_CUSTOM_KERNEL_HDMI=""
+CONFIG_CUSTOM_KERNEL_IMGSENSOR=""
+CONFIG_CUSTOM_KERNEL_LCM="HX8392A_DSI_VDO"
+# CONFIG_CUSTOM_KERNEL_MAGNETOMETER is not set
+# CONFIG_CUSTOM_KERNEL_OFN is not set
+# CONFIG_CUSTOM_KERNEL_SSW is not set
+CONFIG_CUSTOM_KERNEL_TOUCHPANEL=""
+# CONFIG_CUSTOM_SEC_AUTH_SUPPORT is not set
+# CONFIG_CUST_DISABLE_CAPACITY_OCV2CV_TRANSFORM is not set
+# CONFIG_CYPRESS_CYTTSP4_BUS is not set
+CONFIG_DBDC_MODE=y
+CONFIG_DCACHE_WORD_ACCESS=y
+# CONFIG_DCC_TTY is not set
+CONFIG_DEBUG_KERNEL=y
+CONFIG_DEBUG_LL_INCLUDE="mach/debug-macro.S"
+# CONFIG_DEBUG_USER is not set
+CONFIG_DEFAULT_CFQ=y
+# CONFIG_DEFAULT_DEADLINE is not set
+CONFIG_DEFAULT_IOSCHED="cfq"
+CONFIG_DEVMEM=y
+# CONFIG_DISABLE_CPU_SCHED_DOMAIN_BALANCE is not set
+CONFIG_DNOTIFY=y
+# CONFIG_DOT11K_RRM_SUPPORT is not set
+# CONFIG_DOT11R_FT_SUPPORT is not set
+CONFIG_DOT11W_PMF_SUPPORT=y
+CONFIG_DOT11_N_SUPPORT=y
+CONFIG_DOT11_VHT_AC=y
+CONFIG_EARLYSUSPEND=y
+CONFIG_EARLY_LINUX_PORTING=y
+CONFIG_ESW_DOUBLE_VLAN_TAG=y
+CONFIG_ETH_PAGE_ALLOC_SKB=y
+CONFIG_ETH_SKB_ALLOC_SELECT=y
+# CONFIG_ETH_SLAB_ALLOC_SKB is not set
+# CONFIG_ETH_WIFI_OOM_DEBUG is not set
+# CONFIG_EVDO_DT_SUPPORT is not set
+CONFIG_EXT2_FS=m
+CONFIG_EXT2_FS_POSIX_ACL=y
+CONFIG_EXT2_FS_SECURITY=y
+CONFIG_EXT2_FS_XATTR=y
+CONFIG_EXT3_DEFAULTS_TO_ORDERED=y
+CONFIG_EXT3_FS=m
+CONFIG_EXT3_FS_POSIX_ACL=y
+CONFIG_EXT3_FS_SECURITY=y
+CONFIG_EXT3_FS_XATTR=y
+CONFIG_EXT4_DEBUG=y
+CONFIG_EXT4_FS=m
+CONFIG_EXT4_FS_POSIX_ACL=y
+CONFIG_EXT4_FS_SECURITY=y
+# CONFIG_EXT_FG_HAS_SOC is not set
+# CONFIG_EXT_FG_HAS_TEMPERATURE is not set
+CONFIG_FAIR_GROUP_SCHED=y
+CONFIG_FB_EARLYSUSPEND=y
+CONFIG_FIQ=y
+CONFIG_FIQ_DEBUGGER=y
+CONFIG_FIQ_DEBUGGER_CONSOLE=y
+CONFIG_FIQ_DEBUGGER_CONSOLE_DEFAULT_ENABLE=y
+# CONFIG_FIQ_DEBUGGER_NO_SLEEP is not set
+# CONFIG_FIQ_DEBUGGER_WAKEUP_IRQ_ALWAYS_ON is not set
+CONFIG_FIQ_GLUE=y
+CONFIG_FIRST_IF_EEPROM_FLASH=y
+CONFIG_FIRST_IF_EPAELNA=y
+# CONFIG_FIRST_IF_IPAELNA is not set
+# CONFIG_FIRST_IF_IPAILNA is not set
+# CONFIG_FIRST_IF_MT7602E is not set
+# CONFIG_FIRST_IF_MT7603E is not set
+# CONFIG_FIRST_IF_MT7610E is not set
+# CONFIG_FIRST_IF_MT7612E is not set
+CONFIG_FIRST_IF_MT7615E=y
+# CONFIG_FIRST_IF_MT7637E is not set
+# CONFIG_FIRST_IF_NONE is not set
+CONFIG_FONT_8x16=y
+# CONFIG_FPE_FASTFPE is not set
+# CONFIG_FPE_NWFPE is not set
+# CONFIG_FPGA_EARLY_PORTING is not set
+CONFIG_FRAME_POINTER=y
+CONFIG_FREEZER=y
+CONFIG_FS_MBCACHE=m
+CONFIG_FS_POSIX_ACL=y
+# CONFIG_GE1_RGMII_AN is not set
+# CONFIG_GE1_RGMII_NONE is not set
+# CONFIG_GE1_TRGMII_FORCE_2000 is not set
+CONFIG_GE1_TRGMII_FORCE_2600=y
+CONFIG_GE2_INTERNAL_GPHY=y
+# CONFIG_GE2_MII_AN is not set
+# CONFIG_GE2_MII_FORCE_100 is not set
+# CONFIG_GE2_RGMII_AN is not set
+# CONFIG_GE2_RGMII_FORCE_1000 is not set
+# CONFIG_GE2_RVMII_FORCE_100 is not set
+CONFIG_GENERIC_BUG=y
+CONFIG_GENERIC_CLOCKEVENTS=y
+CONFIG_GENERIC_CLOCKEVENTS_BROADCAST=y
+CONFIG_GENERIC_CLOCKEVENTS_BUILD=y
+CONFIG_GENERIC_IDLE_POLL_SETUP=y
+CONFIG_GENERIC_IO=y
+CONFIG_GENERIC_IRQ_SHOW=y
+CONFIG_GENERIC_PCI_IOMAP=y
+CONFIG_GENERIC_SMP_IDLE_THREAD=y
+CONFIG_GENERIC_STRNCPY_FROM_USER=y
+CONFIG_GENERIC_STRNLEN_USER=y
+# CONFIG_GENERIC_TRACER is not set
+CONFIG_GE_RGMII_INTERNAL_P4_AN=y
+CONFIG_GPIO_DEVRES=y
+# CONFIG_GPS is not set
+CONFIG_GREENAP_SUPPORT=y
+# CONFIG_GYROSCOPE_MTK_SUPPORT is not set
+CONFIG_G_BAND_256QAM_SUPPORT=y
+# CONFIG_HAMRADIO is not set
+CONFIG_HARDIRQS_SW_RESEND=y
+CONFIG_HAS_DMA=y
+CONFIG_HAS_EARLYSUSPEND=y
+CONFIG_HAS_IOMEM=y
+CONFIG_HAS_IOPORT=y
+CONFIG_HAS_WAKELOCK=y
+# CONFIG_HAVE_64BIT_ALIGNED_ACCESS is not set
+# CONFIG_HAVE_AEE_FEATURE is not set
+CONFIG_HAVE_AOUT=y
+CONFIG_HAVE_ARCH_JUMP_LABEL=y
+CONFIG_HAVE_ARCH_KGDB=y
+CONFIG_HAVE_ARCH_PFN_VALID=y
+CONFIG_HAVE_ARCH_SECCOMP_FILTER=y
+CONFIG_HAVE_ARCH_TRACEHOOK=y
+# CONFIG_HAVE_BOOTMEM_INFO_NODE is not set
+CONFIG_HAVE_BPF_JIT=y
+# CONFIG_HAVE_CMMB_FEATURE is not set
+CONFIG_HAVE_CONTEXT_TRACKING=y
+CONFIG_HAVE_C_RECORDMCOUNT=y
+CONFIG_HAVE_DEBUG_KMEMLEAK=y
+CONFIG_HAVE_DMA_API_DEBUG=y
+CONFIG_HAVE_DMA_ATTRS=y
+CONFIG_HAVE_DMA_CONTIGUOUS=y
+CONFIG_HAVE_DYNAMIC_FTRACE=y
+CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y
+CONFIG_HAVE_FUNCTION_GRAPH_TRACER=y
+CONFIG_HAVE_FUNCTION_TRACER=y
+CONFIG_HAVE_GENERIC_DMA_COHERENT=y
+CONFIG_HAVE_GENERIC_HARDIRQS=y
+CONFIG_HAVE_IDE=y
+CONFIG_HAVE_IRQ_TIME_ACCOUNTING=y
+CONFIG_HAVE_KERNEL_GZIP=y
+CONFIG_HAVE_KERNEL_LZMA=y
+CONFIG_HAVE_KERNEL_LZO=y
+CONFIG_HAVE_KERNEL_XZ=y
+CONFIG_HAVE_MEMBLOCK=y
+CONFIG_HAVE_MTK_IN_HOUSE_TEE_SUPPORT=y
+CONFIG_HAVE_NET_DSA=y
+CONFIG_HAVE_OPROFILE=y
+CONFIG_HAVE_PERF_EVENTS=y
+CONFIG_HAVE_PROC_CPU=y
+CONFIG_HAVE_REGS_AND_STACK_ACCESS_API=y
+CONFIG_HAVE_SMP=y
+CONFIG_HAVE_SYSCALL_TRACEPOINTS=y
+CONFIG_HAVE_TRUSTONIC_TEE_SUPPORT=y
+CONFIG_HAVE_UID16=y
+CONFIG_HAVE_XLOG_FEATURE=y
+CONFIG_HDR_TRANS_RX_SUPPORT=y
+CONFIG_HDR_TRANS_TX_SUPPORT=y
+# CONFIG_HEVTASK_INTERFACE is not set
+CONFIG_HIGHMEM=y
+# CONFIG_HIGHPTE is not set
+# CONFIG_HIGH_BATTERY_VOLTAGE_SUPPORT is not set
+CONFIG_HNAT_V2=y
+CONFIG_HOTPLUG_CPU=y
+# CONFIG_HSD070PFW3_8135 is not set
+CONFIG_HWMON=y
+# CONFIG_HW_IPSEC is not set
+# CONFIG_HW_SFQ is not set
+# CONFIG_HX8392A_DSI_CMD is not set
+# CONFIG_HX8392A_DSI_VDO is not set
+CONFIG_I2C=y
+CONFIG_I2C_BOARDINFO=y
+CONFIG_I2C_COMPAT=y
+CONFIG_I2C_HELPER_AUTO=y
+CONFIG_ICAP_SUPPORT=y
+# CONFIG_IDME is not set
+# CONFIG_IGB_V5215 is not set
+CONFIG_IGMP_SNOOP_SUPPORT=y
+CONFIG_IKCONFIG=y
+CONFIG_IKCONFIG_PROC=y
+# CONFIG_IMQ is not set
+CONFIG_INET_AH=y
+CONFIG_INET_ESP=y
+CONFIG_INET_XFRM_MODE_TRANSPORT=y
+CONFIG_INET_XFRM_MODE_TUNNEL=y
+CONFIG_INITRAMFS_SOURCE=""
+CONFIG_INPUT=y
+CONFIG_INPUT_EVDEV=y
+# CONFIG_INPUT_GPIO is not set
+# CONFIG_INPUT_HALL_BU520 is not set
+CONFIG_INPUT_KEYBOARD=y
+# CONFIG_INPUT_KEYCHORD is not set
+# CONFIG_INPUT_KEYRESET is not set
+CONFIG_INPUT_MOUSE=y
+CONFIG_INPUT_MOUSEDEV=y
+CONFIG_INPUT_MOUSEDEV_PSAUX=y
+CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
+CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
+# CONFIG_INPUT_TEMPERATURE_TMP103 is not set
+CONFIG_INPUT_TOUCHSCREEN=y
+CONFIG_INPUT_UINPUT=y
+# CONFIG_ION is not set
+# CONFIG_ION_MTK is not set
+CONFIG_IOSCHED_CFQ=y
+CONFIG_IP6_NF_FILTER=m
+CONFIG_IP6_NF_IPTABLES=m
+CONFIG_IP6_NF_TARGET_REJECT=m
+# CONFIG_IP6_NF_TARGET_REJECT_SKERR is not set
+CONFIG_IPV6=y
+# CONFIG_IPV6_GRE is not set
+CONFIG_IP_NF_FILTER=m
+CONFIG_IP_NF_IPTABLES=m
+CONFIG_IP_NF_TARGET_REJECT=m
+# CONFIG_IP_NF_TARGET_REJECT_SKERR is not set
+CONFIG_IP_SET=m
+# CONFIG_IP_SET_BITMAP_IP is not set
+# CONFIG_IP_SET_BITMAP_IPMAC is not set
+# CONFIG_IP_SET_BITMAP_PORT is not set
+# CONFIG_IP_SET_HASH_IP is not set
+# CONFIG_IP_SET_HASH_IPPORT is not set
+# CONFIG_IP_SET_HASH_IPPORTIP is not set
+# CONFIG_IP_SET_HASH_IPPORTNET is not set
+# CONFIG_IP_SET_HASH_NET is not set
+# CONFIG_IP_SET_HASH_NETIFACE is not set
+# CONFIG_IP_SET_HASH_NETPORT is not set
+# CONFIG_IP_SET_LIST_SET is not set
+CONFIG_IP_SET_MAX=256
+# CONFIG_IP_WOW is not set
+CONFIG_IRQ_WORK=y
+# CONFIG_ISR_MONITOR is not set
+CONFIG_JBD=m
+CONFIG_JBD2=m
+CONFIG_JUMP_LABEL=y
+CONFIG_KALLSYMS=y
+CONFIG_KALLSYMS_ALL=y
+CONFIG_KERNEL_NVRAM=y
+CONFIG_KEYBOARD_HID=y
+CONFIG_KTIME_SCALAR=y
+CONFIG_LAN_WAN_SUPPORT=y
+CONFIG_LCM_HEIGHT="1920"
+CONFIG_LCM_WIDTH="1080"
+# CONFIG_LEDS_LP855X is not set
+# CONFIG_LEDS_TRIGGER_DEFAULT_ON is not set
+CONFIG_LED_CONTROL_SUPPORT=y
+CONFIG_LOCAL_TIMERS=y
+CONFIG_LZO_COMPRESS=y
+CONFIG_LZO_DECOMPRESS=y
+CONFIG_MAC_REPEATER_SUPPORT=y
+CONFIG_MAC_TO_GIGAPHY_MODE_ADDR2=4
+# CONFIG_MAGNETOMETER_MTK_SUPPORT is not set
+CONFIG_MAX_DRAM_SIZE_SUPPORT=0x80000000
+CONFIG_MBSS_SUPPORT=y
+CONFIG_MCAST_RATE_SPECIFIC=y
+CONFIG_MD1_SMEM_SIZE=""
+CONFIG_MD2_SMEM_SIZE=""
+# CONFIG_MD32_SUPPORT is not set
+# CONFIG_MDUMP is not set
+CONFIG_MEDIATEK_GPIO=y
+CONFIG_MEDIATEK_GPIO_LED=y
+CONFIG_MEDIATEK_SOLUTION=y
+CONFIG_MEMORY_ISOLATION=y
+# CONFIG_MET_MMC_PROFILE is not set
+CONFIG_MIGHT_HAVE_PCI=y
+CONFIG_MIGRATION=y
+CONFIG_MMC=y
+CONFIG_MMC_BLOCK=y
+# CONFIG_MMC_BLOCK_DEFERRED_RESUME is not set
+CONFIG_MMC_BLOCK_MINORS=32
+# CONFIG_MMC_EMBEDDED_SDIO is not set
+# CONFIG_MMC_FFU is not set
+# CONFIG_MMC_PARANOID_SD_INIT is not set
+# CONFIG_MMC_SAMSUNG_SMART is not set
+# CONFIG_MMC_TIFM_SD is not set
+CONFIG_MMC_UNSAFE_RESUME=y
+# CONFIG_MMPROFILE is not set
+# CONFIG_MODEM_UMTS_TDD128_MODE is not set
+CONFIG_MODULES_USE_ELF_REL=y
+# CONFIG_MOUSE_AVAGOTECH_A320 is not set
+# CONFIG_MOUSE_BCM5974 is not set
+# CONFIG_MOUSE_CYAPA is not set
+# CONFIG_MOUSE_PANASONIC_EVQWJN is not set
+# CONFIG_MOUSE_PS2 is not set
+# CONFIG_MOUSE_SERIAL is not set
+# CONFIG_MOUSE_VSXXXAA is not set
+# CONFIG_MT592X_SDIO_CLNT is not set
+# CONFIG_MT65XX_TRACER is not set
+# CONFIG_MT6605_NFC is not set
+CONFIG_MT7623_EVB_BOARD=y
+# CONFIG_MT7623_FPGA is not set
+CONFIG_MTD_BLOCK2MTD=y
+CONFIG_MTD_CMDLINE_PARTS=y
+CONFIG_MTD_NAND=y
+CONFIG_MTD_NAND_ECC=y
+CONFIG_MTD_NAND_PLATFORM=y
+# CONFIG_MTD_ROOTFS_SPLIT is not set
+# CONFIG_MTD_SM_COMMON is not set
+# CONFIG_MTD_SPLIT is not set
+CONFIG_MTD_SPLIT_FIRMWARE=y
+CONFIG_MTD_UBI=y
+CONFIG_MTD_UBI_BEB_LIMIT=20
+# CONFIG_MTD_UBI_FASTMAP is not set
+# CONFIG_MTD_UBI_GLUEBI is not set
+CONFIG_MTD_UBI_WL_THRESHOLD=4096
+CONFIG_MTD_UIMAGE_SPLIT=y
+# CONFIG_MTK_AAL_SUPPORT is not set
+# CONFIG_MTK_ACCDET is not set
+# CONFIG_MTK_AEE_AED is not set
+# CONFIG_MTK_AEE_FEATURE is not set
+# CONFIG_MTK_AEE_IPANIC is not set
+# CONFIG_MTK_AEE_MRDUMP is not set
+# CONFIG_MTK_ALPS_BOX_SUPPORT is not set
+# CONFIG_MTK_AUTO_DETECT_ALSPS is not set
+# CONFIG_MTK_AUTO_POWER_ON_WITH_CHARGER is not set
+# CONFIG_MTK_BATTERY_LIFETIME_DATA_SUPPORT is not set
+# CONFIG_MTK_BATTERY_PROTECT is not set
+# CONFIG_MTK_BATTERY_THROTTLING is not set
+# CONFIG_MTK_BICR_SUPPORT is not set
+# CONFIG_MTK_BQ24158_SUPPORT is not set
+# CONFIG_MTK_BQ24160_SUPPORT is not set
+# CONFIG_MTK_BQ24196_SUPPORT is not set
+# CONFIG_MTK_BQ24296_SUPPORT is not set
+# CONFIG_MTK_BQ24297_SUPPORT is not set
+# CONFIG_MTK_BQ27541_SUPPORT is not set
+CONFIG_MTK_BTIF=y
+# CONFIG_MTK_BT_SUPPORT is not set
+# CONFIG_MTK_CAMCAL_DUMMYCAMCAL_SUPPORT is not set
+# CONFIG_MTK_CCCI_DEVICES is not set
+CONFIG_MTK_CIRQ=y
+CONFIG_MTK_CMMB_CHIP=""
+CONFIG_MTK_COMBO=y
+CONFIG_MTK_COMBO_BT=y
+CONFIG_MTK_COMBO_CHIP="CONSYS_7623"
+# CONFIG_MTK_COMBO_CHIP_CONSYS_6572 is not set
+# CONFIG_MTK_COMBO_CHIP_CONSYS_6582 is not set
+# CONFIG_MTK_COMBO_CHIP_CONSYS_6592 is not set
+CONFIG_MTK_COMBO_CHIP_CONSYS_7623=y
+# CONFIG_MTK_COMBO_CHIP_CONSYS_8127 is not set
+# CONFIG_MTK_COMBO_CHIP_MT6620 is not set
+# CONFIG_MTK_COMBO_CHIP_MT6627 is not set
+# CONFIG_MTK_COMBO_CHIP_MT6628 is not set
+# CONFIG_MTK_COMBO_CHIP_MT6630 is not set
+# CONFIG_MTK_COMBO_COMM is not set
+# CONFIG_MTK_COMBO_GPS is not set
+CONFIG_MTK_COMBO_NAND_SUPPORT=y
+CONFIG_MTK_COMBO_PLAT_PATH=""
+CONFIG_MTK_COMBO_PSM_RX_TH=""
+CONFIG_MTK_COMBO_PSM_TX_TH=""
+CONFIG_MTK_COMBO_WIFI=y
+CONFIG_MTK_CONNSYS_WIFI=y
+# CONFIG_MTK_CTP_RESET_CONFIG is not set
+# CONFIG_MTK_DHCPV6C_WIFI is not set
+CONFIG_MTK_DISABLE_POWER_ON_OFF_VOLTAGE_LIMITATION=y
+# CONFIG_MTK_DITHERING_SUPPORT is not set
+# CONFIG_MTK_DSPIRDBG is not set
+# CONFIG_MTK_DT_SUPPORT is not set
+# CONFIG_MTK_ECCCI_DRIVER is not set
+# CONFIG_MTK_EEPROM_DUMMYEEPROM_SUPPORT is not set
+# CONFIG_MTK_EMMC_CACHE is not set
+# CONFIG_MTK_EMMC_SUPPORT is not set
+# CONFIG_MTK_EMMC_SUPPORT_OTP is not set
+# CONFIG_MTK_ENABLE_AGING_ALGORITHM is not set
+# CONFIG_MTK_ENABLE_MD1 is not set
+# CONFIG_MTK_ENABLE_MD2 is not set
+CONFIG_MTK_ETM=y
+CONFIG_MTK_EXTERNAL_MODEM_SLOT=""
+# CONFIG_MTK_FAKE_MPIDR is not set
+# CONFIG_MTK_FAN5402_SUPPORT is not set
+# CONFIG_MTK_FAN5405_SUPPORT is not set
+# CONFIG_MTK_FLASHLIGHT_DUMMYFLASHLIGHT_SUPPORT is not set
+# CONFIG_MTK_FM is not set
+# CONFIG_MTK_FM_SUPPORT is not set
+# CONFIG_MTK_FORCE_CLUSTER1 is not set
+# CONFIG_MTK_G2D is not set
+# CONFIG_MTK_GET_BATTERY_ID_BY_AUXADC is not set
+# CONFIG_MTK_GPS_SUPPORT is not set
+CONFIG_MTK_GPU_CHIP=""
+# CONFIG_MTK_GPU_SUPPORT is not set
+# CONFIG_MTK_H264_DEC_DRIVER is not set
+# CONFIG_MTK_HDMI_SUPPORT is not set
+CONFIG_MTK_I2C=y
+# CONFIG_MTK_ICUSB_SUPPORT is not set
+# CONFIG_MTK_IDLE_TIME_FIX is not set
+# CONFIG_MTK_IMGSENSOR_HI253YUV_SUPPORT is not set
+# CONFIG_MTK_IMGSENSOR_HI704YUV_SUPPORT is not set
+# CONFIG_MTK_IMGSENSOR_IMX135MIPIRAW_SUPPORT is not set
+# CONFIG_MTK_IMGSENSOR_OV2659YUV_SUPPORT is not set
+# CONFIG_MTK_IMGSENSOR_OV2722MIPIRAW_SUPPORT is not set
+# CONFIG_MTK_IMGSENSOR_OV2724MIPIRAW_SUPPORT is not set
+# CONFIG_MTK_IMGSENSOR_OV5647RAW_SUPPORT is not set
+# CONFIG_MTK_INTERNAL is not set
+# CONFIG_MTK_INTERNAL_MHL_SUPPORT is not set
+# CONFIG_MTK_IN_HOUSE_TEE_SUPPORT is not set
+# CONFIG_MTK_IPV6_TETHER_NDP_MODE is not set
+# CONFIG_MTK_JEITA_STANDARD_SUPPORT is not set
+CONFIG_MTK_JPEG=y
+# CONFIG_MTK_KERNEL_POWER_OFF_CHARGING is not set
+CONFIG_MTK_KEYPAD=y
+CONFIG_MTK_LCM_PHYSICAL_ROTATION=""
+# CONFIG_MTK_LDVT is not set
+CONFIG_MTK_LEDS=y
+CONFIG_MTK_LEGACY_GPIO_DRIVER=y
+# CONFIG_MTK_LENS_DUMMYLENS_SUPPORT is not set
+# CONFIG_MTK_LENS_DW9718AF_SUPPORT is not set
+# CONFIG_MTK_LM_MODE is not set
+CONFIG_MTK_M4U_SUPPORT=y
+# CONFIG_MTK_MCI is not set
+CONFIG_MTK_MEMCFG=y
+# CONFIG_MTK_MERGE_INTERFACE_SUPPORT is not set
+# CONFIG_MTK_MET is not set
+# CONFIG_MTK_MFLEXVIDEO_DRIVER is not set
+CONFIG_MTK_MLC_NAND_SUPPORT=y
+CONFIG_MTK_MMC=y
+# CONFIG_MTK_MMPROFILE_SUPPORT is not set
+# CONFIG_MTK_MPEG4_DEC_DRIVER is not set
+# CONFIG_MTK_MPEG4_ENC_DRIVER is not set
+# CONFIG_MTK_MT6333_SUPPORT is not set
+# CONFIG_MTK_MT8193_HDCP_SUPPORT is not set
+# CONFIG_MTK_MT8193_SUPPORT is not set
+CONFIG_MTK_MTD_NAND=y
+CONFIG_MTK_MTD_NAND_INTERRUPT_SCHEME=y
+# CONFIG_MTK_MTD_NOR is not set
+# CONFIG_MTK_MULTIBRIDGE_SUPPORT is not set
+# CONFIG_MTK_MULTI_BAT_PROFILE_SUPPORT is not set
+# CONFIG_MTK_MULTI_PARTITION_MOUNT_ONLY_SUPPORT is not set
+CONFIG_MTK_MULTI_STORAGE_SUPPORT=y
+CONFIG_MTK_MUTATION=y
+# CONFIG_MTK_NCP1851_SUPPORT is not set
+# CONFIG_MTK_NEW_COMBO_EMMC_SUPPORT is not set
+# CONFIG_MTK_NFC is not set
+# CONFIG_MTK_NFC_SUPPORT is not set
+# CONFIG_MTK_OVERLAY_ENGINE_SUPPORT is not set
+# CONFIG_MTK_OWNER_SDCARD_ONLY_SUPPORT is not set
+CONFIG_MTK_PLATFORM="mt7623"
+CONFIG_MTK_PMIC=y
+# CONFIG_MTK_PMIC_RF2_26M_ALWAYS_ON is not set
+CONFIG_MTK_PMIC_WRAP=y
+CONFIG_MTK_RAM_CONSOLE=y
+CONFIG_MTK_RAM_CONSOLE_ADDR=0xF900DC00
+CONFIG_MTK_RAM_CONSOLE_DRAM_ADDR=0x81F00000
+CONFIG_MTK_RAM_CONSOLE_DRAM_SIZE=0x4000
+CONFIG_MTK_RAM_CONSOLE_SIZE=0x1C00
+# CONFIG_MTK_RAM_CONSOLE_USING_DRAM is not set
+CONFIG_MTK_RAM_CONSOLE_USING_SRAM=y
+CONFIG_MTK_RTC=y
+# CONFIG_MTK_SCHED_RQAVG_KS is not set
+# CONFIG_MTK_SCHED_RQAVG_US is not set
+CONFIG_MTK_SECURITY_SW_SUPPORT=y
+# CONFIG_MTK_SEC_MODEM_NVRAM_ANTI_CLONE is not set
+# CONFIG_MTK_SENSOR_SUPPORT is not set
+CONFIG_MTK_SERIAL=y
+CONFIG_MTK_SERIAL_CONSOLE=y
+# CONFIG_MTK_SERIAL_MODEM_TEST is not set
+# CONFIG_MTK_SHARED_SDCARD is not set
+CONFIG_MTK_SIM1_SOCKET_TYPE=""
+# CONFIG_MTK_SIM2 is not set
+CONFIG_MTK_SIM2_SOCKET_TYPE=""
+# CONFIG_MTK_SMARTBOOK_SUPPORT is not set
+# CONFIG_MTK_SMART_BATTERY is not set
+# CONFIG_MTK_SOUND is not set
+# CONFIG_MTK_STAGING is not set
+CONFIG_MTK_STORAGE_PID_LOGGER=y
+CONFIG_MTK_SWCHR_SUPPORT=y
+# CONFIG_MTK_TC1_FEATURE is not set
+# CONFIG_MTK_TEST_XHCI is not set
+# CONFIG_MTK_TETHERINGIPV6_SUPPORT is not set
+# CONFIG_MTK_THERMAL_PA_VIA_ATCMD is not set
+# CONFIG_MTK_THERMAL_STATUS_COLLECTION is not set
+# CONFIG_MTK_TMP103_SUPPORT is not set
+# CONFIG_MTK_TOUCHPANEL is not set
+# CONFIG_MTK_TVOUT_SUPPORT is not set
+# CONFIG_MTK_UMTS_TDD128_MODE is not set
+# CONFIG_MTK_USBFSH is not set
+CONFIG_MTK_USB_GADGET=y
+# CONFIG_MTK_USB_UNIQUE_SERIAL is not set
+# CONFIG_MTK_VIBRATOR is not set
+# CONFIG_MTK_VIDEOCODEC_DRIVER is not set
+# CONFIG_MTK_VIDEO_HEVC_SUPPORT is not set
+# CONFIG_MTK_WAPI_SUPPORT is not set
+CONFIG_MTK_WD_KICKER=y
+# CONFIG_MTK_WD_KICKER_WCN is not set
+# CONFIG_MTK_WFD_SUPPORT is not set
+# CONFIG_MTK_WIRELESS_CHARGER_SUPPORT is not set
+CONFIG_MTK_WLAN_CHIP="CONSYS_7623"
+CONFIG_MTK_WLAN_SUPPORT=y
+CONFIG_MTK_WQ_DEBUG=y
+# CONFIG_MTK_XHCI is not set
+# CONFIG_MTPROF_IRQ_DURATION is not set
+CONFIG_MT_AP_SUPPORT=y
+CONFIG_MT_CHRDEV_REG=y
+CONFIG_MT_DFS_SUPPORT=y
+CONFIG_MT_ENG_BUILD=y
+# CONFIG_MT_LOAD_BALANCE_ENHANCEMENT is not set
+# CONFIG_MT_LOCK_DEBUG is not set
+CONFIG_MT_MAC=y
+# CONFIG_MT_PRIO_TRACER is not set
+# CONFIG_MT_RT_SCHED_CRIT is not set
+# CONFIG_MT_RT_SCHED_LOG is not set
+CONFIG_MT_SCHED=y
+# CONFIG_MT_SCHED_DEBUG_ONLY is not set
+# CONFIG_MT_SCHED_MONITOR is not set
+# CONFIG_MT_SCHED_NOTICE is not set
+CONFIG_MT_WIFI=y
+CONFIG_MT_WIFI_PATH="mt_wifi"
+# CONFIG_MU3_PHY is not set
+CONFIG_MULTIPLE_MU3H_PORT=y
+CONFIG_MULTI_INF_SUPPORT=y
+CONFIG_MUMIMO_SUPPORT=y
+# CONFIG_MUSBFSH_PIO_ONLY is not set
+CONFIG_MUTEX_SPIN_ON_OWNER=y
+CONFIG_MU_RA_SUPPORT=y
+# CONFIG_MWIFIEX is not set
+CONFIG_NAND_OTP_SUPPORT=y
+# CONFIG_NAT_FCONE is not set
+CONFIG_NAT_LINUX=y
+# CONFIG_NAT_RCONE is not set
+CONFIG_NEED_DMA_MAP_STATE=y
+CONFIG_NEED_MACH_IO_H=y
+CONFIG_NEED_MACH_MEMORY_H=y
+CONFIG_NEON=y
+CONFIG_NETFILTER=y
+CONFIG_NETFILTER_ADVANCED=y
+CONFIG_NETFILTER_NETLINK=m
+CONFIG_NETFILTER_NETLINK_LOG=m
+# CONFIG_NETFILTER_RALINK_SWQOS_SUPPORT is not set
+CONFIG_NETFILTER_XTABLES=m
+# CONFIG_NETFILTER_XT_MATCH_QUOTA2 is not set
+CONFIG_NETFILTER_XT_SET=m
+# CONFIG_NETPRIO_CGROUP is not set
+CONFIG_NET_ACTIVITY_STATS=y
+# CONFIG_NET_CLS_CGROUP is not set
+CONFIG_NET_KEY=y
+# CONFIG_NET_VENDOR_SILICOM is not set
+CONFIG_NF_CONNTRACK=m
+CONFIG_NF_CONNTRACK_MARK=y
+# CONFIG_NF_DEFRAG_IPV6 is not set
+CONFIG_NF_SHORTCUT_HOOK=y
+CONFIG_NL80211_TESTMODE=y
+CONFIG_NLS=y
+CONFIG_NLS_CODEPAGE_437=m
+CONFIG_NLS_CODEPAGE_936=m
+CONFIG_NLS_CODEPAGE_950=m
+CONFIG_NLS_UTF8=y
+CONFIG_NOP_USB_XCEIV=m
+CONFIG_NO_HZ_COMMON=y
+CONFIG_NO_HZ_IDLE=y
+CONFIG_NR_CPUS=4
+# CONFIG_NT35517_QHD_DSI_VIDEO is not set
+# CONFIG_NT35521_WXGA_DSI_VDO_HH060IA is not set
+# CONFIG_NT35590_HD720_DSI_CMD_AUO is not set
+# CONFIG_NT51012_WXGA_DSI_VDO is not set
+CONFIG_OABI_COMPAT=y
+CONFIG_OLD_SIGACTION=y
+CONFIG_OLD_SIGSUSPEND3=y
+CONFIG_PAGEFLAGS_EXTENDED=y
+CONFIG_PAGE_OFFSET=0xC0000000
+CONFIG_PANIC_TIMEOUT=0
+# CONFIG_PARTITION_ADVANCED is not set
+# CONFIG_PASSPOINT_R2 is not set
+CONFIG_PCI=y
+CONFIG_PCIE_PORT0=y
+CONFIG_PCIE_PORT1=y
+CONFIG_PDMA_NEW=y
+# CONFIG_PERFSTATS_PERTASK is not set
+CONFIG_PERF_USE_VMALLOC=y
+CONFIG_PM=y
+CONFIG_PM_AUTOSLEEP=y
+# CONFIG_PM_DEBUG is not set
+CONFIG_PM_SLEEP=y
+CONFIG_PM_SLEEP_SMP=y
+CONFIG_POWER_EXT=y
+CONFIG_POWER_SUPPLY=y
+# CONFIG_PPE_MCAST is not set
+CONFIG_PPP=m
+CONFIG_PPPOE=m
+# CONFIG_PPPOLAC is not set
+CONFIG_PPPOPNS=m
+CONFIG_PREEMPT=y
+CONFIG_PREEMPT_COUNT=y
+# CONFIG_PREEMPT_MONITOR is not set
+# CONFIG_PREEMPT_NONE is not set
+CONFIG_PREEMPT_RCU=y
+CONFIG_PRINTK_PROCESS_INFO=y
+CONFIG_PRINTK_TIME=y
+# CONFIG_PURE_AP_USE_EXTERNAL_MODEM is not set
+# CONFIG_PWR_LOSS_MTK_TEST is not set
+# CONFIG_RADIUS_ACCOUNTING_SUPPORT is not set
+CONFIG_RAETH=y
+CONFIG_RAETH_CHECKSUM_OFFLOAD=y
+# CONFIG_RAETH_DVT is not set
+CONFIG_RAETH_GMAC2=y
+CONFIG_RAETH_HW_LRO=y
+# CONFIG_RAETH_HW_LRO_DBG is not set
+CONFIG_RAETH_HW_VLAN_TX=y
+# CONFIG_RAETH_LRO is not set
+# CONFIG_RAETH_NAPI is not set
+CONFIG_RAETH_QDMA=y
+CONFIG_RAETH_SCATTER_GATHER_RX_DMA=y
+# CONFIG_RAETH_SKB_RECYCLE_2K is not set
+# CONFIG_RAETH_SPECIAL_TAG is not set
+CONFIG_RAETH_TSO=y
+# CONFIG_RAETH_TSOV6 is not set
+# CONFIG_RAETH_TSO_DBG is not set
+CONFIG_RAETH_TX_RX_INT_SEPARATION=y
+# CONFIG_RALINK_GDMA is not set
+# CONFIG_RALINK_HSDMA is not set
+# CONFIG_RALINK_I2C is not set
+# CONFIG_RALINK_I2C_CODEC is not set
+# CONFIG_RALINK_I2S is not set
+# CONFIG_RALINK_PCM is not set
+CONFIG_RALINK_RDM=y
+# CONFIG_RALINK_SPI is not set
+CONFIG_RAMDISK_OFFSET=0xF00000
+CONFIG_RATE_ADAPTION=y
+CONFIG_RATE_ADAPT_AGBS_SUPPORT=y
+CONFIG_RA_HW_NAT=m
+# CONFIG_RA_HW_NAT_ACCNT_MAINTAINER is not set
+CONFIG_RA_HW_NAT_BINDING_THRESHOLD=30
+CONFIG_RA_HW_NAT_FIN_DLTA=5
+# CONFIG_RA_HW_NAT_HASH0 is not set
+CONFIG_RA_HW_NAT_HASH1=y
+# CONFIG_RA_HW_NAT_HASH2 is not set
+# CONFIG_RA_HW_NAT_HASH3 is not set
+# CONFIG_RA_HW_NAT_HASH_DBG is not set
+CONFIG_RA_HW_NAT_IPV6=y
+CONFIG_RA_HW_NAT_LAN_VLANID=1
+# CONFIG_RA_HW_NAT_NIC_USB is not set
+CONFIG_RA_HW_NAT_NTU_DLTA=5
+CONFIG_RA_HW_NAT_NTU_KA=1
+# CONFIG_RA_HW_NAT_PACKET_SAMPLING is not set
+# CONFIG_RA_HW_NAT_PREBIND is not set
+# CONFIG_RA_HW_NAT_TBL_16K is not set
+# CONFIG_RA_HW_NAT_TBL_1K is not set
+# CONFIG_RA_HW_NAT_TBL_2K is not set
+CONFIG_RA_HW_NAT_TBL_4K=y
+# CONFIG_RA_HW_NAT_TBL_8K is not set
+CONFIG_RA_HW_NAT_TCP_DLTA=5
+CONFIG_RA_HW_NAT_TCP_KA=1
+CONFIG_RA_HW_NAT_UDP_DLTA=5
+CONFIG_RA_HW_NAT_UDP_KA=1
+CONFIG_RA_HW_NAT_UNB_DLTA=3
+CONFIG_RA_HW_NAT_UNB_MNP=1000
+CONFIG_RA_HW_NAT_WAN_VLANID=2
+CONFIG_RA_HW_NAT_WIFI=y
+# CONFIG_RA_HW_NAT_WIFI_NEW_ARCH is not set
+CONFIG_RA_NAT_HW=y
+# CONFIG_RA_NAT_NONE is not set
+CONFIG_RA_NETWORK_TASKLET_BH=y
+# CONFIG_RA_NETWORK_WORKQUEUE_BH is not set
+# CONFIG_RCU_BOOST is not set
+CONFIG_RCU_CPU_STALL_VERBOSE=y
+CONFIG_RCU_STALL_COMMON=y
+CONFIG_RED_SUPPORT=y
+# CONFIG_RESOURCE_COUNTERS is not set
+CONFIG_RESTART_DISABLE_CACHE=y
+CONFIG_RFS_ACCEL=y
+CONFIG_RF_LOCKDOWN_SUPPORT=y
+# CONFIG_RIRST_IF_EEPROM_EFUSE is not set
+CONFIG_RLM_CAL_CACHE_SUPPORT=y
+# CONFIG_RLT_MAC is not set
+CONFIG_RPS=y
+CONFIG_RTC_CLASS=y
+CONFIG_RTDEV=y
+CONFIG_RTMP_FLASH_SUPPORT=y
+# CONFIG_RTMP_MAC is not set
+CONFIG_RT_3052_ESW=y
+CONFIG_RT_FIRST_CARD="7615e"
+CONFIG_RT_FIRST_CARD_EEPROM="flash"
+CONFIG_RT_FIRST_IF_RF_OFFSET=0x0
+CONFIG_RT_GROUP_SCHED=y
+CONFIG_RT_SECOND_CARD="7615e"
+CONFIG_RT_SECOND_CARD_EEPROM="flash"
+CONFIG_RT_SECOND_IF_RF_OFFSET=0x8000
+CONFIG_RT_THIRD_CARD="7615e"
+CONFIG_RT_THIRD_CARD_EEPROM="flash"
+CONFIG_RT_THIRD_IF_RF_OFFSET=0x10000
+# CONFIG_SAMSUNG_USB2PHY is not set
+# CONFIG_SAMSUNG_USB3PHY is not set
+# CONFIG_SAMSUNG_USBPHY is not set
+CONFIG_SCHED_HRTICK=y
+CONFIG_SCSI=m
+CONFIG_SCSI_MOD=m
+# CONFIG_SDIOAUTOK_SUPPORT is not set
+# CONFIG_SECOND_IF_EEPROM_EFUSE is not set
+CONFIG_SECOND_IF_EEPROM_FLASH=y
+# CONFIG_SECOND_IF_EEPROM_PROM is not set
+CONFIG_SECOND_IF_EPAELNA=y
+# CONFIG_SECOND_IF_IPAELNA is not set
+# CONFIG_SECOND_IF_IPAILNA is not set
+# CONFIG_SECOND_IF_MT7602E is not set
+# CONFIG_SECOND_IF_MT7603E is not set
+# CONFIG_SECOND_IF_MT7610E is not set
+# CONFIG_SECOND_IF_MT7610U is not set
+# CONFIG_SECOND_IF_MT7612E is not set
+# CONFIG_SECOND_IF_MT7612U is not set
+CONFIG_SECOND_IF_MT7615E=y
+# CONFIG_SECOND_IF_MT7637E is not set
+# CONFIG_SECOND_IF_NONE is not set
+# CONFIG_SERIAL_AMBA_PL010 is not set
+# CONFIG_SERIAL_AMBA_PL011 is not set
+# CONFIG_SLAB is not set
+CONFIG_SLHC=m
+# CONFIG_SLIMPORT_ANX3618 is not set
+CONFIG_SLUB=y
+CONFIG_SMART_CARRIER_SENSE_SUPPORT=y
+CONFIG_SMP=y
+# CONFIG_SMP_ON_UP is not set
+CONFIG_SND=y
+# CONFIG_SND_EMU10K1_SEQ is not set
+# CONFIG_SND_OPL3_LIB_SEQ is not set
+# CONFIG_SND_OPL4_LIB_SEQ is not set
+CONFIG_SND_PCM=y
+CONFIG_SND_PCM_OSS=y
+# CONFIG_SND_RAWMIDI_SEQ is not set
+# CONFIG_SND_SBAWE_SEQ is not set
+CONFIG_SND_TIMER=y
+# CONFIG_SOC_BY_AUXADC is not set
+# CONFIG_SOC_BY_EXT_HW_FG is not set
+# CONFIG_SOC_BY_HW_FG is not set
+# CONFIG_SOC_BY_SW_FG is not set
+CONFIG_SOUND=y
+CONFIG_SOUND_OSS_CORE=y
+CONFIG_SOUND_OSS_CORE_PRECLAIM=y
+CONFIG_SPLICE_NET_SUPPORT=y
+CONFIG_STACKTRACE=y
+# CONFIG_STOP_CHARGING_IN_TAKLING is not set
+CONFIG_STOP_MACHINE=y
+CONFIG_SUSPEND=y
+CONFIG_SUSPEND_FREEZER=y
+# CONFIG_SUSPEND_TIME is not set
+CONFIG_SWAP=y
+# CONFIG_SWCHR_POWER_PATH is not set
+CONFIG_SWITCH=y
+CONFIG_SWP_EMULATE=y
+CONFIG_SW_SYNC=y
+CONFIG_SW_SYNC_USER=y
+CONFIG_SYNC=y
+CONFIG_SYS_SUPPORTS_APM_EMULATION=y
+CONFIG_THERMAL=y
+CONFIG_THERMAL_DEFAULT_GOV_BACKWARD_COMPATIBLE=y
+# CONFIG_THERMAL_DEFAULT_GOV_FAIR_SHARE is not set
+# CONFIG_THERMAL_DEFAULT_GOV_STEP_WISE is not set
+# CONFIG_THERMAL_DEFAULT_GOV_USER_SPACE is not set
+# CONFIG_THERMAL_EMULATION is not set
+# CONFIG_THERMAL_GOV_FAIR_SHARE is not set
+# CONFIG_THERMAL_GOV_STEP_WISE is not set
+# CONFIG_THERMAL_GOV_USER_SPACE is not set
+CONFIG_THERMAL_HWMON=y
+# CONFIG_THIRD_IF_EEPROM_EFUSE is not set
+CONFIG_THIRD_IF_EEPROM_FLASH=y
+# CONFIG_THIRD_IF_EEPROM_PROM is not set
+CONFIG_THIRD_IF_EPAELNA=y
+# CONFIG_THIRD_IF_IPAELNA is not set
+# CONFIG_THIRD_IF_IPAILNA is not set
+CONFIG_THIRD_IF_MT7615E=y
+# CONFIG_THIRD_IF_NONE is not set
+# CONFIG_THUMB2_KERNEL is not set
+CONFIG_TICK_CPU_ACCOUNTING=y
+# CONFIG_TOUCHSCREEN_ATMEL_MXT is not set
+# CONFIG_TOUCHSCREEN_BU21013 is not set
+# CONFIG_TOUCHSCREEN_CYPRESS_CYTTSP4 is not set
+# CONFIG_TOUCHSCREEN_DYNAPRO is not set
+# CONFIG_TOUCHSCREEN_HAMPSHIRE is not set
+# CONFIG_TOUCHSCREEN_MAX11801 is not set
+# CONFIG_TOUCHSCREEN_MTK_SUPPORT is not set
+# CONFIG_TOUCHSCREEN_PIXCIR is not set
+# CONFIG_TOUCHSCREEN_ST1232 is not set
+# CONFIG_TOUCHSCREEN_TSC_SERIO is not set
+CONFIG_TPC_SUPPORT=y
+CONFIG_TREE_PREEMPT_RCU=y
+# CONFIG_TRUSTONIC_TEE_SUPPORT is not set
+CONFIG_TXBF_SUPPORT=y
+CONFIG_UAPSD=y
+CONFIG_UBIFS_FS=y
+CONFIG_UBIFS_FS_ADVANCED_COMPR=y
+# CONFIG_UBIFS_FS_LZ4K is not set
+CONFIG_UBIFS_FS_LZO=y
+CONFIG_UBIFS_FS_ZLIB=y
+CONFIG_UID16=y
+CONFIG_UIDGID_CONVERTED=y
+# CONFIG_UIDGID_STRICT_TYPE_CHECKS is not set
+# CONFIG_UID_STAT is not set
+CONFIG_UNCOMPRESS_INCLUDE="mach/uncompress.h"
+CONFIG_UNINLINE_SPIN_UNLOCK=y
+CONFIG_USB=y
+CONFIG_USB_ACM=y
+CONFIG_USB_ARCH_HAS_XHCI=y
+# CONFIG_USB_AUDIO is not set
+CONFIG_USB_COMMON=y
+CONFIG_USB_DEBUG=y
+# CONFIG_USB_EHCI_HCD is not set
+# CONFIG_USB_ETH is not set
+CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_VBUS_DRAW=500
+# CONFIG_USB_MTK_ACM_TEMP is not set
+CONFIG_USB_MTK_DEBUG=y
+# CONFIG_USB_MTK_DEBUG_FS is not set
+# CONFIG_USB_MTK_DUALMODE is not set
+# CONFIG_USB_MTK_HDRC is not set
+# CONFIG_USB_MTK_HDRC_GADGET is not set
+# CONFIG_USB_MTK_HDRC_HCD is not set
+CONFIG_USB_MTK_OTG=y
+# CONFIG_USB_MU3D_DRV is not set
+# CONFIG_USB_MU3D_DVT is not set
+# CONFIG_USB_MU3D_PIO_ONLY is not set
+CONFIG_USB_MU3H=y
+CONFIG_USB_MU3H_DRV=y
+# CONFIG_USB_MU3H_TEST_DRV is not set
+# CONFIG_USB_OTG_WAKELOCK is not set
+CONFIG_USB_PHY=y
+CONFIG_USB_PRINTER=y
+CONFIG_USB_SUPPORT=y
+# CONFIG_USB_UHCI_HCD is not set
+# CONFIG_USB_XHCI_DEBUGGING is not set
+CONFIG_USE_GENERIC_SMP_HELPERS=y
+CONFIG_VECTORS_BASE=0xffff0000
+CONFIG_VFP=y
+CONFIG_VFPv3=y
+CONFIG_VM_EVENT_COUNTERS=y
+CONFIG_VOW_SUPPORT=y
+CONFIG_WAKELOCK=y
+# CONFIG_WAN_AT_P0 is not set
+CONFIG_WAN_AT_P4=y
+# CONFIG_WATCHDOG is not set
+CONFIG_WDS_SUPPORT=y
+CONFIG_WIFI_BASIC_FUNC=y
+# CONFIG_WIFI_CONTROL_FUNC is not set
+CONFIG_WIFI_DRIVER=y
+CONFIG_WIFI_MODE_AP=y
+# CONFIG_WIFI_MODE_BOTH is not set
+# CONFIG_WIFI_MODE_STA is not set
+CONFIG_WIFI_PKT_FWD=y
+CONFIG_WSC_INCLUDED=y
+CONFIG_WSC_V2_SUPPORT=y
+CONFIG_XFRM_ALGO=y
+CONFIG_XFRM_USER=y
+# CONFIG_XHCI_DEV_NOTE is not set
+# CONFIG_XHCI_PM is not set
+CONFIG_XPS=y
+CONFIG_XZ_DEC_ARM=y
+CONFIG_XZ_DEC_ARMTHUMB=y
+CONFIG_XZ_DEC_BCJ=y
+CONFIG_ZBOOT_ROM_BSS=0
+CONFIG_ZBOOT_ROM_TEXT=0
+CONFIG_ZLIB_DEFLATE=y
+CONFIG_ZLIB_INFLATE=y
+CONFIG_ZONE_DMA_FLAG=0
+CONFIG_ZRAM=y
+CONFIG_ZRAM_DEBUG=y
+CONFIG_ZSMALLOC=y
diff --git a/target/linux/mediatek/mt7623_mtd/profiles/00-default.mk b/target/linux/mediatek/mt7623_mtd/profiles/00-default.mk
new file mode 100755
index 0000000..5ce341b
--- /dev/null
+++ b/target/linux/mediatek/mt7623_mtd/profiles/00-default.mk
@@ -0,0 +1,27 @@
+#
+# Copyright (C) 2015 MediaTek
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+define Profile/MT7623_MTD
+ NAME:=Default Profile
+ PACKAGES:=\
+ -swconfig -rt2x00 \
+ ated hwnat switch uci2dat mii_mgr 8021xd e2fsprogs luci mpstat reg nvram qdma \
+ wireless-tools block-mount fstools kmod-scsi-generic \
+ kmod-nf-sc \
+ kmod-usb-core kmod-usb-storage \
+ kmod-fs-vfat kmod-fs-ext4 kmod-fs-ntfs \
+ kmod-nls-base kmod-nls-utf8 kmod-nls-cp936 \
+ kmod-nls-cp437 kmod-nls-cp850 kmod-nls-iso8859-1 kmod-nls-iso8859-15 kmod-nls-cp950
+endef
+
+
+define Profile/MT7623_MTD/Description
+ Basic MT7623 SoC support
+endef
+$(eval $(call Profile,MT7623_MTD))
+
+
diff --git a/target/linux/mediatek/mt7623_mtd/target.mk b/target/linux/mediatek/mt7623_mtd/target.mk
new file mode 100755
index 0000000..7b62975
--- /dev/null
+++ b/target/linux/mediatek/mt7623_mtd/target.mk
@@ -0,0 +1,17 @@
+#
+# Copyright (C) 2015 MediaTek
+#
+
+SUBTARGET:=mt7623_mtd
+BOARDNAME:=MT7623 based boards (Nand/Nor Flash)
+ARCH_PACKAGES:=arm
+FEATURES+=usb fpu
+CPU_TYPE:=cortex-a7
+CPU_SUBTYPE:=vfp
+
+DEFAULT_PACKAGES +=
+
+define Target/Description
+ Build firmware images for Ralink MT7623 based boards.
+endef
+
diff --git a/target/linux/mediatek/patches/mt7623-nand-workaround.patch b/target/linux/mediatek/patches/mt7623-nand-workaround.patch
new file mode 100644
index 0000000..7c73c74
--- /dev/null
+++ b/target/linux/mediatek/patches/mt7623-nand-workaround.patch
@@ -0,0 +1,39 @@
+Index: linux-3.10.20/drivers/misc/mediatek/nand/mt7623/mtk_nand.c
+===================================================================
+--- linux-3.10.20.orig/drivers/misc/mediatek/nand/mt7623/mtk_nand.c
++++ linux-3.10.20/drivers/misc/mediatek/nand/mt7623/mtk_nand.c
+@@ -6229,7 +6229,7 @@ static int mtk_nand_probe(struct platfor
+ nand_chip->read_buf = mtk_nand_read_buf;
+ nand_chip->write_buf = mtk_nand_write_buf;
+ #ifdef CONFIG_MTD_NAND_VERIFY_WRITE
+- nand_chip->verify_buf = mtk_nand_verify_buf;
++ nand_chip->verify_buf = NULL; //mtk_nand_verify_buf;
+ #endif
+ nand_chip->select_chip = mtk_nand_select_chip;
+ nand_chip->dev_ready = mtk_nand_dev_ready;
+@@ -6597,7 +6597,7 @@ static int mtk_nand_probe(struct platfor
+ part_init_pmt(mtd, (u8 *) & g_exist_Partition[0]);
+ err = mtd_device_register(mtd, g_exist_Partition, part_num);
+ #else
+- err = mtd_device_register(mtd, g_pasStatic_Partition, 7);
++ err = mtd_device_register(mtd, g_pasStatic_Partition, 8);
+ #endif
+
+ #ifdef _MTK_NAND_DUMMY_DRIVER_
+Index: linux-3.10.20/drivers/misc/mediatek/nand/mt7623/partition_mt.c
+===================================================================
+--- linux-3.10.20.orig/drivers/misc/mediatek/nand/mt7623/partition_mt.c
++++ linux-3.10.20/drivers/misc/mediatek/nand/mt7623/partition_mt.c
+@@ -83,7 +83,11 @@ struct mtd_partition g_pasStatic_Partiti
+ offset: MTDPART_OFS_APPEND
+ }, {
+ name: "firmware",
+- size: 0xe000000, // FIXME: size here should be revised for nand chips of different sizes.
++ size: 0x2000000, // big enough to contain sysupgrade image (kernel+rootfs)
++ offset: MTDPART_OFS_APPEND
++ }, {
++ name: "rootfs_data",
++ size: 0xc000000, // FIXME: size here should be revised for nand chips of different sizes.
+ offset: MTDPART_OFS_APPEND
+ }, {
+ name: "bmt", // reserve bmt area for bad block remapping