BOARD:=ramips
BOARDNAME:=MediaTek Ralink MIPS
SUBTARGETS:=rt305x mt7620 mt7621 mt7628 mt7688 rt3883 rt288x
-FEATURES:=squashfs gpio
+FEATURES:=squashfs gpio mips16
MAINTAINER:=John Crispin <john@phrozen.org>
KERNEL_PATCHVER:=4.4
set_usb_led "$board:orange:usb"
set_wifi_led "$board:orange:wifi"
;;
+gb-pc1|\
+ ucidef_set_led_default "$board:green:status"
+ ;;
gl-mt300a|\
gl-mt300n|\
gl-mt750)
ucidef_set_led_netdev "eth" "ETH" "$board:orange:eth" "eth0"
set_wifi_led "$board:green:status"
;;
-vocore2)
- set_wifi_led "$board:fuchsia:status"
- ;;
w502u)
set_usb_led "$board:blue:usb"
set_wifi_led "rt2800pci-phy0::radio"
microwrt|\
mpr-a2|\
ncs601w|\
- omega2 | \
- omega2p | \
timecloud|\
w150m|\
widora-neo|\
dir-320-b1|\
dir-610-a1|\
dir-615-h1|\
+ gb-pc1|\
firewrt|\
hlk-rm04|\
mac1200rv2|\
"0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "5@eth0"
;;
asl26555|\
+ re6500|\
rp-n53)
ucidef_add_switch "switch0" \
"1:lan" "2:lan" "3:lan" "4:lan" "6t@eth0"
"0:lan" "4:lan" "6t@eth0"
;;
newifi-d1)
+ ucidef_set_interface_lan_wan "eth0.1" "eth0.2"
ucidef_add_switch "switch0" \
- "1:lan:2" "2:lan:1" "4:wan" "6@eth0"
- ;;
- re6500)
- ucidef_add_switch "switch0" \
- "0:lan:1" "1:lan:2" "2:lan:3" "3:lan:4" "6@eth0"
+ "0:lan" "1:lan" "2:lan" "3:lan" "5:wan" "6t@eth0" "7t@eth0"
+ ucidef_add_switch "switch1" \
+ "4:lan" "6t@eth0" "7t@eth0"
;;
rt-n56u)
ucidef_add_switch "switch0" \
ucidef_add_switch "switch0" \
"1:lan" "2:lan" "3:lan" "4:lan" "5:wan" "0@eth0"
;;
- vocore2)
- ucidef_add_switch "switch0" \
- "0:lan" "2:lan" "6t@eth0"
- ;;
f5d8235-v1|\
tew-714tru|\
v11st-fe|\
lan_mac=$(cat /sys/class/net/eth0/address)
lan_mac=$(macaddr_add "$lan_mac" 2)
;;
- omega2|\
- omega2p)
- wan_mac=$(mtd_get_mac_binary factory 4)
- lan_mac=$(mtd_get_mac_binary factory 46)
- ;;
oy-0001)
lan_mac=$(mtd_get_mac_binary factory 40)
wan_mac=$(mtd_get_mac_binary factory 46)
dir-620-a1|\
dir-620-d1|\
dwr-512-b|\
+ gb-pc1|\
hpm|\
hw550-3g|\
mac1200rv2|\
newifi-d1)
status_led="$board:blue:status"
;;
- omega2| \
- omega2p)
- status_led="$board:amber:system"
- ;;
oy-0001|\
sl-r7205|\
zbt-we826)
v22rw-2x2)
status_led="$board:green:security"
;;
- vocore2)
- status_led="$board:fuchsia:status"
- ;;
w306r-v20|\
witi|\
zbt-wr8305rt)
*"FreeStation5")
name="freestation5"
;;
+ *"GB-PC1")
+ name="gb-pc1"
+ ;;
*"GL-MT300A")
name="gl-mt300a"
;;
*"NW718")
name="nw718"
;;
- *"Onion Omega2")
- name="omega2"
- ;;
- *"Onion Omega2+")
- name="omega2p"
- ;;
*"OY-0001")
name="oy-0001"
;;
*"VoCore (16M)")
name="vocore-16M"
;;
- *"VoCore2")
- name="vocore2"
- ;;
*"VR500")
name="vr500"
;;
firewrt|\
fonera20n|\
freestation5|\
+ gb-pc1|\
gl-mt300a|\
gl-mt300n|\
gl-mt750|\
newifi-d1|\
nixcore|\
nw718|\
- omega2|\
- omega2p|\
oy-0001|\
pbr-d1|\
pbr-m1|\
ur-336un|\
v22rw-2x2|\
vocore|\
- vocore2|\
vr500|\
w150m|\
w2914nsv2|\
--- /dev/null
+/dts-v1/;
+
+#include "mt7621.dtsi"
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
+/ {
+ compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
+ model = "GB-PC1";
+
+ memory@0 {
+ device_type = "memory";
+ reg = <0x0 0x1c000000>, <0x20000000 0x4000000>;
+ };
+
+ chosen {
+ bootargs = "console=ttyS0,57600";
+ };
+
+ sdhci@10130000 {
+ status = "okay";
+ };
+
+ palmbus@1E000000 {
+ spi@b00 {
+ status = "okay";
+
+ m25p80@0 {
+ #address-cells = <1>;
+ #size-cells = <1>;
+ compatible = "jedec,spi-nor";
+ reg = <0 0>;
+ linux,modalias = "m25p80";
+ spi-max-frequency = <10000000>;
+ m25p,chunked-io = <32>;
+
+ partition@0 {
+ label = "u-boot";
+ reg = <0x0 0x30000>;
+ read-only;
+ };
+
+ partition@30000 {
+ label = "u-boot-env";
+ reg = <0x30000 0x10000>;
+ };
+
+ partition@40000 {
+ label = "firmware";
+ reg = <0x50000 0x1fb0000>;
+ };
+
+ };
+ };
+
+ i2c@900 {
+ compatible = "ralink,i2c-mt7621";
+ reg = <0x900 0x100>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&i2c_pins>;
+ status = "okay";
+ };
+ };
+
+ pcie@1e140000 {
+ status = "okay";
+ };
+
+ ethernet@1e100000 {
+ status = "okay";
+ };
+
+ gpio-keys-polled {
+ compatible = "gpio-keys-polled";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ poll-interval = <20>;
+
+ reset {
+ label = "reset";
+ gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>;
+ linux,code = <KEY_RESTART>;
+ };
+ };
+
+ gpio-leds {
+ compatible = "gpio-leds";
+
+ status {
+ label = "gnubee:green:status";
+ gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>;
+ };
+
+ system {
+ label = "gnubee:green:system";
+ gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
+ };
+ };
+
+ gpio-power {
+ compatible = "gpio-power";
+
+ 26 {
+ label = "gnubee:power:gpio26";
+ gpios = <&gpio0 26 GPIO_ACTIVE_LOW>;
+ };
+
+ 28 {
+ label = "gnubee:power:gpio28";
+ gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>;
+ };
+
+ 29 {
+ label = "gnubee:power:gpio29";
+ gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
+ };
+
+ 30 {
+ label = "gnubee:power:gpio30";
+ gpios = <&gpio0 30 GPIO_ACTIVE_HIGH>;
+ };
+ };
+
+ pinctrl {
+ state_default: pinctrl0 {
+ gpio {
+ ralink,group = "wdt", "rgmii2", "mdio";
+ ralink,function = "gpio";
+ };
+ };
+ };
+};
+++ /dev/null
-/dts-v1/;
-
-#include "OMEGA2.dtsi"
-
-/ {
- model = "Onion Omega2";
-
- memory@0 {
- device_type = "memory";
- reg = <0x0 0x4000000>;
- };
-};
-
-&firmware {
- reg = <0x50000 0xfb0000>;
-};
-
-&system_led {
- label = "omega2:amber:system";
-};
+++ /dev/null
-#include "mt7628an.dtsi"
-
-#include <dt-bindings/gpio/gpio.h>
-#include <dt-bindings/input/input.h>
-
-/ {
- compatible = "onion,omega", "mediatek,mt7628an-soc";
-
- chosen {
- bootargs = "console=ttyS0,115200";
- };
-
- gpio-leds {
- compatible = "gpio-leds";
-
- system_led: system {
- gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
- };
- };
-
- gpio-keys-polled {
- compatible = "gpio-keys-polled";
- #address-cells = <1>;
- #size-cells = <0>;
- poll-interval = <20>;
-
- reset {
- label = "reset";
- gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
- linux,code = <KEY_RESTART>;
- };
- };
-};
-
-&pinctrl {
- state_default: pinctrl0 {
- gpio {
- ralink,group = "gpio";
- ralink,function = "gpio";
- };
-
- perst {
- ralink,group = "perst";
- ralink,function = "gpio";
- };
-
- refclk {
- ralink,group = "refclk";
- ralink,function = "gpio";
- };
-
- i2s {
- ralink,group = "i2s";
- ralink,function = "gpio";
- };
-
- spis {
- ralink,group = "spis";
- ralink,function = "gpio";
- };
-
- wled_kn {
- ralink,group = "wled_kn";
- ralink,function = "gpio";
- };
-
- wled_an {
- ralink,group = "wled_an";
- ralink,function = "gpio";
- };
-
- wdt {
- ralink,group = "wdt";
- ralink,function = "gpio";
- };
-
- pwm0 {
- ralink,group = "pwm0";
- ralink,function = "gpio";
- };
-
- pwm1 {
- ralink,group = "pwm1";
- ralink,function = "gpio";
- };
- };
-};
-
-&gpio1 {
- status = "okay";
-};
-
-&gpio2 {
- status = "okay";
-};
-
-&wmac {
- status = "okay";
-};
-
-&spi0 {
- status = "okay";
-
- pinctrl-names = "default";
- pinctrl-0 = <&spi_pins>, <&spi_cs1_pins>;
-
- m25p80@0 {
- #address-cells = <1>;
- #size-cells = <1>;
- compatible = "jedec,spi-nor";
- reg = <0>;
- spi-max-frequency = <40000000>;
- m25p,chunked-io = <31>;
-
- partition@0 {
- label = "u-boot";
- reg = <0x0 0x30000>;
- read-only;
- };
-
- partition@30000 {
- label = "u-boot-env";
- reg = <0x30000 0x10000>;
- read-only;
- };
-
- factory: partition@40000 {
- label = "factory";
- reg = <0x40000 0x10000>;
- read-only;
- };
-
- firmware: partition@50000 {
- label = "firmware";
- };
- };
-
- spidev@1 {
- #address-cells = <1>;
- #size-cells = <1>;
- compatible = "linux,spidev";
- reg = <1>;
- spi-max-frequency = <40000000>;
- };
-};
-
-&i2c {
- status = "okay";
-};
-
-&uart1 {
- status = "okay";
-};
-
-&uart2 {
- status = "okay";
-};
-
-ðernet {
- mtd-mac-address = <&factory 0x28>;
-};
-
-&sdhci {
- status = "okay";
- mediatek,cd-low;
-};
-
-&wmac {
- status = "okay";
-};
+++ /dev/null
-/dts-v1/;
-
-#include "OMEGA2.dtsi"
-
-/ {
- model = "Onion Omega2+";
-
- memory@0 {
- device_type = "memory";
- reg = <0x0 0x8000000>;
- };
-};
-
-&firmware {
- reg = <0x50000 0x1fb0000>;
-};
-
-&system_led {
- label = "omega2p:amber:system";
-};
+++ /dev/null
-/dts-v1/;
-
-#include "mt7628an.dtsi"
-
-#include <dt-bindings/gpio/gpio.h>
-#include <dt-bindings/input/input.h>
-
-/ {
- compatible = "vocore,VoCore2", "mediatek,mt7628an-soc";
- model = "VoCore2";
-
- chosen {
- bootargs = "console=ttyS2,115200";
- };
-
- memory@0 {
- device_type = "memory";
- reg = <0x0 0x4000000>;
- };
-
- gpio-leds {
- compatible = "gpio-leds";
-
- status {
- label = "vocore2:fuchsia:status";
- gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
- };
- };
-};
-
-&pinctrl {
- state_default: pinctrl0 {
- gpio {
- ralink,group = "refclk", "gpio";
- ralink,function = "gpio";
- };
-
- agpio {
- ralink,group = "agpio";
- ralink,function = "uart2";
- };
- };
-
- uart1_pins: uart1 {
- uart1 {
- ralink,group = "uart1";
- ralink,function = "uart1";
- };
- };
-
- uart2_pins: uart2 {
- uart2 {
- ralink,group = "spis";
- ralink,function = "pwm";
- };
- };
-};
-
-&wmac {
- status = "okay";
- ralink,mtd-eeprom = <&factory 0x4>;
-};
-
-&spi0 {
- status = "okay";
-
- m25p80@0 {
- #address-cells = <1>;
- #size-cells = <1>;
- compatible = "jedec,spi-nor";
- reg = <0>;
- spi-max-frequency = <10000000>;
- m25p,chunked-io = <32>;
-
- partition@0 {
- label = "u-boot";
- reg = <0x0 0x30000>;
- read-only;
- };
-
- partition@30000 {
- label = "u-boot-env";
- reg = <0x30000 0x10000>;
- read-only;
- };
-
- factory: partition@40000 {
- label = "factory";
- reg = <0x40000 0x10000>;
- read-only;
- };
-
- partition@50000 {
- label = "firmware";
- reg = <0x50000 0xfb0000>;
- };
- };
-};
-
-&esw {
- mediatek,portmap = <0x7>;
- mediatek,portdisable = <0x3a>;
-};
-
-&i2s {
- status = "okay";
-};
-
-&gdma {
- status = "okay";
-};
-
-&pwm {
- status = "okay";
-};
-
-&uart1 {
- status = "okay";
-};
-
-&uart2 {
- status = "okay";
-};
};
partition@50000 {
- label = "firmware";
+ label = "linux";
reg = <0x50000 0x3b0000>;
};
};
mtd-mac-address = <&factory 0x4>;
port@0 {
- mediatek,fixed-link = <100 1 1 1>;
- };
-
- mdio-bus {
- status = "okay";
-
- phy0: ethernet-phy@0 {
- phy-mode = "mii";
- reg = <0>;
- };
+ mediatek,fixed-link = <1000 1 1 1>;
};
};
};
};
-&pcie {
- status = "okay";
-
- pcie0 {
- rt5592@0,0 {
- reg = <0x0000 0 0 0 0>;
- device_type = "pci";
- ralink,mtd-eeprom = <&factory 0x8000>;
- };
- };
-
- pcie1 {
- mt76@1,0 {
- reg = <0x0000 0 0 0 0>;
- device_type = "pci";
- mediatek,mtd-eeprom = <&factory 0x0000>;
- mediatek,5ghz = <0>;
- };
- };
-};
-
&xhci {
status = "disabled";
};
+++ /dev/null
-#
-# MT7620A Profiles
-#
-
-define Build/tplink-header
- $(STAGING_DIR_HOST)/bin/mktplinkfw2 -a 0x4 -V "ver. 2.0" -B $(1) \
- -o $@.new -k $@ -r $(IMAGE_ROOTFS) && mv $@.new $@
-endef
-
-define Build/pad-kernel-ex2700
- cp $@ $@.tmp && dd if=/dev/zero bs=64 count=1 >> $@.tmp \
- && dd if=$@.tmp of=$@.new bs=64k conv=sync && truncate -s -64 $@.new \
- && cat ex2700-fakeroot.uImage >> $@.new && rm $@.tmp && mv $@.new $@
-endef
-
-define Build/netgear-header
- $(STAGING_DIR_HOST)/bin/mkdniimg \
- $(1) -v OpenWrt -i $@ \
- -o $@.new && mv $@.new $@
-endef
-
-define Build/elecom-header
- cp $@ $(KDIR)/v_0.0.0.bin
- ( \
- mkhash md5 $(KDIR)/v_0.0.0.bin && \
- echo 458 \
- ) | mkhash md5 > $(KDIR)/v_0.0.0.md5
- $(STAGING_DIR_HOST)/bin/tar -cf $@ -C $(KDIR) v_0.0.0.bin v_0.0.0.md5
-endef
-
-define Build/zyimage
- $(STAGING_DIR_HOST)/bin/zyimage $(1) $@
-endef
-
-define Device/ArcherC20i
- DTS := ArcherC20i
- SUPPORTED_DEVICES := c20i
- KERNEL := $(KERNEL_DTB)
- KERNEL_INITRAMFS := $(KERNEL_DTB) | tplink-header ArcherC20i -c
- IMAGE/sysupgrade.bin := append-kernel | tplink-header ArcherC20i -j | append-metadata
- DEVICE_TITLE := TP-Link ArcherC20i
-endef
-TARGET_DEVICES += ArcherC20i
-
-define Device/ArcherC50
- DTS := ArcherC50
- SUPPORTED_DEVICES := c50
- KERNEL := $(KERNEL_DTB)
- KERNEL_INITRAMFS := $(KERNEL_DTB) | tplink-header ArcherC50 -c
- IMAGE/sysupgrade.bin := append-kernel | tplink-header ArcherC50 -j | append-metadata
- DEVICE_TITLE := TP-Link ArcherC50
-endef
-TARGET_DEVICES += ArcherC50
-
-define Device/ArcherMR200
- DTS := ArcherMR200
- SUPPORTED_DEVICES := mr200
- KERNEL := $(KERNEL_DTB)
- KERNEL_INITRAMFS := $(KERNEL_DTB) | tplink-header ArcherMR200 -c
- IMAGE/sysupgrade.bin := append-kernel | tplink-header ArcherMR200 -j | append-metadata
- DEVICE_PACKAGES := kmod-usb2 kmod-usb-net kmod-usb-net-rndis kmod-usb-serial kmod-usb-serial-option adb
- DEVICE_TITLE := TP-Link ArcherMR200
-endef
-TARGET_DEVICES += ArcherMR200
-
-define Device/ex2700
- DTS := EX2700
- BLOCKSIZE := 4k
- IMAGE_SIZE := $(ralink_default_fw_size_4M)
- IMAGES += factory.bin
- KERNEL := $(KERNEL_DTB) | uImage lzma | pad-kernel-ex2700
- IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
- netgear-header -B EX2700 -H 29764623+4+0+32+2x2+0
- DEVICE_TITLE := Netgear EX2700
-endef
-TARGET_DEVICES += ex2700
-
-define Device/wt3020-4M
- DTS := WT3020-4M
- BLOCKSIZE := 4k
- IMAGE_SIZE := $(ralink_default_fw_size_4M)
- IMAGES += factory.bin
- IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
- poray-header -B WT3020 -F 4M
- DEVICE_TITLE := Nexx WT3020 (4MB)
-endef
-TARGET_DEVICES += wt3020-4M
-
-define Device/wt3020-8M
- DTS := WT3020-8M
- IMAGES += factory.bin
- IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
- poray-header -B WT3020 -F 8M
- DEVICE_TITLE := Nexx WT3020 (8MB)
-endef
-TARGET_DEVICES += wt3020-8M
-
-define Device/wrh-300cr
- DTS := WRH-300CR
- IMAGE_SIZE := $(ralink_default_fw_size_16M)
- IMAGES += factory.bin
- IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
- elecom-header
- DEVICE_TITLE := Elecom WRH-300CR
- DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
-endef
-TARGET_DEVICES += wrh-300cr
-
-define Device/e1700
- DTS := E1700
- IMAGES += factory.bin
- IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
- umedia-header 0x013326
- DEVICE_TITLE := Linksys E1700
-endef
-TARGET_DEVICES += e1700
-
-define Device/ai-br100
- DTS := AI-BR100
- IMAGE_SIZE := 7936k
- DEVICE_TITLE := Aigale Ai-BR100
- DEVICE_PACKAGES:= kmod-usb2 kmod-usb-ohci
-endef
-TARGET_DEVICES += ai-br100
-
-define Device/whr-300hp2
- DTS := WHR-300HP2
- IMAGE_SIZE := 6848k
- DEVICE_TITLE := Buffalo WHR-300HP2
-endef
-TARGET_DEVICES += whr-300hp2
-
-define Device/whr-600d
- DTS := WHR-600D
- IMAGE_SIZE := 6848k
- DEVICE_TITLE := Buffalo WHR-600D
-endef
-TARGET_DEVICES += whr-600d
-
-define Device/whr-1166d
- DTS := WHR-1166D
- IMAGE_SIZE := 15040k
- DEVICE_TITLE := Buffalo WHR-1166D
-endef
-TARGET_DEVICES += whr-1166d
-
-define Device/dir-810l
- DTS := DIR-810L
- IMAGE_SIZE := 6720k
- DEVICE_TITLE := D-Link DIR-810L
-endef
-TARGET_DEVICES += dir-810l
-
-define Device/na930
- DTS := NA930
- IMAGE_SIZE := 20m
- DEVICE_TITLE := Sercomm NA930
-endef
-TARGET_DEVICES += na930
-
-define Device/microwrt
- DTS := MicroWRT
- IMAGE_SIZE := 16128k
- DEVICE_TITLE := Microduino MicroWRT
-endef
-TARGET_DEVICES += microwrt
-
-define Device/mt7620a
- DTS := MT7620a
- DEVICE_TITLE := MediaTek MT7620a EVB
-endef
-TARGET_DEVICES += mt7620a
-
-define Device/mt7620a_mt7610e
- DTS := MT7620a_MT7610e
- DEVICE_TITLE := MediaTek MT7620a + MT7610e EVB
-endef
-TARGET_DEVICES += mt7620a_mt7610e
-
-define Device/mt7620a_mt7530
- DTS := MT7620a_MT7530
- DEVICE_TITLE := MediaTek MT7620a + MT7530 EVB
-endef
-TARGET_DEVICES += mt7620a_mt7530
-
-define Device/mt7620a_v22sg
- DTS := MT7620a_V22SG
- DEVICE_TITLE := MediaTek MT7620a V22SG
-endef
-TARGET_DEVICES += mt7620a_v22sg
-
-define Device/rp-n53
- DTS := RP-N53
- DEVICE_TITLE := Asus RP-N53
-endef
-TARGET_DEVICES += rp-n53
-
-define Device/cf-wr800n
- DTS := CF-WR800N
- DEVICE_TITLE := Comfast CF-WR800N
-endef
-TARGET_DEVICES += cf-wr800n
-
-define Device/cs-qr10
- DTS := CS-QR10
- DEVICE_TITLE := Planex CS-QR10
- DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-i2c-core kmod-i2c-ralink kmod-sound-core kmod-sound-mtk kmod-sdhci-mt7620
-endef
-TARGET_DEVICES += cs-qr10
-
-define Device/db-wrt01
- DTS := DB-WRT01
- DEVICE_TITLE := Planex DB-WRT01
-endef
-TARGET_DEVICES += db-wrt01
-
-define Device/mzk-750dhp
- DTS := MZK-750DHP
- DEVICE_TITLE := Planex MZK-750DHP
- DEVICE_PACKAGES := kmod-mt76
-endef
-TARGET_DEVICES += mzk-750dhp
-
-define Device/mzk-ex300np
- DTS := MZK-EX300NP
- DEVICE_TITLE := Planex MZK-EX300NP
-endef
-TARGET_DEVICES += mzk-ex300np
-
-define Device/mzk-ex750np
- DTS := MZK-EX750NP
- DEVICE_TITLE := Planex MZK-EX750NP
- DEVICE_PACKAGES := kmod-mt76
-endef
-TARGET_DEVICES += mzk-ex750np
-
-define Device/hc5661
- DTS := HC5661
- IMAGE_SIZE := $(ralink_default_fw_size_16M)
- DEVICE_TITLE := HiWiFi HC5661
- DEVICE_PACKAGES := kmod-usb2 kmod-sdhci kmod-sdhci-mt7620 kmod-usb-ledtrig-usbport
-endef
-TARGET_DEVICES += hc5661
-
-define Device/hc5761
- DTS := HC5761
- IMAGE_SIZE := $(ralink_default_fw_size_16M)
- DEVICE_TITLE := HiWiFi HC5761
- DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-sdhci kmod-sdhci-mt7620 kmod-usb-ledtrig-usbport
-endef
-TARGET_DEVICES += hc5761
-
-define Device/hc5861
- DTS := HC5861
- IMAGE_SIZE := $(ralink_default_fw_size_16M)
- DEVICE_TITLE := HiWiFi HC5861
- DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-sdhci kmod-sdhci-mt7620 kmod-usb-ledtrig-usbport
-endef
-TARGET_DEVICES += hc5861
-
-define Device/oy-0001
- DTS := OY-0001
- IMAGE_SIZE := $(ralink_default_fw_size_16M)
- DEVICE_TITLE := Oh Yeah OY-0001
-endef
-TARGET_DEVICES += oy-0001
-
-define Device/psg1208
- DTS := PSG1208
- DEVICE_TITLE := Phicomm PSG1208
- DEVICE_PACKAGES := kmod-mt76
-endef
-TARGET_DEVICES += psg1208
-
-define Device/psg1218
- DTS := PSG1218
- DEVICE_TITLE := Phicomm PSG1218
- DEVICE_PACKAGES := kmod-mt76
-endef
-TARGET_DEVICES += psg1218
-
-define Device/y1
- DTS := Y1
- IMAGE_SIZE := $(ralink_default_fw_size_16M)
- DEVICE_TITLE := Lenovo Y1
-endef
-TARGET_DEVICES += y1
-
-define Device/y1s
- DTS := Y1S
- IMAGE_SIZE := $(ralink_default_fw_size_16M)
- DEVICE_TITLE := Lenovo Y1S
-endef
-TARGET_DEVICES += y1s
-
-define Device/mlw221
- DTS := MLW221
- IMAGE_SIZE := $(ralink_default_fw_size_16M)
- DEVICE_TITLE := Kingston MLW221
-endef
-TARGET_DEVICES += mlw221
-
-define Device/mlwg2
- DTS := MLWG2
- IMAGE_SIZE := $(ralink_default_fw_size_16M)
- DEVICE_TITLE := Kingston MLWG2
-endef
-TARGET_DEVICES += mlwg2
-
-define Device/wmr-300
- DTS := WMR-300
- DEVICE_TITLE := Buffalo WMR-300
-endef
-TARGET_DEVICES += wmr-300
-
-define Device/rt-n14u
- DTS := RT-N14U
- DEVICE_TITLE := Asus RT-N14u
-endef
-TARGET_DEVICES += rt-n14u
-
-define Device/wrtnode
- DTS := WRTNODE
- IMAGE_SIZE := $(ralink_default_fw_size_16M)
- DEVICE_TITLE := WRTNode
-endef
-TARGET_DEVICES += wrtnode
-
-define Device/miwifi-mini
- DTS := MIWIFI-MINI
- IMAGE_SIZE := $(ralink_default_fw_size_16M)
- DEVICE_TITLE := Xiaomi MiWiFi Mini
- DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
-endef
-TARGET_DEVICES += miwifi-mini
-
-define Device/gl-mt300a
- DTS := GL-MT300A
- IMAGE_SIZE := $(ralink_default_fw_size_16M)
- DEVICE_TITLE := GL-Inet GL-MT300A
- DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76
-endef
-TARGET_DEVICES += gl-mt300a
-
-define Device/gl-mt300n
- DTS := GL-MT300N
- IMAGE_SIZE := $(ralink_default_fw_size_16M)
- DEVICE_TITLE := GL-Inet GL-MT300N
- DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76
-endef
-TARGET_DEVICES += gl-mt300n
-
-define Device/gl-mt750
- DTS := GL-MT750
- IMAGE_SIZE := $(ralink_default_fw_size_16M)
- DEVICE_TITLE := GL-Inet GL-MT750
- DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76
-endef
-TARGET_DEVICES += gl-mt750
-
-define Device/zte-q7
- DTS := ZTE-Q7
- DEVICE_TITLE := ZTE Q7
-endef
-TARGET_DEVICES += zte-q7
-
-define Device/youku-yk1
- DTS := YOUKU-YK1
- IMAGE_SIZE := $(ralink_default_fw_size_16M)
- DEVICE_TITLE := YOUKU YK1
-endef
-TARGET_DEVICES += youku-yk1
-
-define Device/zbt-ape522ii
- DTS := ZBT-APE522II
- DEVICE_TITLE := Zbtlink ZBT-APE522II
- DEVICE_PACKAGES := kmod-mt76
-endef
-TARGET_DEVICES += zbt-ape522ii
-
-define Device/zbt-cpe102
- DTS := ZBT-CPE102
- DEVICE_TITLE := Zbtlink ZBT-CPE102
- DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
-endef
-TARGET_DEVICES += zbt-cpe102
-
-define Device/zbt-wa05
- DTS := ZBT-WA05
- DEVICE_TITLE := Zbtlink ZBT-WA05
-endef
-TARGET_DEVICES += zbt-wa05
-
-define Device/zbt-we826
- DTS := ZBT-WE826
- IMAGE_SIZE := $(ralink_default_fw_size_16M)
- DEVICE_TITLE := Zbtlink ZBT-WE826
- DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76 kmod-sdhci-mt7620
-endef
-TARGET_DEVICES += zbt-we826
-
-define Device/zbt-wr8305rt
- DTS := ZBT-WR8305RT
- DEVICE_TITLE := Zbtlink ZBT-WR8305RT
-endef
-TARGET_DEVICES += zbt-wr8305rt
-
-define Device/tiny-ac
- DTS := TINY-AC
- DEVICE_TITLE := Dovado Tiny AC
- DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
-endef
-TARGET_DEVICES += tiny-ac
-
-define Device/dch-m225
- DTS := DCH-M225
- BLOCKSIZE := 4k
- IMAGES += factory.bin
- IMAGE_SIZE := 6848k
- IMAGE/sysupgrade.bin := \
- append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | append-rootfs | \
- seama -m "dev=/dev/mtdblock/2" -m "type=firmware" | \
- pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
- IMAGE/factory.bin := \
- append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | \
- append-rootfs | pad-rootfs -x 64 | \
- seama -m "dev=/dev/mtdblock/2" -m "type=firmware" | \
- seama-seal -m "signature=wapn22_dlink.2013gui_dap1320b" | \
- check-size $$$$(IMAGE_SIZE)
- DEVICE_TITLE := D-Link DCH-M225
- DEVICE_PACKAGES := kmod-mt76
-endef
-TARGET_DEVICES += dch-m225
-
-define Device/kn_rc
- DTS := kn_rc
- DEVICE_TITLE := ZyXEL Keenetic Omni
- DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
- IMAGES += factory.bin
- IMAGE/factory.bin := $$(IMAGE/sysupgrade.bin) | check-size $$$$(IMAGE_SIZE) | \
- zyimage -d 4882 -v "ZyXEL Keenetic Omni"
-endef
-TARGET_DEVICES += kn_rc
-
-define Device/kn_rf
- DTS := kn_rf
- DEVICE_TITLE := ZyXEL Keenetic Omni II
- DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
- IMAGES += factory.bin
- IMAGE/factory.bin := $$(IMAGE/sysupgrade.bin) | check-size $$$$(IMAGE_SIZE) | \
- zyimage -d 2102034 -v "ZyXEL Keenetic Omni II"
-endef
-TARGET_DEVICES += kn_rf
-
-define Device/kng_rc
- DTS := kng_rc
- IMAGE_SIZE := $(ralink_default_fw_size_16M)
- DEVICE_TITLE := ZyXEL Keenetic Viva
- DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport kmod-switch-rtl8366-smi kmod-switch-rtl8367b
- IMAGES += factory.bin
- IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
- zyimage -d 8997 -v "ZyXEL Keenetic Viva"
-endef
-TARGET_DEVICES += kng_rc
# MT7621 Profiles
#
-define Build/ubnt-erx-factory-image
- if [ -e $(KDIR)/tmp/$(KERNEL_INITRAMFS_IMAGE) -a "$$(stat -c%s $@)" -lt "$(KERNEL_SIZE)" ]; then \
- echo '21001:6' > $(1).compat; \
- $(TAR) -cf $(1) --transform='s/^.*/compat/' $(1).compat; \
- \
- $(TAR) -rf $(1) --transform='s/^.*/vmlinux.tmp/' $(KDIR)/tmp/$(KERNEL_INITRAMFS_IMAGE); \
- mkhash md5 $(KDIR)/tmp/$(KERNEL_INITRAMFS_IMAGE) > $(1).md5; \
- $(TAR) -rf $(1) --transform='s/^.*/vmlinux.tmp.md5/' $(1).md5; \
- \
- echo "dummy" > $(1).rootfs; \
- $(TAR) -rf $(1) --transform='s/^.*/squashfs.tmp/' $(1).rootfs; \
- \
- mkhash md5 $(1).rootfs > $(1).md5; \
- $(TAR) -rf $(1) --transform='s/^.*/squashfs.tmp.md5/' $(1).md5; \
- \
- echo '$(BOARD) $(VERSION_CODE) $(VERSION_NUMBER)' > $(1).version; \
- $(TAR) -rf $(1) --transform='s/^.*/version.tmp/' $(1).version; \
- \
- $(CP) $(1) $(BIN_DIR)/; \
- else \
- echo "WARNING: initramfs kernel image too big, cannot generate factory image" >&2; \
- fi
-endef
-
-define Device/11acnas
- DTS := 11ACNAS
- IMAGE_SIZE := $(ralink_default_fw_size_16M)
- DEVICE_TITLE := WeVO 11AC NAS Router
- DEVICE_PACKAGES := kmod-usb3 kmod-usb-ledtrig-usbport kmod-mt76
-endef
-TARGET_DEVICES += 11acnas
-
-define Device/ac1200pro
- DTS := AC1200pro
+define Device/gb-pc1
+ DTS := GB-PC1
+ DEVICE_TITLE := GnuBee Personal Cloud One
+ DEVICE_PACKAGES := kmod-ata-core kmod-ata-ahci
IMAGE_SIZE := $(ralink_default_fw_size_32M)
- DEVICE_TITLE := Digineo AC1200 Pro
- DEVICE_PACKAGES := kmod-usb3 kmod-ata-core kmod-ata-ahci
-endef
-TARGET_DEVICES += ac1200pro
-
-define Device/dir-860l-b1
- DTS := DIR-860L-B1
- BLOCKSIZE := 64k
- IMAGES += factory.bin
- KERNEL := kernel-bin | patch-dtb | relocate-kernel | lzma | uImage lzma
- IMAGE_SIZE := $(ralink_default_fw_size_16M)
- IMAGE/sysupgrade.bin := \
- append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | append-rootfs | \
- seama -m "dev=/dev/mtdblock/2" -m "type=firmware" | \
- pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
- IMAGE/factory.bin := \
- append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | \
- append-rootfs | pad-rootfs -x 64 | \
- seama -m "dev=/dev/mtdblock/2" -m "type=firmware" | \
- seama-seal -m "signature=wrgac13_dlink.2013gui_dir860lb" | \
- check-size $$$$(IMAGE_SIZE)
- DEVICE_TITLE := D-Link DIR-860L B1
- DEVICE_PACKAGES := kmod-usb3 kmod-usb-ledtrig-usbport
endef
-TARGET_DEVICES += dir-860l-b1
-define Device/firewrt
- DTS := FIREWRT
- IMAGE_SIZE := $(ralink_default_fw_size_16M)
- DEVICE_TITLE := Firefly FireWRT
- DEVICE_PACKAGES := kmod-usb3 kmod-usb-ledtrig-usbport
-endef
-TARGET_DEVICES += firewrt
+TARGET_DEVICES += gb-pc1
define Device/mt7621
DTS := MT7621
endef
TARGET_DEVICES += mt7621
-define Device/newifi-d1
- DTS := Newifi-D1
- IMAGE_SIZE := $(ralink_default_fw_size_32M)
- DEVICE_TITLE := Newifi D1
- DEVICE_PACKAGES := kmod-usb3 kmod-usb-ledtrig-usbport
-endef
-TARGET_DEVICES += newifi-d1
-
-define Device/pbr-m1
- DTS := PBR-M1
- IMAGE_SIZE := $(ralink_default_fw_size_16M)
- DEVICE_TITLE := PBR-M1
- DEVICE_PACKAGES := kmod-usb3 kmod-usb-ledtrig-usbport kmod-ata-core kmod-ata-ahci
-endef
-TARGET_DEVICES += pbr-m1
-
-define Device/rb750gr3
- DTS := RB750Gr3
- IMAGE_SIZE := $(ralink_default_fw_size_16M)
- DEVICE_TITLE := MikroTik RB750Gr3
- DEVICE_PACKAGES := kmod-usb3 uboot-envtools -kmod-mt76 -kmod-rt2x00-lib -kmod-mac80211 -kmod-cfg80211 -wpad-mini -iwinfo
-endef
-TARGET_DEVICES += rb750gr3
-
-define Device/re6500
- DTS := RE6500
- DEVICE_TITLE := Linksys RE6500
-endef
-TARGET_DEVICES += re6500
-
-define Device/sap-g3200u3
- DTS := SAP-G3200U3
- DEVICE_TITLE := STORYLiNK SAP-G3200U3
- DEVICE_PACKAGES := kmod-usb3 kmod-usb-ledtrig-usbport
-endef
-TARGET_DEVICES += sap-g3200u3
-
-define Device/sk-wb8
- DTS := SK-WB8
- IMAGE_SIZE := $(ralink_default_fw_size_16M)
- DEVICE_TITLE := SamKnows Whitebox 8
- DEVICE_PACKAGES := kmod-usb3 kmod-usb-ledtrig-usbport uboot-envtools
-endef
-TARGET_DEVICES += sk-wb8
-
define Device/timecloud
DTS := Timecloud
DEVICE_TITLE := Thunder Timecloud
- DEVICE_PACKAGES := kmod-usb3
endef
TARGET_DEVICES += timecloud
-define Device/ubnt-erx
- DTS := UBNT-ERX
- FILESYSTEMS := squashfs
- KERNEL_SIZE := 3145728
- KERNEL := $(KERNEL_DTB) | uImage lzma
- IMAGES := sysupgrade.tar
- KERNEL_INITRAMFS := $$(KERNEL) | ubnt-erx-factory-image $(KDIR)/tmp/$$(KERNEL_INITRAMFS_PREFIX)-factory.tar
- IMAGE/sysupgrade.tar := sysupgrade-tar | append-metadata
- DEVICE_TITLE := Ubiquiti EdgeRouter X
- DEVICE_PACKAGES := -kmod-mt76 -kmod-rt2x00-lib -kmod-mac80211 -kmod-cfg80211 -wpad-mini -iwinfo
-endef
-TARGET_DEVICES += ubnt-erx
-
define Device/vr500
DTS := VR500
IMAGE_SIZE := 66453504
DEVICE_TITLE := Planex VR500
- DEVICE_PACKAGES := kmod-usb3
endef
TARGET_DEVICES += vr500
-define Device/w2914nsv2
- DTS := W2914NSV2
- IMAGE_SIZE := $(ralink_default_fw_size_16M)
- DEVICE_TITLE := WeVO W2914NS v2
- DEVICE_PACKAGES := kmod-usb3 kmod-usb-ledtrig-usbport kmod-mt76
-endef
-TARGET_DEVICES += w2914nsv2
-
-define Device/wf-2881
- DTS := WF-2881
- BLOCKSIZE := 128k
- PAGESIZE := 2048
- FILESYSTEMS := squashfs
- IMAGE_SIZE := 129280k
- KERNEL := $(KERNEL_DTB) | pad-offset $$(BLOCKSIZE) 64 | uImage lzma
- UBINIZE_OPTS := -E 5
- IMAGE/sysupgrade.bin := append-kernel | append-ubi | append-metadata | check-size $$$$(IMAGE_SIZE)
- DEVICE_TITLE := NETIS WF-2881
- DEVICE_PACKAGES := kmod-usb3 kmod-usb-ledtrig-usbport
-endef
-TARGET_DEVICES += wf-2881
-
-define Device/witi
- DTS := WITI
- IMAGE_SIZE := $(ralink_default_fw_size_16M)
- DEVICE_TITLE := MQmaker WiTi
- DEVICE_PACKAGES := kmod-usb3 kmod-usb-ledtrig-usbport kmod-ata-core kmod-ata-ahci
-endef
-TARGET_DEVICES += witi
-
-define Device/wndr3700v5
- DTS := WNDR3700V5
- IMAGE_SIZE := $(ralink_default_fw_size_16M)
- DEVICE_TITLE := Netgear WNDR3700v5
- DEVICE_PACKAGES := kmod-usb3
-endef
-TARGET_DEVICES += wndr3700v5
-
-define Device/wsr-1166
- DTS := WSR-1166
- IMAGE/sysupgrade.bin := trx | pad-rootfs | append-metadata
- IMAGE_SIZE := $(ralink_default_fw_size_16M)
- DEVICE_TITLE := Buffalo WSR-1166
-endef
-TARGET_DEVICES += wsr-1166
-
-define Device/wsr-600
- DTS := WSR-600
- IMAGE_SIZE := $(ralink_default_fw_size_16M)
- DEVICE_TITLE := Buffalo WSR-600
-endef
-TARGET_DEVICES += wsr-600
-
-define Device/zbt-wg2626
- DTS := ZBT-WG2626
- IMAGE_SIZE := $(ralink_default_fw_size_16M)
- DEVICE_TITLE := ZBT WG2626
- DEVICE_PACKAGES := kmod-usb3 kmod-usb-ledtrig-usbport kmod-ata-core kmod-ata-ahci
-endef
-TARGET_DEVICES += zbt-wg2626
-
-define Device/zbt-wg3526
- DTS := ZBT-WG3526
- IMAGE_SIZE := $(ralink_default_fw_size_16M)
- DEVICE_TITLE := ZBT WG3526
- DEVICE_PACKAGES := kmod-usb3 kmod-usb-ledtrig-usbport kmod-ata-core kmod-ata-ahci
-endef
-TARGET_DEVICES += zbt-wg3526
-
# FIXME: is this still needed?
define Image/Prepare
#define Build/Compile
endef
TARGET_DEVICES += miwifi-nano
-define Device/vocore2
- DTS := VOCORE2
- IMAGE_SIZE := $(ralink_default_fw_size_16M)
- DEVICE_TITLE := VoCore VoCore2
- DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport \
- kmod-sdhci kmod-sdhci-mt7620
-endef
-TARGET_DEVICES += vocore2
-
define Device/wl-wn575a3
DTS := WL-WN575A3
IMAGE_SIZE := $(ralink_default_fw_size_8M)
DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
endef
TARGET_DEVICES += widora-neo
-
-define Device/omega2
- DTS := OMEGA2
- IMAGE_SIZE := $(ralink_default_fw_size_16M)
- DEVICE_TITLE := Onion Omega2
- DEVICE_PACKAGES:= kmod-usb2 kmod-usb-ohci uboot-envtools
-endef
-TARGET_DEVICES += omega2
-
-define Device/omega2p
- DTS := OMEGA2P
- IMAGE_SIZE := $(ralink_default_fw_size_32M)
- DEVICE_TITLE := Onion Omega2+
- DEVICE_PACKAGES:= kmod-usb2 kmod-usb-ohci uboot-envtools kmod-sdhci-mt7620
-endef
-TARGET_DEVICES += omega2p
#
define Build/gemtek-header
- if [ -f $@ ]; then \
- mkheader_gemtek $@ $@.new $(1) && \
- mv $@.new $@; \
- fi
+ mkheader_gemtek $@ $@.new $(1) && mv $@.new $@
endef
define Device/ar670w
BLOCKSIZE := 64k
DEVICE_TITLE := Airlink AR670W
IMAGE_SIZE := $(ralink_default_fw_size_4M)
- KERNEL := $(KERNEL_DTB) | pad-to $$(BLOCKSIZE)
+ KERNEL := $(KERNEL_DTB)
IMAGES += factory.bin
IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
wrg-header wrgn16a_airlink_ar670w
define Device/ar725w
DTS := AR725W
- DEVICE_TITLE := Airlink AR725W
+ DEVICE_TITLE := Gemtek AR725W
IMAGES += factory.bin
- IMAGE/factory.bin := $$(sysupgrade_bin) | check-size 3328k | \
+ IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
gemtek-header ar725w
endef
TARGET_DEVICES += ar725w
define Device/dwr-512-b
DTS := DWR-512-B
- IMAGE_SIZE := 7700k
DEVICE_TITLE := D-Link DWR-512 B
DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-i2c-core kmod-i2c-ralink kmod-spi-dev \
kmod-usb-serial kmod-usb-serial-option kmod-usb-serial-wwan comgt
I2C_MT7621_MODULES:= \
CONFIG_I2C_MT7621:drivers/i2c/busses/i2c-mt7621
-define KernelPackage/i2c-mt7628
+define KernelPackage/i2c-mt7621
$(call i2c_defaults,$(I2C_MT7621_MODULES),59)
- TITLE:=MT7628/88 I2C Controller
+ TITLE:=MT7621 I2C Controller
DEPENDS:=kmod-i2c-core \
- @(TARGET_ramips_mt7628||TARGET_ramips_mt7688)
+ @(TARGET_ramips_mt7621||TARGET_ramips_mt7628||TARGET_ramips_mt7688)
endef
-define KernelPackage/i2c-mt7628/description
+define KernelPackage/i2c-mt7621/description
Kernel modules for enable mt7621 i2c controller.
endef
-$(eval $(call KernelPackage,i2c-mt7628))
+$(eval $(call KernelPackage,i2c-mt7621))
define KernelPackage/dma-ralink
SUBMENU:=Other modules
+++ /dev/null
-CONFIG_ARCH_BINFMT_ELF_STATE=y
-CONFIG_ARCH_CLOCKSOURCE_DATA=y
-CONFIG_ARCH_DISCARD_MEMBLOCK=y
-CONFIG_ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE=y
-CONFIG_ARCH_HAS_ELF_RANDOMIZE=y
-# CONFIG_ARCH_HAS_GCOV_PROFILE_ALL is not set
-CONFIG_ARCH_HAS_RESET_CONTROLLER=y
-# CONFIG_ARCH_HAS_SG_CHAIN is not set
-CONFIG_ARCH_HIBERNATION_POSSIBLE=y
-CONFIG_ARCH_MIGHT_HAVE_PC_PARPORT=y
-CONFIG_ARCH_MIGHT_HAVE_PC_SERIO=y
-CONFIG_ARCH_REQUIRE_GPIOLIB=y
-CONFIG_ARCH_SUPPORTS_UPROBES=y
-CONFIG_ARCH_SUSPEND_POSSIBLE=y
-CONFIG_ARCH_USE_BUILTIN_BSWAP=y
-CONFIG_ARCH_WANT_IPC_PARSE_VERSION=y
-CONFIG_AT803X_PHY=y
-CONFIG_CC_OPTIMIZE_FOR_SIZE=y
-CONFIG_CEVT_R4K=y
-CONFIG_CEVT_SYSTICK_QUIRK=y
-CONFIG_CLKDEV_LOOKUP=y
-CONFIG_CLKEVT_RT3352=y
-CONFIG_CLKSRC_MMIO=y
-CONFIG_CLKSRC_OF=y
-CONFIG_CLKSRC_PROBE=y
-CONFIG_CLONE_BACKWARDS=y
-CONFIG_CMDLINE="rootfstype=squashfs,jffs2"
-CONFIG_CMDLINE_BOOL=y
-# CONFIG_CMDLINE_OVERRIDE is not set
-CONFIG_CPU_GENERIC_DUMP_TLB=y
-CONFIG_CPU_HAS_PREFETCH=y
-CONFIG_CPU_HAS_SYNC=y
-CONFIG_CPU_LITTLE_ENDIAN=y
-CONFIG_CPU_MIPS32=y
-# CONFIG_CPU_MIPS32_R1 is not set
-CONFIG_CPU_MIPS32_R2=y
-CONFIG_CPU_MIPSR2=y
-CONFIG_CPU_NEEDS_NO_SMARTMIPS_OR_MICROMIPS=y
-CONFIG_CPU_R4K_CACHE_TLB=y
-CONFIG_CPU_R4K_FPU=y
-CONFIG_CPU_SUPPORTS_32BIT_KERNEL=y
-CONFIG_CPU_SUPPORTS_HIGHMEM=y
-CONFIG_CPU_SUPPORTS_MSA=y
-CONFIG_CRYPTO_RNG2=y
-CONFIG_CRYPTO_WORKQUEUE=y
-CONFIG_CSRC_R4K=y
-CONFIG_DEBUG_PINCTRL=y
-CONFIG_DMA_NONCOHERENT=y
-# CONFIG_DTB_MT7620A_EVAL is not set
-CONFIG_DTB_RT_NONE=y
-CONFIG_DTC=y
-CONFIG_EARLY_PRINTK=y
-CONFIG_GENERIC_ATOMIC64=y
-CONFIG_GENERIC_CLOCKEVENTS=y
-CONFIG_GENERIC_CMOS_UPDATE=y
-CONFIG_GENERIC_IO=y
-CONFIG_GENERIC_IRQ_CHIP=y
-CONFIG_GENERIC_IRQ_SHOW=y
-CONFIG_GENERIC_PCI_IOMAP=y
-CONFIG_GENERIC_PHY=y
-CONFIG_GENERIC_SCHED_CLOCK=y
-CONFIG_GENERIC_SMP_IDLE_THREAD=y
-CONFIG_GENERIC_TIME_VSYSCALL=y
-CONFIG_GPIOLIB=y
-CONFIG_GPIO_DEVRES=y
-# CONFIG_GPIO_MT7621 is not set
-CONFIG_GPIO_RALINK=y
-CONFIG_GPIO_SYSFS=y
-CONFIG_HARDWARE_WATCHPOINTS=y
-CONFIG_HAS_DMA=y
-CONFIG_HAS_IOMEM=y
-CONFIG_HAS_IOPORT_MAP=y
-# CONFIG_HAVE_64BIT_ALIGNED_ACCESS is not set
-# CONFIG_HAVE_ARCH_BITREVERSE is not set
-CONFIG_HAVE_ARCH_JUMP_LABEL=y
-CONFIG_HAVE_ARCH_KGDB=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_CC_STACKPROTECTOR=y
-CONFIG_HAVE_CLK=y
-CONFIG_HAVE_CONTEXT_TRACKING=y
-CONFIG_HAVE_C_RECORDMCOUNT=y
-CONFIG_HAVE_DEBUG_KMEMLEAK=y
-CONFIG_HAVE_DEBUG_STACKOVERFLOW=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_IDE=y
-CONFIG_HAVE_IRQ_TIME_ACCOUNTING=y
-CONFIG_HAVE_KVM=y
-CONFIG_HAVE_LATENCYTOP_SUPPORT=y
-CONFIG_HAVE_MACH_CLKDEV=y
-CONFIG_HAVE_MEMBLOCK=y
-CONFIG_HAVE_MEMBLOCK_NODE_MAP=y
-CONFIG_HAVE_MOD_ARCH_SPECIFIC=y
-CONFIG_HAVE_NET_DSA=y
-CONFIG_HAVE_OPROFILE=y
-CONFIG_HAVE_PERF_EVENTS=y
-CONFIG_HAVE_SYSCALL_TRACEPOINTS=y
-CONFIG_HAVE_VIRT_CPU_ACCOUNTING_GEN=y
-CONFIG_HW_HAS_PCI=y
-CONFIG_HZ_PERIODIC=y
-CONFIG_ICPLUS_PHY=y
-CONFIG_INITRAMFS_SOURCE=""
-CONFIG_IRQCHIP=y
-CONFIG_IRQ_DOMAIN=y
-CONFIG_IRQ_FORCED_THREADING=y
-CONFIG_IRQ_INTC=y
-CONFIG_IRQ_MIPS_CPU=y
-CONFIG_IRQ_WORK=y
-CONFIG_LIBFDT=y
-CONFIG_MDIO_BOARDINFO=y
-CONFIG_MIPS=y
-CONFIG_MIPS_CLOCK_VSYSCALL=y
-# CONFIG_MIPS_CMDLINE_DTB_EXTEND is not set
-# CONFIG_MIPS_CMDLINE_FROM_BOOTLOADER is not set
-CONFIG_MIPS_CMDLINE_FROM_DTB=y
-# CONFIG_MIPS_ELF_APPENDED_DTB is not set
-# CONFIG_MIPS_HUGE_TLB_SUPPORT is not set
-CONFIG_MIPS_L1_CACHE_SHIFT=5
-# CONFIG_MIPS_MACHINE is not set
-CONFIG_MIPS_NO_APPENDED_DTB=y
-# CONFIG_MIPS_RAW_APPENDED_DTB is not set
-CONFIG_MIPS_SPRAM=y
-CONFIG_MODULES_USE_ELF_REL=y
-# CONFIG_MT7621_WDT is not set
-# CONFIG_MTD_CFI_INTELEXT is not set
-CONFIG_MTD_CMDLINE_PARTS=y
-CONFIG_MTD_M25P80=y
-CONFIG_MTD_NAND_MT7620=y
-CONFIG_MTD_PHYSMAP=y
-CONFIG_MTD_SPI_NOR=y
-CONFIG_MTD_SPI_NOR_USE_4K_SECTORS=y
-CONFIG_MTD_SPLIT_FIRMWARE=y
-CONFIG_MTD_SPLIT_SEAMA_FW=y
-CONFIG_MTD_SPLIT_TPLINK_FW=y
-CONFIG_MTD_SPLIT_UIMAGE_FW=y
-CONFIG_NEED_DMA_MAP_STATE=y
-CONFIG_NEED_PER_CPU_KM=y
-CONFIG_NET_MEDIATEK_GSW_MT7620=y
-CONFIG_NET_MEDIATEK_MDIO=y
-CONFIG_NET_MEDIATEK_MDIO_MT7620=y
-CONFIG_NET_MEDIATEK_MT7620=y
-# CONFIG_NET_MEDIATEK_RT3050 is not set
-CONFIG_NET_MEDIATEK_SOC=y
-CONFIG_NET_VENDOR_MEDIATEK=y
-CONFIG_NO_GENERIC_PCI_IOPORT_MAP=y
-# CONFIG_NO_IOPORT_MAP is not set
-CONFIG_OF=y
-CONFIG_OF_ADDRESS=y
-CONFIG_OF_ADDRESS_PCI=y
-CONFIG_OF_EARLY_FLATTREE=y
-CONFIG_OF_FLATTREE=y
-CONFIG_OF_GPIO=y
-CONFIG_OF_IRQ=y
-CONFIG_OF_MDIO=y
-CONFIG_OF_MTD=y
-CONFIG_OF_NET=y
-CONFIG_OF_PCI=y
-CONFIG_OF_PCI_IRQ=y
-CONFIG_PCI=y
-CONFIG_PCI_DOMAINS=y
-CONFIG_PERF_USE_VMALLOC=y
-CONFIG_PGTABLE_LEVELS=2
-CONFIG_PHYLIB=y
-CONFIG_PHY_RALINK_USB=y
-CONFIG_PINCTRL=y
-CONFIG_PINCTRL_RT2880=y
-# CONFIG_PINCTRL_SINGLE is not set
-CONFIG_RALINK=y
-CONFIG_RALINK_WDT=y
-# CONFIG_RCU_STALL_COMMON is not set
-CONFIG_RESET_CONTROLLER=y
-CONFIG_SCHED_HRTICK=y
-# CONFIG_SCHED_INFO is not set
-# CONFIG_SCSI_DMA is not set
-# CONFIG_SERIAL_8250_FSL is not set
-CONFIG_SERIAL_8250_RT288X=y
-CONFIG_SERIAL_OF_PLATFORM=y
-CONFIG_SOC_MT7620=y
-# CONFIG_SOC_MT7621 is not set
-# CONFIG_SOC_RT288X is not set
-# CONFIG_SOC_RT305X is not set
-# CONFIG_SOC_RT3883 is not set
-CONFIG_SPI=y
-CONFIG_SPI_MASTER=y
-# CONFIG_SPI_MT7621 is not set
-CONFIG_SPI_RT2880=y
-CONFIG_SRCU=y
-CONFIG_SWCONFIG=y
-CONFIG_SWCONFIG_LEDS=y
-CONFIG_SYSCTL_EXCEPTION_TRACE=y
-CONFIG_SYS_HAS_CPU_MIPS32_R1=y
-CONFIG_SYS_HAS_CPU_MIPS32_R2=y
-CONFIG_SYS_HAS_EARLY_PRINTK=y
-CONFIG_SYS_SUPPORTS_32BIT_KERNEL=y
-CONFIG_SYS_SUPPORTS_ARBIT_HZ=y
-CONFIG_SYS_SUPPORTS_LITTLE_ENDIAN=y
-CONFIG_SYS_SUPPORTS_MIPS16=y
-CONFIG_TICK_CPU_ACCOUNTING=y
-CONFIG_USB_SUPPORT=y
-CONFIG_USE_OF=y
-CONFIG_WATCHDOG_CORE=y
-CONFIG_ZONE_DMA_FLAG=0
+++ /dev/null
-#
-# Copyright (C) 2011 OpenWrt.org
-#
-# This is free software, licensed under the GNU General Public License v2.
-# See /LICENSE for more information.
-#
-
-define Profile/Default
- NAME:=Default Profile
- PACKAGES:= kmod-usb-core kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
- PRIORITY:=1
-endef
-
-define Profile/Default/Description
- Default package set compatible with most boards.
-endef
-$(eval $(call Profile,Default))
+++ /dev/null
-#
-# Copyright (C) 2009 OpenWrt.org
-#
-
-SUBTARGET:=mt7620
-BOARDNAME:=MT7620 based boards
-FEATURES+=usb
-CPU_TYPE:=24kc
-
-DEFAULT_PACKAGES += kmod-rt2800-pci kmod-rt2800-soc kmod-mt76
-
-define Target/Description
- Build firmware images for Ralink MT7620 based boards.
-endef
-
FEATURES+=usb rtc nand
CPU_TYPE:=24kc
-DEFAULT_PACKAGES += kmod-mt76
+DEFAULT_PACKAGES += kmod-usb3
KERNEL_PATCHVER:=4.4
+++ /dev/null
-CONFIG_ARCH_BINFMT_ELF_STATE=y
-CONFIG_ARCH_CLOCKSOURCE_DATA=y
-CONFIG_ARCH_DISCARD_MEMBLOCK=y
-CONFIG_ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE=y
-CONFIG_ARCH_HAS_ELF_RANDOMIZE=y
-# CONFIG_ARCH_HAS_GCOV_PROFILE_ALL is not set
-CONFIG_ARCH_HAS_RESET_CONTROLLER=y
-# CONFIG_ARCH_HAS_SG_CHAIN is not set
-CONFIG_ARCH_HIBERNATION_POSSIBLE=y
-CONFIG_ARCH_MIGHT_HAVE_PC_PARPORT=y
-CONFIG_ARCH_MIGHT_HAVE_PC_SERIO=y
-CONFIG_ARCH_REQUIRE_GPIOLIB=y
-CONFIG_ARCH_SUPPORTS_UPROBES=y
-CONFIG_ARCH_SUSPEND_POSSIBLE=y
-CONFIG_ARCH_USE_BUILTIN_BSWAP=y
-CONFIG_ARCH_WANT_IPC_PARSE_VERSION=y
-CONFIG_AT803X_PHY=y
-CONFIG_CC_OPTIMIZE_FOR_SIZE=y
-CONFIG_CEVT_R4K=y
-CONFIG_CEVT_SYSTICK_QUIRK=y
-CONFIG_CLKDEV_LOOKUP=y
-CONFIG_CLKEVT_RT3352=y
-CONFIG_CLKSRC_MMIO=y
-CONFIG_CLKSRC_OF=y
-CONFIG_CLKSRC_PROBE=y
-CONFIG_CLONE_BACKWARDS=y
-CONFIG_CMDLINE="rootfstype=squashfs,jffs2"
-CONFIG_CMDLINE_BOOL=y
-# CONFIG_CMDLINE_OVERRIDE is not set
-CONFIG_CPU_GENERIC_DUMP_TLB=y
-CONFIG_CPU_HAS_PREFETCH=y
-CONFIG_CPU_HAS_SYNC=y
-CONFIG_CPU_LITTLE_ENDIAN=y
-CONFIG_CPU_MIPS32=y
-# CONFIG_CPU_MIPS32_R1 is not set
-CONFIG_CPU_MIPS32_R2=y
-CONFIG_CPU_MIPSR2=y
-CONFIG_CPU_NEEDS_NO_SMARTMIPS_OR_MICROMIPS=y
-CONFIG_CPU_R4K_CACHE_TLB=y
-CONFIG_CPU_R4K_FPU=y
-CONFIG_CPU_SUPPORTS_32BIT_KERNEL=y
-CONFIG_CPU_SUPPORTS_HIGHMEM=y
-CONFIG_CPU_SUPPORTS_MSA=y
-CONFIG_CRYPTO_RNG2=y
-CONFIG_CRYPTO_WORKQUEUE=y
-CONFIG_CSRC_R4K=y
-CONFIG_DEBUG_PINCTRL=y
-CONFIG_DMA_NONCOHERENT=y
-# CONFIG_DTB_MT7620A_EVAL is not set
-CONFIG_DTB_RT_NONE=y
-CONFIG_DTC=y
-CONFIG_EARLY_PRINTK=y
-CONFIG_GENERIC_ATOMIC64=y
-CONFIG_GENERIC_CLOCKEVENTS=y
-CONFIG_GENERIC_CMOS_UPDATE=y
-CONFIG_GENERIC_IO=y
-CONFIG_GENERIC_IRQ_CHIP=y
-CONFIG_GENERIC_IRQ_SHOW=y
-CONFIG_GENERIC_PCI_IOMAP=y
-CONFIG_GENERIC_PHY=y
-CONFIG_GENERIC_SCHED_CLOCK=y
-CONFIG_GENERIC_SMP_IDLE_THREAD=y
-CONFIG_GENERIC_TIME_VSYSCALL=y
-CONFIG_GPIOLIB=y
-CONFIG_GPIO_DEVRES=y
-CONFIG_GPIO_MT7621=y
-# CONFIG_GPIO_RALINK is not set
-CONFIG_GPIO_SYSFS=y
-CONFIG_HARDWARE_WATCHPOINTS=y
-CONFIG_HAS_DMA=y
-CONFIG_HAS_IOMEM=y
-CONFIG_HAS_IOPORT_MAP=y
-# CONFIG_HAVE_64BIT_ALIGNED_ACCESS is not set
-# CONFIG_HAVE_ARCH_BITREVERSE is not set
-CONFIG_HAVE_ARCH_JUMP_LABEL=y
-CONFIG_HAVE_ARCH_KGDB=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_CC_STACKPROTECTOR=y
-CONFIG_HAVE_CLK=y
-CONFIG_HAVE_CONTEXT_TRACKING=y
-CONFIG_HAVE_C_RECORDMCOUNT=y
-CONFIG_HAVE_DEBUG_KMEMLEAK=y
-CONFIG_HAVE_DEBUG_STACKOVERFLOW=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_IDE=y
-CONFIG_HAVE_IRQ_TIME_ACCOUNTING=y
-CONFIG_HAVE_KVM=y
-CONFIG_HAVE_LATENCYTOP_SUPPORT=y
-CONFIG_HAVE_MACH_CLKDEV=y
-CONFIG_HAVE_MEMBLOCK=y
-CONFIG_HAVE_MEMBLOCK_NODE_MAP=y
-CONFIG_HAVE_MOD_ARCH_SPECIFIC=y
-CONFIG_HAVE_NET_DSA=y
-CONFIG_HAVE_OPROFILE=y
-CONFIG_HAVE_PERF_EVENTS=y
-CONFIG_HAVE_SYSCALL_TRACEPOINTS=y
-CONFIG_HAVE_VIRT_CPU_ACCOUNTING_GEN=y
-CONFIG_HW_HAS_PCI=y
-CONFIG_HZ_PERIODIC=y
-CONFIG_ICPLUS_PHY=y
-CONFIG_INITRAMFS_SOURCE=""
-CONFIG_IRQCHIP=y
-CONFIG_IRQ_DOMAIN=y
-CONFIG_IRQ_FORCED_THREADING=y
-CONFIG_IRQ_INTC=y
-CONFIG_IRQ_MIPS_CPU=y
-CONFIG_IRQ_WORK=y
-CONFIG_LIBFDT=y
-CONFIG_MDIO_BOARDINFO=y
-CONFIG_MIPS=y
-CONFIG_MIPS_CLOCK_VSYSCALL=y
-# CONFIG_MIPS_CMDLINE_DTB_EXTEND is not set
-# CONFIG_MIPS_CMDLINE_FROM_BOOTLOADER is not set
-CONFIG_MIPS_CMDLINE_FROM_DTB=y
-# CONFIG_MIPS_ELF_APPENDED_DTB is not set
-# CONFIG_MIPS_HUGE_TLB_SUPPORT is not set
-CONFIG_MIPS_L1_CACHE_SHIFT=5
-# CONFIG_MIPS_MACHINE is not set
-CONFIG_MIPS_NO_APPENDED_DTB=y
-# CONFIG_MIPS_RAW_APPENDED_DTB is not set
-CONFIG_MIPS_SPRAM=y
-CONFIG_MODULES_USE_ELF_REL=y
-CONFIG_MT7621_WDT=y
-# CONFIG_MTD_CFI_INTELEXT is not set
-CONFIG_MTD_CMDLINE_PARTS=y
-CONFIG_MTD_M25P80=y
-CONFIG_MTD_NAND_MT7620=y
-CONFIG_MTD_PHYSMAP=y
-CONFIG_MTD_SPI_NOR=y
-CONFIG_MTD_SPLIT_FIRMWARE=y
-CONFIG_MTD_SPLIT_UIMAGE_FW=y
-CONFIG_NEED_DMA_MAP_STATE=y
-CONFIG_NEED_PER_CPU_KM=y
-CONFIG_NET_MEDIATEK_ESW_RT3050=y
-# CONFIG_NET_MEDIATEK_MT7620 is not set
-CONFIG_NET_MEDIATEK_RT3050=y
-CONFIG_NET_MEDIATEK_SOC=y
-CONFIG_NET_VENDOR_MEDIATEK=y
-CONFIG_NO_GENERIC_PCI_IOPORT_MAP=y
-# CONFIG_NO_IOPORT_MAP is not set
-CONFIG_OF=y
-CONFIG_OF_ADDRESS=y
-CONFIG_OF_ADDRESS_PCI=y
-CONFIG_OF_EARLY_FLATTREE=y
-CONFIG_OF_FLATTREE=y
-CONFIG_OF_GPIO=y
-CONFIG_OF_IRQ=y
-CONFIG_OF_MDIO=y
-CONFIG_OF_MTD=y
-CONFIG_OF_NET=y
-CONFIG_OF_PCI=y
-CONFIG_OF_PCI_IRQ=y
-CONFIG_PCI=y
-CONFIG_PCI_DOMAINS=y
-CONFIG_PERF_USE_VMALLOC=y
-CONFIG_PGTABLE_LEVELS=2
-CONFIG_PHYLIB=y
-CONFIG_PHY_RALINK_USB=y
-CONFIG_PINCTRL=y
-CONFIG_PINCTRL_RT2880=y
-# CONFIG_PINCTRL_SINGLE is not set
-CONFIG_RALINK=y
-# CONFIG_RALINK_WDT is not set
-# CONFIG_RCU_STALL_COMMON is not set
-CONFIG_RESET_CONTROLLER=y
-CONFIG_SCHED_HRTICK=y
-# CONFIG_SCHED_INFO is not set
-# CONFIG_SCSI_DMA is not set
-# CONFIG_SERIAL_8250_FSL is not set
-CONFIG_SERIAL_8250_NR_UARTS=3
-CONFIG_SERIAL_8250_RUNTIME_UARTS=3
-CONFIG_SERIAL_OF_PLATFORM=y
-CONFIG_SOC_MT7620=y
-# CONFIG_SOC_MT7621 is not set
-# CONFIG_SOC_RT288X is not set
-# CONFIG_SOC_RT305X is not set
-# CONFIG_SOC_RT3883 is not set
-CONFIG_SPI=y
-CONFIG_SPI_MASTER=y
-CONFIG_SPI_MT7621=y
-# CONFIG_SPI_RT2880 is not set
-CONFIG_SRCU=y
-CONFIG_SWCONFIG=y
-CONFIG_SYSCTL_EXCEPTION_TRACE=y
-CONFIG_SYS_HAS_CPU_MIPS32_R1=y
-CONFIG_SYS_HAS_CPU_MIPS32_R2=y
-CONFIG_SYS_HAS_EARLY_PRINTK=y
-CONFIG_SYS_SUPPORTS_32BIT_KERNEL=y
-CONFIG_SYS_SUPPORTS_ARBIT_HZ=y
-CONFIG_SYS_SUPPORTS_LITTLE_ENDIAN=y
-CONFIG_SYS_SUPPORTS_MIPS16=y
-CONFIG_TICK_CPU_ACCOUNTING=y
-CONFIG_USB_SUPPORT=y
-CONFIG_USE_OF=y
-CONFIG_WATCHDOG_CORE=y
-CONFIG_ZONE_DMA_FLAG=0
+++ /dev/null
-#
-# Copyright (C) 2011 OpenWrt.org
-#
-# This is free software, licensed under the GNU General Public License v2.
-# See /LICENSE for more information.
-#
-
-define Profile/Default
- NAME:=Default Profile
- PRIORITY:=1
- PACKAGES:= kmod-usb-core kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
-endef
-
-define Profile/Default/Description
- Default package set compatible with most boards.
-endef
-$(eval $(call Profile,Default))
+++ /dev/null
-#
-# Copyright (C) 2009 OpenWrt.org
-#
-
-SUBTARGET:=mt7628
-BOARDNAME:=MT7628 based boards
-FEATURES+=usb
-CPU_TYPE:=24kc
-
-DEFAULT_PACKAGES += kmod-mt76
-
-define Target/Description
- Build firmware images for Ralink MT7628 based boards.
-endef
-
+++ /dev/null
-CONFIG_ARCH_BINFMT_ELF_STATE=y
-CONFIG_ARCH_CLOCKSOURCE_DATA=y
-CONFIG_ARCH_DISCARD_MEMBLOCK=y
-CONFIG_ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE=y
-CONFIG_ARCH_HAS_ELF_RANDOMIZE=y
-# CONFIG_ARCH_HAS_GCOV_PROFILE_ALL is not set
-CONFIG_ARCH_HAS_RESET_CONTROLLER=y
-# CONFIG_ARCH_HAS_SG_CHAIN is not set
-CONFIG_ARCH_HIBERNATION_POSSIBLE=y
-CONFIG_ARCH_MIGHT_HAVE_PC_PARPORT=y
-CONFIG_ARCH_MIGHT_HAVE_PC_SERIO=y
-CONFIG_ARCH_REQUIRE_GPIOLIB=y
-CONFIG_ARCH_SUPPORTS_UPROBES=y
-CONFIG_ARCH_SUSPEND_POSSIBLE=y
-CONFIG_ARCH_USE_BUILTIN_BSWAP=y
-CONFIG_ARCH_WANT_IPC_PARSE_VERSION=y
-CONFIG_AT803X_PHY=y
-CONFIG_CC_OPTIMIZE_FOR_SIZE=y
-CONFIG_CEVT_R4K=y
-CONFIG_CEVT_SYSTICK_QUIRK=y
-CONFIG_CLKDEV_LOOKUP=y
-CONFIG_CLKEVT_RT3352=y
-CONFIG_CLKSRC_MMIO=y
-CONFIG_CLKSRC_OF=y
-CONFIG_CLKSRC_PROBE=y
-CONFIG_CLONE_BACKWARDS=y
-CONFIG_CMDLINE="rootfstype=squashfs,jffs2"
-CONFIG_CMDLINE_BOOL=y
-# CONFIG_CMDLINE_OVERRIDE is not set
-CONFIG_CPU_GENERIC_DUMP_TLB=y
-CONFIG_CPU_HAS_PREFETCH=y
-CONFIG_CPU_HAS_SYNC=y
-CONFIG_CPU_LITTLE_ENDIAN=y
-CONFIG_CPU_MIPS32=y
-# CONFIG_CPU_MIPS32_R1 is not set
-CONFIG_CPU_MIPS32_R2=y
-CONFIG_CPU_MIPSR2=y
-CONFIG_CPU_NEEDS_NO_SMARTMIPS_OR_MICROMIPS=y
-CONFIG_CPU_R4K_CACHE_TLB=y
-CONFIG_CPU_R4K_FPU=y
-CONFIG_CPU_SUPPORTS_32BIT_KERNEL=y
-CONFIG_CPU_SUPPORTS_HIGHMEM=y
-CONFIG_CPU_SUPPORTS_MSA=y
-CONFIG_CRYPTO_RNG2=y
-CONFIG_CRYPTO_WORKQUEUE=y
-CONFIG_CSRC_R4K=y
-CONFIG_DEBUG_PINCTRL=y
-CONFIG_DMA_NONCOHERENT=y
-# CONFIG_DTB_MT7620A_EVAL is not set
-CONFIG_DTB_RT_NONE=y
-CONFIG_DTC=y
-CONFIG_EARLY_PRINTK=y
-CONFIG_GENERIC_ATOMIC64=y
-CONFIG_GENERIC_CLOCKEVENTS=y
-CONFIG_GENERIC_CMOS_UPDATE=y
-CONFIG_GENERIC_IO=y
-CONFIG_GENERIC_IRQ_CHIP=y
-CONFIG_GENERIC_IRQ_SHOW=y
-CONFIG_GENERIC_PCI_IOMAP=y
-CONFIG_GENERIC_PHY=y
-CONFIG_GENERIC_SCHED_CLOCK=y
-CONFIG_GENERIC_SMP_IDLE_THREAD=y
-CONFIG_GENERIC_TIME_VSYSCALL=y
-CONFIG_GPIOLIB=y
-CONFIG_GPIO_DEVRES=y
-CONFIG_GPIO_MT7621=y
-# CONFIG_GPIO_RALINK is not set
-CONFIG_GPIO_SYSFS=y
-CONFIG_HARDWARE_WATCHPOINTS=y
-CONFIG_HAS_DMA=y
-CONFIG_HAS_IOMEM=y
-CONFIG_HAS_IOPORT_MAP=y
-# CONFIG_HAVE_64BIT_ALIGNED_ACCESS is not set
-# CONFIG_HAVE_ARCH_BITREVERSE is not set
-CONFIG_HAVE_ARCH_JUMP_LABEL=y
-CONFIG_HAVE_ARCH_KGDB=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_CC_STACKPROTECTOR=y
-CONFIG_HAVE_CLK=y
-CONFIG_HAVE_CONTEXT_TRACKING=y
-CONFIG_HAVE_C_RECORDMCOUNT=y
-CONFIG_HAVE_DEBUG_KMEMLEAK=y
-CONFIG_HAVE_DEBUG_STACKOVERFLOW=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_IDE=y
-CONFIG_HAVE_IRQ_TIME_ACCOUNTING=y
-CONFIG_HAVE_KVM=y
-CONFIG_HAVE_LATENCYTOP_SUPPORT=y
-CONFIG_HAVE_MACH_CLKDEV=y
-CONFIG_HAVE_MEMBLOCK=y
-CONFIG_HAVE_MEMBLOCK_NODE_MAP=y
-CONFIG_HAVE_MOD_ARCH_SPECIFIC=y
-CONFIG_HAVE_NET_DSA=y
-CONFIG_HAVE_OPROFILE=y
-CONFIG_HAVE_PERF_EVENTS=y
-CONFIG_HAVE_SYSCALL_TRACEPOINTS=y
-CONFIG_HAVE_VIRT_CPU_ACCOUNTING_GEN=y
-CONFIG_HW_HAS_PCI=y
-CONFIG_HZ_PERIODIC=y
-CONFIG_ICPLUS_PHY=y
-CONFIG_INITRAMFS_SOURCE=""
-CONFIG_IRQCHIP=y
-CONFIG_IRQ_DOMAIN=y
-CONFIG_IRQ_FORCED_THREADING=y
-CONFIG_IRQ_INTC=y
-CONFIG_IRQ_MIPS_CPU=y
-CONFIG_IRQ_WORK=y
-CONFIG_LIBFDT=y
-CONFIG_MDIO_BOARDINFO=y
-CONFIG_MIPS=y
-CONFIG_MIPS_CLOCK_VSYSCALL=y
-# CONFIG_MIPS_CMDLINE_DTB_EXTEND is not set
-# CONFIG_MIPS_CMDLINE_FROM_BOOTLOADER is not set
-CONFIG_MIPS_CMDLINE_FROM_DTB=y
-# CONFIG_MIPS_ELF_APPENDED_DTB is not set
-CONFIG_MIPS_FPU_EMULATOR=y
-# CONFIG_MIPS_HUGE_TLB_SUPPORT is not set
-CONFIG_MIPS_L1_CACHE_SHIFT=5
-# CONFIG_MIPS_MACHINE is not set
-CONFIG_MIPS_NO_APPENDED_DTB=y
-# CONFIG_MIPS_RAW_APPENDED_DTB is not set
-CONFIG_MIPS_SPRAM=y
-CONFIG_MODULES_USE_ELF_REL=y
-CONFIG_MT7621_WDT=y
-# CONFIG_MTD_CFI_INTELEXT is not set
-CONFIG_MTD_CMDLINE_PARTS=y
-CONFIG_MTD_M25P80=y
-CONFIG_MTD_NAND_MT7620=y
-CONFIG_MTD_PHYSMAP=y
-CONFIG_MTD_SPI_NOR=y
-CONFIG_MTD_SPLIT_FIRMWARE=y
-CONFIG_MTD_SPLIT_UIMAGE_FW=y
-CONFIG_NEED_DMA_MAP_STATE=y
-CONFIG_NEED_PER_CPU_KM=y
-CONFIG_NET_MEDIATEK_ESW_RT3050=y
-# CONFIG_NET_MEDIATEK_MT7620 is not set
-CONFIG_NET_MEDIATEK_RT3050=y
-CONFIG_NET_MEDIATEK_SOC=y
-CONFIG_NET_VENDOR_MEDIATEK=y
-CONFIG_NO_GENERIC_PCI_IOPORT_MAP=y
-# CONFIG_NO_IOPORT_MAP is not set
-CONFIG_OF=y
-CONFIG_OF_ADDRESS=y
-CONFIG_OF_ADDRESS_PCI=y
-CONFIG_OF_EARLY_FLATTREE=y
-CONFIG_OF_FLATTREE=y
-CONFIG_OF_GPIO=y
-CONFIG_OF_IRQ=y
-CONFIG_OF_MDIO=y
-CONFIG_OF_MTD=y
-CONFIG_OF_NET=y
-CONFIG_OF_PCI=y
-CONFIG_OF_PCI_IRQ=y
-CONFIG_PCI=y
-CONFIG_PCI_DOMAINS=y
-CONFIG_PERF_USE_VMALLOC=y
-CONFIG_PGTABLE_LEVELS=2
-CONFIG_PHYLIB=y
-CONFIG_PHY_RALINK_USB=y
-CONFIG_PINCTRL=y
-CONFIG_PINCTRL_RT2880=y
-# CONFIG_PINCTRL_SINGLE is not set
-CONFIG_PWM=y
-CONFIG_PWM_MEDIATEK=y
-CONFIG_PWM_SYSFS=y
-CONFIG_RALINK=y
-# CONFIG_RALINK_WDT is not set
-# CONFIG_RCU_STALL_COMMON is not set
-CONFIG_RESET_CONTROLLER=y
-CONFIG_SCHED_HRTICK=y
-# CONFIG_SCHED_INFO is not set
-# CONFIG_SCSI_DMA is not set
-# CONFIG_SERIAL_8250_FSL is not set
-CONFIG_SERIAL_8250_NR_UARTS=3
-CONFIG_SERIAL_8250_RUNTIME_UARTS=3
-CONFIG_SERIAL_OF_PLATFORM=y
-CONFIG_SOC_MT7620=y
-# CONFIG_SOC_MT7621 is not set
-# CONFIG_SOC_RT288X is not set
-# CONFIG_SOC_RT305X is not set
-# CONFIG_SOC_RT3883 is not set
-CONFIG_SPI=y
-CONFIG_SPI_MASTER=y
-CONFIG_SPI_MT7621=y
-# CONFIG_SPI_RT2880 is not set
-# CONFIG_SPI_SPIDEV is not set
-CONFIG_SRCU=y
-CONFIG_SWCONFIG=y
-CONFIG_SYSCTL_EXCEPTION_TRACE=y
-CONFIG_SYS_HAS_CPU_MIPS32_R1=y
-CONFIG_SYS_HAS_CPU_MIPS32_R2=y
-CONFIG_SYS_HAS_EARLY_PRINTK=y
-CONFIG_SYS_SUPPORTS_32BIT_KERNEL=y
-CONFIG_SYS_SUPPORTS_ARBIT_HZ=y
-CONFIG_SYS_SUPPORTS_LITTLE_ENDIAN=y
-CONFIG_SYS_SUPPORTS_MIPS16=y
-CONFIG_TICK_CPU_ACCOUNTING=y
-CONFIG_USB_SUPPORT=y
-CONFIG_USE_OF=y
-CONFIG_WATCHDOG_CORE=y
-CONFIG_ZONE_DMA_FLAG=0
+++ /dev/null
-#
-# Copyright (C) 2011 OpenWrt.org
-#
-# This is free software, licensed under the GNU General Public License v2.
-# See /LICENSE for more information.
-#
-
-define Profile/Default
- NAME:=Default Profile
- PRIORITY:=1
- PACKAGES:= kmod-usb-core kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
-endef
-
-define Profile/Default/Description
- Default package set compatible with most boards.
-endef
-$(eval $(call Profile,Default))
+++ /dev/null
-#
-# Copyright (C) 2015 OpenWrt.org
-#
-
-SUBTARGET:=mt7688
-BOARDNAME:=MT7688 based boards
-FEATURES+=usb
-CPU_TYPE:=24kc
-
-DEFAULT_PACKAGES += kmod-mt76
-
-define Target/Description
- Build firmware images for Ralink MT7688 based boards.
-endef
-
--- /dev/null
+diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c
+index fe9ceb7..2151975 100644
+--- a/drivers/mtd/devices/m25p80.c
++++ b/drivers/mtd/devices/m25p80.c
+@@ -27,6 +27,9 @@
+ #include <linux/spi/flash.h>
+ #include <linux/mtd/spi-nor.h>
+
++#define OPCODE_RESET_ENABLE 0x66
++#define OPCODE_RESET 0x99
++
+ #define MAX_CMD_SIZE 6
+ struct m25p {
+ struct spi_device *spi;
+@@ -168,6 +171,17 @@ static int m25p80_erase(struct spi_nor *nor, loff_t offset)
+ return 0;
+ }
+
++void m25p80_reboot(struct mtd_info *mtd)
++{
++ struct spi_nor *nor = container_of(mtd, struct spi_nor, mtd);
++ struct m25p *flash = nor->priv;
++
++ flash->command[0] = OPCODE_RESET_ENABLE;
++ spi_write(flash->spi, flash->command, 1);
++ flash->command[0] = OPCODE_RESET;
++ spi_write(flash->spi, flash->command, 1);
++}
++
+ /*
+ * board specific setup should have ensured the SPI clock used here
+ * matches what the READ command supports, at least until this driver
+@@ -197,6 +211,7 @@ static int m25p_probe(struct spi_device *spi)
+ nor->erase = m25p80_erase;
+ nor->write_reg = m25p80_write_reg;
+ nor->read_reg = m25p80_read_reg;
++ nor->mtd._reboot = m25p80_reboot;
+
+ nor->dev = &spi->dev;
+ nor->flash_node = spi->dev.of_node;
+--
+2.9.3
+
SUBTARGET:=rt288x
BOARDNAME:=RT288x based boards
-CPU_TYPE:=24kc
+CPU_TYPE:=mips32r2
DEFAULT_PACKAGES += kmod-rt2800-soc