mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
ramips: re-add devices and use wpad-openssl
Re-add devices: XiaoMi Wifi R3/R4/AC2100, JDCloud Signed-off-by: AmadeusGhost <42570690+AmadeusGhost@users.noreply.github.com>
This commit is contained in:
parent
3fcc387312
commit
6b8c4c3bbb
@ -36,6 +36,9 @@ zbtlink,zbt-wg2626)
|
||||
linksys,ea7500-v2|\
|
||||
xiaomi,mir3p|\
|
||||
xiaomi,mir3g|\
|
||||
xiaomi,mir4|\
|
||||
xiaomi,miwifi-r3|\
|
||||
xiaomi,mi-router-ac2100|\
|
||||
xiaomi,redmi-router-ac2100)
|
||||
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x1000" "0x20000"
|
||||
;;
|
||||
|
169
target/linux/ramips/dts/mt7620a_xiaomi_miwifi-r3.dts
Normal file
169
target/linux/ramips/dts/mt7620a_xiaomi_miwifi-r3.dts
Normal file
@ -0,0 +1,169 @@
|
||||
/dts-v1/;
|
||||
|
||||
#include "mt7620a.dtsi"
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
|
||||
/ {
|
||||
compatible = "xiaomi,miwifi-r3", "ralink,mt7620a-soc";
|
||||
model = "Xiaomi Mi Router R3";
|
||||
|
||||
aliases {
|
||||
led-status = &led_status_blue;
|
||||
};
|
||||
|
||||
chosen {
|
||||
bootargs = "console=ttyS0,115200";
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
reset {
|
||||
label = "reset";
|
||||
gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
|
||||
linux,code = <KEY_RESTART>;
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
led_status_blue: blue {
|
||||
label = "miwifi-r3:blue:status";
|
||||
gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
|
||||
default-state = "on";
|
||||
};
|
||||
|
||||
yellow {
|
||||
label = "miwifi-r3:yellow:status";
|
||||
gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
red {
|
||||
label = "miwifi-r3:red:status";
|
||||
gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
|
||||
nand {
|
||||
status = "okay";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
compatible = "mtk,mt7620-nand";
|
||||
|
||||
partition@0 {
|
||||
label = "Bootloader";
|
||||
reg = <0x0 0x40000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@40000 {
|
||||
label = "Config";
|
||||
reg = <0x40000 0x40000>;
|
||||
};
|
||||
|
||||
partition@80000 {
|
||||
label = "Bdata";
|
||||
reg = <0x80000 0x40000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
factory: partition@0xc0000 {
|
||||
label = "factory";
|
||||
reg = <0xc0000 0x40000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@100000 {
|
||||
label = "crash";
|
||||
reg = <0x100000 0x40000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@140000 {
|
||||
label = "crash_syslog";
|
||||
reg = <0x140000 0x40000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@180000 {
|
||||
label = "reserved0";
|
||||
reg = <0x180000 0x80000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@200000 {
|
||||
label = "kernel_stock";
|
||||
reg = <0x200000 0x400000>;
|
||||
};
|
||||
|
||||
partition@600000 {
|
||||
label = "kernel";
|
||||
reg = <0x600000 0x400000>;
|
||||
};
|
||||
|
||||
/* ubi partition is the result of squashing
|
||||
* next consequent stock partitions:
|
||||
* - rootfs0 (rootfs partition for stock kernel0),
|
||||
* - rootfs1 (rootfs partition for stock failsafe kernel1),
|
||||
* - overlay (used as ubi overlay in stock fw)
|
||||
* resulting 117,5MiB space for packages.
|
||||
*/
|
||||
partition@a00000 {
|
||||
label = "ubi";
|
||||
reg = <0xa00000 0x7600000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&gpio1 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&ehci {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&ohci {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
ðernet {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&ephy_pins>;
|
||||
mtd-mac-address = <&factory 0x28>;
|
||||
mediatek,portmap = "llllw";
|
||||
};
|
||||
|
||||
&wmac {
|
||||
ralink,mtd-eeprom = <&factory 0>;
|
||||
};
|
||||
|
||||
&pcie {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&pcie0 {
|
||||
wifi@0,0 {
|
||||
compatible = "pci14c3,7662";
|
||||
reg = <0x0000 0 0 0 0>;
|
||||
mediatek,mtd-eeprom = <&factory 0x8000>;
|
||||
ieee80211-freq-limit = <5000000 6000000>;
|
||||
};
|
||||
};
|
||||
|
||||
&pinctrl {
|
||||
state_default: pinctrl0 {
|
||||
gpio {
|
||||
groups = "rgmii1";
|
||||
function = "gpio";
|
||||
};
|
||||
|
||||
pa {
|
||||
groups = "pa";
|
||||
function = "pa";
|
||||
};
|
||||
};
|
||||
};
|
163
target/linux/ramips/dts/mt7621_jdcloud_re-sp-01b.dts
Normal file
163
target/linux/ramips/dts/mt7621_jdcloud_re-sp-01b.dts
Normal file
@ -0,0 +1,163 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
/dts-v1/;
|
||||
|
||||
#include "mt7621.dtsi"
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
|
||||
/ {
|
||||
compatible = "jdcloud,re-sp-01b", "mediatek,mt7621-soc";
|
||||
model = "JDCloud RE-SP-01B";
|
||||
|
||||
aliases {
|
||||
led-boot = &led_red;
|
||||
led-failsafe = &led_red;
|
||||
led-running = &led_green;
|
||||
led-upgrade = &led_blue;
|
||||
label-mac-device = &gmac0;
|
||||
};
|
||||
|
||||
chosen {
|
||||
bootargs = "console=ttyS0,115200";
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
reset {
|
||||
label = "reset";
|
||||
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
|
||||
linux,code = <KEY_RESTART>;
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
led_red: red {
|
||||
label = "jdcloud:red:sys";
|
||||
gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
|
||||
panic-indicator;
|
||||
};
|
||||
|
||||
led_green: green {
|
||||
label = "jdcloud:green:sys";
|
||||
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
led_blue: blue {
|
||||
label = "jdcloud:blue:sys";
|
||||
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&sdhci {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&spi0 {
|
||||
status = "okay";
|
||||
|
||||
flash@0 {
|
||||
compatible = "jedec,spi-nor";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <50000000>;
|
||||
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
partition@0 {
|
||||
label = "u-boot";
|
||||
reg = <0x0 0x30000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
config: partition@30000 {
|
||||
label = "config";
|
||||
reg = <0x30000 0x10000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
factory: partition@40000 {
|
||||
label = "factory";
|
||||
reg = <0x40000 0x10000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@50000 {
|
||||
compatible = "denx,uimage";
|
||||
label = "firmware";
|
||||
reg = <0x50000 0x1ab0000>;
|
||||
};
|
||||
|
||||
partition@1b00000 {
|
||||
label = "mini";
|
||||
reg = <0x1b00000 0x400000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@1f00000 {
|
||||
label = "oem";
|
||||
reg = <0x1f00000 0x100000>;
|
||||
read-only;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&gmac0 {
|
||||
mtd-mac-address-ascii = <&config 0x4429>;
|
||||
};
|
||||
|
||||
&switch0 {
|
||||
ports {
|
||||
port@0 {
|
||||
status = "okay";
|
||||
label = "wan";
|
||||
};
|
||||
|
||||
port@1 {
|
||||
status = "okay";
|
||||
label = "lan1";
|
||||
};
|
||||
|
||||
port@2 {
|
||||
status = "okay";
|
||||
label = "lan2";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&pcie {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&pcie0 {
|
||||
wifi@0,0 {
|
||||
reg = <0x0000 0 0 0 0>;
|
||||
mtd-mac-address-ascii = <&config 0x4429>;
|
||||
mediatek,mtd-eeprom = <&factory 0x0>;
|
||||
};
|
||||
};
|
||||
|
||||
&pcie1 {
|
||||
wifi@0,0 {
|
||||
reg = <0x0000 0 0 0 0>;
|
||||
mtd-mac-address-ascii = <&config 0x4429>;
|
||||
mtd-mac-address-increment = <0x80>;
|
||||
mtd-mac-address-increment-byte = <3>;
|
||||
mediatek,mtd-eeprom = <&factory 0x8000>;
|
||||
ieee80211-freq-limit = <5000000 6000000>;
|
||||
};
|
||||
};
|
||||
|
||||
&state_default {
|
||||
gpio {
|
||||
groups = "uart2", "uart3", "wdt";
|
||||
function = "gpio";
|
||||
};
|
||||
};
|
41
target/linux/ramips/dts/mt7621_xiaomi_mi-router-ac2100.dts
Normal file
41
target/linux/ramips/dts/mt7621_xiaomi_mi-router-ac2100.dts
Normal file
@ -0,0 +1,41 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
/dts-v1/;
|
||||
|
||||
#include "mt7621_xiaomi_router-ac2100.dtsi"
|
||||
|
||||
/ {
|
||||
compatible = "xiaomi,mi-router-ac2100", "mediatek,mt7621-soc";
|
||||
model = "Xiaomi Mi Router AC2100";
|
||||
|
||||
aliases {
|
||||
led-boot = &led_status_yellow;
|
||||
led-failsafe = &led_status_yellow;
|
||||
led-running = &led_status_blue;
|
||||
led-upgrade = &led_status_blue;
|
||||
label-mac-device = &gmac0;
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
wan_yellow {
|
||||
label = "mi-router-ac2100:yellow:wan";
|
||||
gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
wan_blue {
|
||||
label = "mi-router-ac2100:blue:wan";
|
||||
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
led_status_yellow: status_yellow {
|
||||
label = "mi-router-ac2100:yellow:status";
|
||||
gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
led_status_blue: status_blue {
|
||||
label = "mi-router-ac2100:blue:status";
|
||||
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
};
|
173
target/linux/ramips/dts/mt7621_xiaomi_mir4.dts
Normal file
173
target/linux/ramips/dts/mt7621_xiaomi_mir4.dts
Normal file
@ -0,0 +1,173 @@
|
||||
/dts-v1/;
|
||||
|
||||
#include "mt7621.dtsi"
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
|
||||
/ {
|
||||
compatible = "xiaomi,mir4", "mediatek,mt7621-soc";
|
||||
model = "Xiaomi Mi Router 4";
|
||||
|
||||
aliases {
|
||||
led-boot = &led_status_yellow;
|
||||
led-failsafe = &led_status_red;
|
||||
led-running = &led_status_blue;
|
||||
led-upgrade = &led_status_yellow;
|
||||
label-mac-device = &gmac0;
|
||||
};
|
||||
|
||||
chosen {
|
||||
bootargs = "console=ttyS0,115200n8";
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
led_status_red: status_red {
|
||||
label = "mir4:red:status";
|
||||
gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
led_status_blue: status_blue {
|
||||
label = "mir4:blue:status";
|
||||
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
led_status_yellow: status_yellow {
|
||||
label = "mir4:yellow:status";
|
||||
gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
reset {
|
||||
label = "reset";
|
||||
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
|
||||
linux,code = <KEY_RESTART>;
|
||||
};
|
||||
|
||||
minet {
|
||||
label = "minet";
|
||||
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
|
||||
linux,code = <KEY_WPS_BUTTON>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&nand {
|
||||
status = "okay";
|
||||
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
partition@0 {
|
||||
label = "Bootloader";
|
||||
reg = <0x0 0x80000>;
|
||||
};
|
||||
|
||||
partition@80000 {
|
||||
label = "Config";
|
||||
reg = <0x80000 0x40000>;
|
||||
};
|
||||
|
||||
partition@c0000 {
|
||||
label = "Bdata";
|
||||
reg = <0xc0000 0x40000>;
|
||||
};
|
||||
|
||||
factory: partition@100000 {
|
||||
label = "factory";
|
||||
reg = <0x100000 0x40000>;
|
||||
};
|
||||
|
||||
partition@140000 {
|
||||
label = "crash";
|
||||
reg = <0x140000 0x40000>;
|
||||
};
|
||||
|
||||
partition@180000 {
|
||||
label = "crash_syslog";
|
||||
reg = <0x180000 0x40000>;
|
||||
};
|
||||
|
||||
partition@1c0000 {
|
||||
label = "reserved0";
|
||||
reg = <0x1c0000 0x40000>;
|
||||
};
|
||||
|
||||
/* uboot expects to find kernels at 0x200000 & 0x600000
|
||||
* referred to as system 1 & system 2 respectively.
|
||||
* a kernel is considered suitable for handing control over
|
||||
* if its linux magic number exists & uImage CRC are correct.
|
||||
* If either of those conditions fail, a matching sys'n'_fail flag
|
||||
* is set in uboot env & a restart performed in the hope that the
|
||||
* alternate kernel is okay.
|
||||
* if neither kernel checksums ok and both are marked failed, system 2
|
||||
* is booted anyway.
|
||||
*
|
||||
* Note uboot's tftp flash install writes the transferred
|
||||
* image to both kernel partitions.
|
||||
*/
|
||||
|
||||
partition@200000 {
|
||||
label = "kernel_stock";
|
||||
reg = <0x200000 0x400000>;
|
||||
};
|
||||
|
||||
partition@600000 {
|
||||
label = "kernel";
|
||||
reg = <0x600000 0x400000>;
|
||||
};
|
||||
|
||||
/* ubi partition is the result of squashing
|
||||
* next consecutive stock partitions:
|
||||
* - rootfs0 (rootfs partition for stock kernel0),
|
||||
* - rootfs1 (rootfs partition for stock failsafe kernel1),
|
||||
* - overlay (used as ubi overlay in stock fw)
|
||||
* resulting 117,5MiB space for packages.
|
||||
*/
|
||||
|
||||
partition@a00000 {
|
||||
label = "ubi";
|
||||
reg = <0xa00000 0x7580000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&pcie {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&pcie0 {
|
||||
wifi@0,0 {
|
||||
compatible = "pci14c3,7603";
|
||||
reg = <0x0000 0 0 0 0>;
|
||||
mediatek,mtd-eeprom = <&factory 0x0000>;
|
||||
ieee80211-freq-limit = <2400000 2500000>;
|
||||
};
|
||||
};
|
||||
|
||||
&pcie1 {
|
||||
wifi@0,0 {
|
||||
compatible = "pci14c3,7662";
|
||||
reg = <0x0000 0 0 0 0>;
|
||||
mediatek,mtd-eeprom = <&factory 0x8000>;
|
||||
ieee80211-freq-limit = <5000000 6000000>;
|
||||
};
|
||||
};
|
||||
|
||||
&gmac0 {
|
||||
mtd-mac-address = <&factory 0xe000>;
|
||||
};
|
||||
|
||||
&state_default {
|
||||
gpio {
|
||||
groups = "jtag", "uart2", "uart3", "wdt";
|
||||
function = "gpio";
|
||||
};
|
||||
};
|
@ -1,10 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
/dts-v1/;
|
||||
|
||||
#include "mt7621.dtsi"
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
#include "mt7621_xiaomi_router-ac2100.dtsi"
|
||||
|
||||
/ {
|
||||
compatible = "xiaomi,redmi-router-ac2100", "mediatek,mt7621-soc";
|
||||
@ -18,10 +15,6 @@
|
||||
label-mac-device = &gmac0;
|
||||
};
|
||||
|
||||
chosen {
|
||||
bootargs = "console=ttyS0,115200n8";
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
@ -45,139 +38,4 @@
|
||||
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
reset {
|
||||
label = "reset";
|
||||
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
|
||||
linux,code = <KEY_RESTART>;
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
|
||||
&nand {
|
||||
status = "okay";
|
||||
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
partition@0 {
|
||||
label = "Bootloader";
|
||||
reg = <0x0 0x80000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@80000 {
|
||||
label = "Config";
|
||||
reg = <0x80000 0x40000>;
|
||||
};
|
||||
|
||||
partition@c0000 {
|
||||
label = "Bdata";
|
||||
reg = <0xc0000 0x40000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
factory: partition@100000 {
|
||||
label = "factory";
|
||||
reg = <0x100000 0x40000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@140000 {
|
||||
label = "crash";
|
||||
reg = <0x140000 0x40000>;
|
||||
};
|
||||
|
||||
partition@180000 {
|
||||
label = "crash_syslog";
|
||||
reg = <0x180000 0x40000>;
|
||||
};
|
||||
|
||||
partition@1c0000 {
|
||||
label = "reserved0";
|
||||
reg = <0x1c0000 0x40000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
/* We keep stock xiaomi firmware (kernel0) here */
|
||||
partition@200000 {
|
||||
label = "kernel_stock";
|
||||
reg = <0x200000 0x400000>;
|
||||
};
|
||||
|
||||
partition@600000 {
|
||||
label = "kernel";
|
||||
reg = <0x600000 0x400000>;
|
||||
};
|
||||
|
||||
partition@a00000 {
|
||||
label = "ubi";
|
||||
reg = <0xa00000 0x7580000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&pcie {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&pcie0 {
|
||||
wifi@0,0 {
|
||||
compatible = "mediatek,mt76";
|
||||
reg = <0x0000 0 0 0 0>;
|
||||
mediatek,mtd-eeprom = <&factory 0x8000>;
|
||||
ieee80211-freq-limit = <5000000 6000000>;
|
||||
};
|
||||
};
|
||||
|
||||
&pcie1 {
|
||||
wifi@0,0 {
|
||||
compatible = "mediatek,mt76";
|
||||
reg = <0x0000 0 0 0 0>;
|
||||
mediatek,mtd-eeprom = <&factory 0x0000>;
|
||||
ieee80211-freq-limit = <2400000 2500000>;
|
||||
};
|
||||
};
|
||||
|
||||
&gmac0 {
|
||||
mtd-mac-address = <&factory 0xe000>;
|
||||
};
|
||||
|
||||
&switch0 {
|
||||
ports {
|
||||
port@0 {
|
||||
status = "okay";
|
||||
label = "wan";
|
||||
mtd-mac-address = <&factory 0xe006>;
|
||||
};
|
||||
|
||||
port@2 {
|
||||
status = "okay";
|
||||
label = "lan1";
|
||||
};
|
||||
|
||||
port@3 {
|
||||
status = "okay";
|
||||
label = "lan2";
|
||||
};
|
||||
|
||||
port@4 {
|
||||
status = "okay";
|
||||
label = "lan3";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&state_default {
|
||||
gpio {
|
||||
groups = "uart2", "uart3", "wdt";
|
||||
function = "gpio";
|
||||
};
|
||||
};
|
||||
|
146
target/linux/ramips/dts/mt7621_xiaomi_router-ac2100.dtsi
Normal file
146
target/linux/ramips/dts/mt7621_xiaomi_router-ac2100.dtsi
Normal file
@ -0,0 +1,146 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
|
||||
#include "mt7621.dtsi"
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
|
||||
/ {
|
||||
|
||||
chosen {
|
||||
bootargs = "console=ttyS0,115200n8";
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
reset {
|
||||
label = "reset";
|
||||
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
|
||||
linux,code = <KEY_RESTART>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&nand {
|
||||
status = "okay";
|
||||
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
partition@0 {
|
||||
label = "Bootloader";
|
||||
reg = <0x0 0x80000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@80000 {
|
||||
label = "Config";
|
||||
reg = <0x80000 0x40000>;
|
||||
};
|
||||
|
||||
partition@c0000 {
|
||||
label = "Bdata";
|
||||
reg = <0xc0000 0x40000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
factory: partition@100000 {
|
||||
label = "factory";
|
||||
reg = <0x100000 0x40000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@140000 {
|
||||
label = "crash";
|
||||
reg = <0x140000 0x40000>;
|
||||
};
|
||||
|
||||
partition@180000 {
|
||||
label = "crash_syslog";
|
||||
reg = <0x180000 0x40000>;
|
||||
};
|
||||
|
||||
partition@1c0000 {
|
||||
label = "reserved0";
|
||||
reg = <0x1c0000 0x40000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
/* We keep stock xiaomi firmware (kernel0) here */
|
||||
partition@200000 {
|
||||
label = "kernel_stock";
|
||||
reg = <0x200000 0x400000>;
|
||||
};
|
||||
|
||||
partition@600000 {
|
||||
label = "kernel";
|
||||
reg = <0x600000 0x400000>;
|
||||
};
|
||||
|
||||
partition@a00000 {
|
||||
label = "ubi";
|
||||
reg = <0xa00000 0x7580000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&pcie {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&pcie0 {
|
||||
wifi@0,0 {
|
||||
compatible = "mediatek,mt76";
|
||||
reg = <0x0000 0 0 0 0>;
|
||||
mediatek,mtd-eeprom = <&factory 0x8000>;
|
||||
ieee80211-freq-limit = <5000000 6000000>;
|
||||
};
|
||||
};
|
||||
|
||||
&pcie1 {
|
||||
wifi@0,0 {
|
||||
compatible = "mediatek,mt76";
|
||||
reg = <0x0000 0 0 0 0>;
|
||||
mediatek,mtd-eeprom = <&factory 0x0000>;
|
||||
ieee80211-freq-limit = <2400000 2500000>;
|
||||
};
|
||||
};
|
||||
|
||||
&gmac0 {
|
||||
mtd-mac-address = <&factory 0xe000>;
|
||||
};
|
||||
|
||||
&switch0 {
|
||||
ports {
|
||||
port@0 {
|
||||
status = "okay";
|
||||
label = "wan";
|
||||
mtd-mac-address = <&factory 0xe006>;
|
||||
};
|
||||
|
||||
port@2 {
|
||||
status = "okay";
|
||||
label = "lan1";
|
||||
};
|
||||
|
||||
port@3 {
|
||||
status = "okay";
|
||||
label = "lan2";
|
||||
};
|
||||
|
||||
port@4 {
|
||||
status = "okay";
|
||||
label = "lan3";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&state_default {
|
||||
gpio {
|
||||
groups = "uart2", "uart3", "wdt";
|
||||
function = "gpio";
|
||||
};
|
||||
};
|
@ -1057,6 +1057,23 @@ define Device/xiaomi_miwifi-mini
|
||||
endef
|
||||
TARGET_DEVICES += xiaomi_miwifi-mini
|
||||
|
||||
define Device/xiaomi_miwifi-r3
|
||||
SOC := mt7620a
|
||||
BLOCKSIZE := 128k
|
||||
PAGESIZE := 2048
|
||||
KERNEL_SIZE := 4096k
|
||||
IMAGE_SIZE := 32768k
|
||||
UBINIZE_OPTS := -E 5
|
||||
IMAGES += kernel1.bin rootfs0.bin
|
||||
IMAGE/kernel1.bin := append-kernel | check-size
|
||||
IMAGE/rootfs0.bin := append-ubi | check-size
|
||||
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
||||
DEVICE_VENDOR := Xiaomi
|
||||
DEVICE_MODEL := Mi Router R3
|
||||
DEVICE_PACKAGES := kmod-mt76x2 kmod-usb2 kmod-usb-ohci uboot-envtools
|
||||
endef
|
||||
TARGET_DEVICES += xiaomi_miwifi-r3
|
||||
|
||||
define Device/youku_yk1
|
||||
SOC := mt7620a
|
||||
IMAGE_SIZE := 32448k
|
||||
|
@ -110,7 +110,7 @@ define Device/afoundry_ew1200
|
||||
DEVICE_VENDOR := AFOUNDRY
|
||||
DEVICE_MODEL := EW1200
|
||||
DEVICE_PACKAGES := kmod-ata-ahci kmod-mt76x2 kmod-mt7603 kmod-usb3 \
|
||||
kmod-usb-ledtrig-usbport wpad-basic
|
||||
kmod-usb-ledtrig-usbport wpad-openssl
|
||||
SUPPORTED_DEVICES += ew1200
|
||||
endef
|
||||
TARGET_DEVICES += afoundry_ew1200
|
||||
@ -144,7 +144,7 @@ define Device/asus_rt-ac57u
|
||||
DEVICE_MODEL := RT-AC57U
|
||||
IMAGE_SIZE := 16064k
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
|
||||
kmod-usb-ledtrig-usbport wpad-basic
|
||||
kmod-usb-ledtrig-usbport wpad-openssl
|
||||
endef
|
||||
TARGET_DEVICES += asus_rt-ac57u
|
||||
|
||||
@ -160,7 +160,7 @@ define Device/asus_rt-ac65p
|
||||
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
||||
IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi | \
|
||||
check-size
|
||||
DEVICE_PACKAGES := kmod-usb3 kmod-mt7615e kmod-mt7615-firmware wpad-basic uboot-envtools
|
||||
DEVICE_PACKAGES := kmod-usb3 kmod-mt7615e kmod-mt7615-firmware wpad-openssl uboot-envtools
|
||||
endef
|
||||
TARGET_DEVICES += asus_rt-ac65p
|
||||
|
||||
@ -176,7 +176,7 @@ define Device/asus_rt-ac85p
|
||||
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
||||
IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi | \
|
||||
check-size
|
||||
DEVICE_PACKAGES := kmod-usb3 kmod-mt7615e kmod-mt7615-firmware wpad-basic uboot-envtools
|
||||
DEVICE_PACKAGES := kmod-usb3 kmod-mt7615e kmod-mt7615-firmware wpad-openssl uboot-envtools
|
||||
endef
|
||||
TARGET_DEVICES += asus_rt-ac85p
|
||||
|
||||
@ -186,7 +186,7 @@ define Device/buffalo_wsr-1166dhp
|
||||
IMAGE_SIZE := 15936k
|
||||
DEVICE_VENDOR := Buffalo
|
||||
DEVICE_MODEL := WSR-1166DHP
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 wpad-openssl
|
||||
SUPPORTED_DEVICES += wsr-1166
|
||||
endef
|
||||
TARGET_DEVICES += buffalo_wsr-1166dhp
|
||||
@ -199,7 +199,7 @@ define Device/buffalo_wsr-2533dhpl
|
||||
DEVICE_ALT0_VENDOR := Buffalo
|
||||
DEVICE_ALT0_MODEL := WSR-2533DHP
|
||||
IMAGE/sysupgrade.bin := trx | pad-rootfs | append-metadata
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware wpad-openssl
|
||||
endef
|
||||
TARGET_DEVICES += buffalo_wsr-2533dhpl
|
||||
|
||||
@ -207,7 +207,7 @@ define Device/buffalo_wsr-600dhp
|
||||
IMAGE_SIZE := 16064k
|
||||
DEVICE_VENDOR := Buffalo
|
||||
DEVICE_MODEL := WSR-600DHP
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-rt2800-pci wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-rt2800-pci wpad-openssl
|
||||
SUPPORTED_DEVICES += wsr-600
|
||||
endef
|
||||
TARGET_DEVICES += buffalo_wsr-600dhp
|
||||
@ -223,7 +223,7 @@ define Device/dlink_dir-860l-b1
|
||||
DEVICE_VENDOR := D-Link
|
||||
DEVICE_MODEL := DIR-860L
|
||||
DEVICE_VARIANT := B1
|
||||
DEVICE_PACKAGES := kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-openssl
|
||||
SUPPORTED_DEVICES += dir-860l-b1
|
||||
endef
|
||||
TARGET_DEVICES += dlink_dir-860l-b1
|
||||
@ -234,7 +234,7 @@ define Device/d-team_newifi-d2
|
||||
DEVICE_VENDOR := Newifi
|
||||
DEVICE_MODEL := D2
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
|
||||
kmod-usb-ledtrig-usbport wpad-basic
|
||||
kmod-usb-ledtrig-usbport wpad-openssl
|
||||
endef
|
||||
TARGET_DEVICES += d-team_newifi-d2
|
||||
|
||||
@ -243,7 +243,7 @@ define Device/d-team_pbr-m1
|
||||
DEVICE_VENDOR := PandoraBox
|
||||
DEVICE_MODEL := PBR-M1
|
||||
DEVICE_PACKAGES := kmod-ata-ahci kmod-mt7603 kmod-mt76x2 kmod-sdhci-mt7620 \
|
||||
kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
|
||||
kmod-usb3 kmod-usb-ledtrig-usbport wpad-openssl
|
||||
SUPPORTED_DEVICES += pbr-m1
|
||||
endef
|
||||
TARGET_DEVICES += d-team_pbr-m1
|
||||
@ -257,7 +257,7 @@ define Device/edimax_ra21s
|
||||
IMAGES += factory.bin
|
||||
IMAGE/factory.bin := $$(sysupgrade_bin) | check-size | \
|
||||
elx-header 02020040 8844A2D168B45A2D
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware wpad-openssl
|
||||
endef
|
||||
TARGET_DEVICES += edimax_ra21s
|
||||
|
||||
@ -268,7 +268,7 @@ define Device/edimax_rg21s
|
||||
IMAGES += factory.bin
|
||||
IMAGE/factory.bin := $$(sysupgrade_bin) | check-size | \
|
||||
elx-header 02020038 8844A2D168B45A2D
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware wpad-openssl
|
||||
endef
|
||||
TARGET_DEVICES += edimax_rg21s
|
||||
|
||||
@ -279,7 +279,7 @@ define Device/elecom_wrc-1167ghbk2-s
|
||||
IMAGES += factory.bin
|
||||
IMAGE/factory.bin := $$(sysupgrade_bin) | check-size | \
|
||||
elecom-wrc-factory WRC-1167GHBK2-S 0.00
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware wpad-openssl
|
||||
endef
|
||||
TARGET_DEVICES += elecom_wrc-1167ghbk2-s
|
||||
|
||||
@ -291,7 +291,7 @@ define Device/elecom_wrc-1900gst
|
||||
IMAGES += factory.bin
|
||||
IMAGE/factory.bin := $$(sysupgrade_bin) | check-size | \
|
||||
elecom-gst-factory WRC-1900GST 0.00
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware wpad-openssl
|
||||
endef
|
||||
TARGET_DEVICES += elecom_wrc-1900gst
|
||||
|
||||
@ -303,7 +303,7 @@ define Device/elecom_wrc-2533gst
|
||||
IMAGES += factory.bin
|
||||
IMAGE/factory.bin := $$(sysupgrade_bin) | check-size | \
|
||||
elecom-gst-factory WRC-2533GST 0.00
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware wpad-openssl
|
||||
endef
|
||||
TARGET_DEVICES += elecom_wrc-2533gst
|
||||
|
||||
@ -315,7 +315,7 @@ define Device/elecom_wrc-2533gst2
|
||||
IMAGES += factory.bin
|
||||
IMAGE/factory.bin := $$(sysupgrade_bin) | check-size | \
|
||||
elecom-gst-factory WRC-2533GST2 0.00
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware wpad-openssl
|
||||
endef
|
||||
TARGET_DEVICES += elecom_wrc-2533gst2
|
||||
|
||||
@ -323,7 +323,7 @@ define Device/firefly_firewrt
|
||||
IMAGE_SIZE := 16064k
|
||||
DEVICE_VENDOR := Firefly
|
||||
DEVICE_MODEL := FireWRT
|
||||
DEVICE_PACKAGES := kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-openssl
|
||||
SUPPORTED_DEVICES += firewrt
|
||||
endef
|
||||
TARGET_DEVICES += firefly_firewrt
|
||||
@ -333,7 +333,7 @@ define Device/gehua_ghl-r-001
|
||||
DEVICE_VENDOR := GeHua
|
||||
DEVICE_MODEL := GHL-R-001
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
|
||||
kmod-usb-ledtrig-usbport wpad-basic
|
||||
kmod-usb-ledtrig-usbport wpad-openssl
|
||||
endef
|
||||
TARGET_DEVICES += gehua_ghl-r-001
|
||||
|
||||
@ -365,7 +365,7 @@ define Device/hiwifi_hc5962
|
||||
check-size
|
||||
DEVICE_VENDOR := HiWiFi
|
||||
DEVICE_MODEL := HC5962
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 wpad-openssl
|
||||
endef
|
||||
TARGET_DEVICES += hiwifi_hc5962
|
||||
|
||||
@ -376,7 +376,7 @@ define Device/iodata_wn-ax1167gr
|
||||
iodata-factory 7864320 4 0x1055 $(KDIR)/tmp/$$(KERNEL_INITRAMFS_PREFIX)-factory.bin
|
||||
DEVICE_VENDOR := I-O DATA
|
||||
DEVICE_MODEL := WN-AX1167GR
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 wpad-openssl
|
||||
endef
|
||||
TARGET_DEVICES += iodata_wn-ax1167gr
|
||||
|
||||
@ -398,7 +398,7 @@ define Device/iodata_wn-ax1167gr2
|
||||
DEVICE_MODEL := WN-AX1167GR2
|
||||
KERNEL_INITRAMFS := $(KERNEL_DTB) | loader-kernel | lzma | \
|
||||
custom-initramfs-uimage 3.10(XBC.1)b10 | iodata-mstc-header
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware wpad-openssl
|
||||
endef
|
||||
TARGET_DEVICES += iodata_wn-ax1167gr2
|
||||
|
||||
@ -408,7 +408,7 @@ define Device/iodata_wn-ax2033gr
|
||||
DEVICE_MODEL := WN-AX2033GR
|
||||
KERNEL_INITRAMFS := $(KERNEL_DTB) | loader-kernel | lzma | \
|
||||
custom-initramfs-uimage 3.10(VST.1)C10 | iodata-mstc-header
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-mt7615e kmod-mt7615-firmware wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-mt7615e kmod-mt7615-firmware wpad-openssl
|
||||
endef
|
||||
TARGET_DEVICES += iodata_wn-ax2033gr
|
||||
|
||||
@ -418,7 +418,7 @@ define Device/iodata_wn-dx1167r
|
||||
DEVICE_MODEL := WN-DX1167R
|
||||
KERNEL_INITRAMFS := $(KERNEL_DTB) | loader-kernel | lzma | \
|
||||
custom-initramfs-uimage 3.10(XIK.1)b10 | iodata-mstc-header
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware wpad-openssl
|
||||
endef
|
||||
TARGET_DEVICES += iodata_wn-dx1167r
|
||||
|
||||
@ -427,7 +427,7 @@ define Device/iodata_wn-gx300gr
|
||||
IMAGE_SIZE := 7616k
|
||||
DEVICE_VENDOR := I-O DATA
|
||||
DEVICE_MODEL := WN-GX300GR
|
||||
DEVICE_PACKAGES := kmod-mt7603 wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt7603 wpad-openssl
|
||||
endef
|
||||
TARGET_DEVICES += iodata_wn-gx300gr
|
||||
|
||||
@ -439,7 +439,7 @@ define Device/iodata_wnpr2600g
|
||||
IMAGES += factory.bin
|
||||
IMAGE/factory.bin := $$(sysupgrade_bin) | check-size | \
|
||||
elx-header 0104003a 8844A2D168B45A2D
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware wpad-openssl
|
||||
endef
|
||||
TARGET_DEVICES += iodata_wnpr2600g
|
||||
|
||||
@ -448,7 +448,7 @@ define Device/iptime_a6ns-m
|
||||
UIMAGE_NAME := a6nm
|
||||
DEVICE_VENDOR := ipTIME
|
||||
DEVICE_MODEL := A6ns-M
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware kmod-usb3 kmod-usb-ledtrig-usbport wpad-openssl
|
||||
endef
|
||||
TARGET_DEVICES += iptime_a6ns-m
|
||||
|
||||
@ -457,7 +457,7 @@ define Device/iptime_a8004t
|
||||
UIMAGE_NAME := a8004t
|
||||
DEVICE_VENDOR := ipTIME
|
||||
DEVICE_MODEL := A8004T
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware kmod-usb3 wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware kmod-usb3 wpad-openssl
|
||||
endef
|
||||
TARGET_DEVICES += iptime_a8004t
|
||||
|
||||
@ -468,17 +468,26 @@ define Device/jcg_jhr-ac876m
|
||||
JCG_MAXSIZE := 16064k
|
||||
DEVICE_VENDOR := JCG
|
||||
DEVICE_MODEL := JHR-AC876M
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware kmod-usb3 kmod-usb-ledtrig-usbport wpad-openssl
|
||||
endef
|
||||
TARGET_DEVICES += jcg_jhr-ac876m
|
||||
|
||||
define Device/jdcloud_re-sp-01b
|
||||
IMAGE_SIZE := 27328k
|
||||
DEVICE_VENDOR := JDCloud
|
||||
DEVICE_MODEL := RE-SP-01B
|
||||
DEVICE_PACKAGES := kmod-fs-ext4 kmod-mt7603 kmod-mt7615e kmod-sdhci-mt7620 \
|
||||
kmod-usb3 wpad-openssl
|
||||
endef
|
||||
TARGET_DEVICES += jdcloud_re-sp-01b
|
||||
|
||||
define Device/lenovo_newifi-d1
|
||||
$(Device/uimage-lzma-loader)
|
||||
IMAGE_SIZE := 32448k
|
||||
DEVICE_VENDOR := Newifi
|
||||
DEVICE_MODEL := D1
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-sdhci-mt7620 \
|
||||
kmod-usb-ledtrig-usbport wpad-basic
|
||||
kmod-usb-ledtrig-usbport wpad-openssl
|
||||
SUPPORTED_DEVICES += newifi-d1
|
||||
endef
|
||||
TARGET_DEVICES += lenovo_newifi-d1
|
||||
@ -492,7 +501,7 @@ define Device/linksys_ea7500-v2
|
||||
DEVICE_VENDOR := Linksys
|
||||
DEVICE_MODEL := EA7500
|
||||
DEVICE_VARIANT := v2
|
||||
DEVICE_PACKAGES := kmod-usb3 kmod-mt7615e kmod-mt7615-firmware wpad-basic uboot-envtools
|
||||
DEVICE_PACKAGES := kmod-usb3 kmod-mt7615e kmod-mt7615-firmware wpad-openssl uboot-envtools
|
||||
UBINIZE_OPTS := -E 5
|
||||
IMAGES := sysupgrade.bin factory.bin
|
||||
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata | check-size
|
||||
@ -505,7 +514,7 @@ define Device/linksys_re6500
|
||||
IMAGE_SIZE := 7872k
|
||||
DEVICE_VENDOR := Linksys
|
||||
DEVICE_MODEL := RE6500
|
||||
DEVICE_PACKAGES := kmod-mt76x2 wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt76x2 wpad-openssl
|
||||
SUPPORTED_DEVICES += re6500
|
||||
endef
|
||||
TARGET_DEVICES += linksys_re6500
|
||||
@ -566,7 +575,7 @@ define Device/mqmaker_witi
|
||||
DEVICE_VENDOR := MQmaker
|
||||
DEVICE_MODEL := WiTi
|
||||
DEVICE_PACKAGES := kmod-ata-ahci kmod-mt76x2 kmod-sdhci-mt7620 kmod-usb3 \
|
||||
kmod-usb-ledtrig-usbport wpad-basic
|
||||
kmod-usb-ledtrig-usbport wpad-openssl
|
||||
SUPPORTED_DEVICES += witi mqmaker,witi-256m mqmaker,witi-512m
|
||||
endef
|
||||
TARGET_DEVICES += mqmaker_witi
|
||||
@ -577,14 +586,14 @@ define Device/mtc_wr1201
|
||||
DEVICE_MODEL := Wireless Router WR1201
|
||||
KERNEL_INITRAMFS := $(KERNEL_DTB) | custom-initramfs-uimage WR1201_8_128
|
||||
DEVICE_PACKAGES := kmod-sdhci-mt7620 kmod-mt76x2 kmod-usb3 \
|
||||
kmod-usb-ledtrig-usbport wpad-basic
|
||||
kmod-usb-ledtrig-usbport wpad-openssl
|
||||
endef
|
||||
TARGET_DEVICES += mtc_wr1201
|
||||
|
||||
define Device/netgear_ex6150
|
||||
DEVICE_VENDOR := NETGEAR
|
||||
DEVICE_MODEL := EX6150
|
||||
DEVICE_PACKAGES := kmod-mt76x2 wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt76x2 wpad-openssl
|
||||
NETGEAR_BOARD_ID := U12H318T00_NETGEAR
|
||||
IMAGE_SIZE := 14848k
|
||||
IMAGES += factory.chk
|
||||
@ -606,7 +615,7 @@ define Device/netgear_sercomm_nand
|
||||
IMAGE/kernel.bin := append-kernel
|
||||
IMAGE/rootfs.bin := append-ubi | check-size
|
||||
DEVICE_VENDOR := NETGEAR
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-usb3 kmod-usb-ledtrig-usbport wpad-openssl
|
||||
endef
|
||||
|
||||
define Device/netgear_r6220
|
||||
@ -622,7 +631,6 @@ define Device/netgear_r6220
|
||||
endef
|
||||
TARGET_DEVICES += netgear_r6220
|
||||
|
||||
|
||||
define Device/netgear_r6260
|
||||
$(Device/netgear_sercomm_nand)
|
||||
DEVICE_MODEL := R6260
|
||||
@ -732,7 +740,7 @@ define Device/netgear_wndr3700-v5
|
||||
DEVICE_MODEL := WNDR3700
|
||||
DEVICE_VARIANT := v5
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
|
||||
kmod-usb-ledtrig-usbport wpad-basic
|
||||
kmod-usb-ledtrig-usbport wpad-openssl
|
||||
SUPPORTED_DEVICES += wndr3700v5
|
||||
endef
|
||||
TARGET_DEVICES += netgear_wndr3700-v5
|
||||
@ -752,7 +760,7 @@ define Device/netis_wf2881
|
||||
check-size
|
||||
DEVICE_VENDOR := NETIS
|
||||
DEVICE_MODEL := WF2881
|
||||
DEVICE_PACKAGES := kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-openssl
|
||||
endef
|
||||
TARGET_DEVICES += netis_wf2881
|
||||
|
||||
@ -760,10 +768,8 @@ define Device/phicomm_k2p
|
||||
IMAGE_SIZE := 15744k
|
||||
DEVICE_VENDOR := Phicomm
|
||||
DEVICE_MODEL := K2P
|
||||
DEVICE_ALT0_VENDOR := Phicomm
|
||||
DEVICE_ALT0_MODEL := KE 2P
|
||||
SUPPORTED_DEVICES += k2p
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware wpad-openssl
|
||||
endef
|
||||
TARGET_DEVICES += phicomm_k2p
|
||||
|
||||
@ -782,7 +788,7 @@ define Device/samknows_whitebox-v8
|
||||
DEVICE_VENDOR := SamKnows
|
||||
DEVICE_MODEL := Whitebox 8
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
|
||||
kmod-usb-ledtrig-usbport uboot-envtools wpad-basic
|
||||
kmod-usb-ledtrig-usbport uboot-envtools wpad-openssl
|
||||
SUPPORTED_DEVICES += sk-wb8
|
||||
endef
|
||||
TARGET_DEVICES += samknows_whitebox-v8
|
||||
@ -791,7 +797,7 @@ define Device/storylink_sap-g3200u3
|
||||
IMAGE_SIZE := 7872k
|
||||
DEVICE_VENDOR := STORYLiNK
|
||||
DEVICE_MODEL := SAP-G3200U3
|
||||
DEVICE_PACKAGES := kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-openssl
|
||||
SUPPORTED_DEVICES += sap-g3200u3
|
||||
endef
|
||||
TARGET_DEVICES += storylink_sap-g3200u3
|
||||
@ -800,7 +806,7 @@ define Device/telco-electronics_x1
|
||||
IMAGE_SIZE := 16064k
|
||||
DEVICE_VENDOR := Telco Electronics
|
||||
DEVICE_MODEL := X1
|
||||
DEVICE_PACKAGES := kmod-usb3 kmod-mt76 wpad-basic
|
||||
DEVICE_PACKAGES := kmod-usb3 kmod-mt76 wpad-openssl
|
||||
endef
|
||||
TARGET_DEVICES += telco-electronics_x1
|
||||
|
||||
@ -819,7 +825,7 @@ define Device/totolink_a7000r
|
||||
UIMAGE_NAME := C8340R1C-9999
|
||||
DEVICE_VENDOR := TOTOLINK
|
||||
DEVICE_MODEL := A7000R
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware wpad-openssl
|
||||
endef
|
||||
TARGET_DEVICES += totolink_a7000r
|
||||
|
||||
@ -827,7 +833,7 @@ define Device/adslr_g7
|
||||
IMAGE_SIZE := 16064k
|
||||
DEVICE_VENDOR := ADSLR
|
||||
DEVICE_MODEL := G7
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware wpad-openssl
|
||||
endef
|
||||
TARGET_DEVICES += adslr_g7
|
||||
|
||||
@ -835,7 +841,7 @@ define Device/tplink_re350-v1
|
||||
$(Device/tplink-safeloader)
|
||||
DEVICE_MODEL := RE350
|
||||
DEVICE_VARIANT := v1
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 wpad-openssl
|
||||
TPLINK_BOARD_ID := RE350-V1
|
||||
IMAGE_SIZE := 6016k
|
||||
SUPPORTED_DEVICES += re350-v1
|
||||
@ -846,7 +852,7 @@ define Device/tplink_re650-v1
|
||||
$(Device/tplink-safeloader)
|
||||
DEVICE_MODEL := RE650
|
||||
DEVICE_VARIANT := v1
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware wpad-openssl
|
||||
TPLINK_BOARD_ID := RE650-V1
|
||||
IMAGE_SIZE := 14208k
|
||||
endef
|
||||
@ -881,7 +887,7 @@ TARGET_DEVICES += ubnt_edgerouter-x-sfp
|
||||
define Device/ubnt_unifi-nanohd
|
||||
DEVICE_VENDOR := Ubiquiti
|
||||
DEVICE_MODEL := UniFi nanoHD
|
||||
DEVICE_PACKAGES += kmod-mt7603 kmod-mt7615e kmod-mt7615-firmware wpad-basic
|
||||
DEVICE_PACKAGES += kmod-mt7603 kmod-mt7615e kmod-mt7615-firmware wpad-openssl
|
||||
IMAGE_SIZE := 15552k
|
||||
endef
|
||||
TARGET_DEVICES += ubnt_unifi-nanohd
|
||||
@ -912,7 +918,7 @@ define Device/wevo_11acnas
|
||||
DEVICE_VENDOR := WeVO
|
||||
DEVICE_MODEL := 11AC NAS Router
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
|
||||
kmod-usb-ledtrig-usbport wpad-basic
|
||||
kmod-usb-ledtrig-usbport wpad-openssl
|
||||
SUPPORTED_DEVICES += 11acnas
|
||||
endef
|
||||
TARGET_DEVICES += wevo_11acnas
|
||||
@ -924,7 +930,7 @@ define Device/wevo_w2914ns-v2
|
||||
DEVICE_MODEL := W2914NS
|
||||
DEVICE_VARIANT := v2
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
|
||||
kmod-usb-ledtrig-usbport wpad-basic
|
||||
kmod-usb-ledtrig-usbport wpad-openssl
|
||||
SUPPORTED_DEVICES += w2914nsv2
|
||||
endef
|
||||
TARGET_DEVICES += wevo_w2914ns-v2
|
||||
@ -945,7 +951,7 @@ define Device/xiaomi_mir3g
|
||||
SUPPORTED_DEVICES += R3G
|
||||
SUPPORTED_DEVICES += mir3g
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
|
||||
kmod-usb-ledtrig-usbport wpad-basic uboot-envtools
|
||||
kmod-usb-ledtrig-usbport wpad-openssl uboot-envtools
|
||||
endef
|
||||
TARGET_DEVICES += xiaomi_mir3g
|
||||
|
||||
@ -958,7 +964,7 @@ define Device/xiaomi_mir3g-v2
|
||||
DEVICE_ALT0_VENDOR := Xiaomi
|
||||
DEVICE_ALT0_MODEL := Mi Router 4A
|
||||
DEVICE_ALT0_VARIANT := Gigabit Edition
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 wpad-basic
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 wpad-openssl
|
||||
endef
|
||||
TARGET_DEVICES += xiaomi_mir3g-v2
|
||||
|
||||
@ -976,11 +982,11 @@ define Device/xiaomi_mir3p
|
||||
IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi | \
|
||||
check-size
|
||||
DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware kmod-usb3 kmod-usb-ledtrig-usbport \
|
||||
wpad-basic uboot-envtools
|
||||
wpad-openssl uboot-envtools
|
||||
endef
|
||||
TARGET_DEVICES += xiaomi_mir3p
|
||||
|
||||
define Device/xiaomi_redmi-router-ac2100
|
||||
define Device/xiaomi_mir4
|
||||
$(Device/uimage-lzma-loader)
|
||||
BLOCKSIZE := 128k
|
||||
PAGESIZE := 2048
|
||||
@ -992,8 +998,41 @@ define Device/xiaomi_redmi-router-ac2100
|
||||
IMAGE/rootfs0.bin := append-ubi | check-size
|
||||
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
||||
DEVICE_VENDOR := Xiaomi
|
||||
DEVICE_MODEL := Mi Router 4
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 wpad-openssl uboot-envtools
|
||||
endef
|
||||
TARGET_DEVICES += xiaomi_mir4
|
||||
|
||||
define Device/xiaomi_mi-router-ac2100
|
||||
BLOCKSIZE := 128k
|
||||
PAGESIZE := 2048
|
||||
KERNEL_SIZE := 4096k
|
||||
IMAGE_SIZE := 120320k
|
||||
UBINIZE_OPTS := -E 5
|
||||
IMAGES += kernel1.bin rootfs0.bin
|
||||
IMAGE/kernel1.bin := append-kernel
|
||||
IMAGE/rootfs0.bin := append-ubi | check-size
|
||||
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
||||
DEVICE_VENDOR := Xiaomi
|
||||
DEVICE_MODEL := Mi Router AC2100
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-mt7615e wpad-openssl uboot-envtools
|
||||
endef
|
||||
TARGET_DEVICES += xiaomi_mi-router-ac2100
|
||||
|
||||
define Device/xiaomi_redmi-router-ac2100
|
||||
BLOCKSIZE := 128k
|
||||
PAGESIZE := 2048
|
||||
KERNEL_SIZE := 4096k
|
||||
IMAGE_SIZE := 120320k
|
||||
UBINIZE_OPTS := -E 5
|
||||
IMAGES += kernel1.bin rootfs0.bin factory.bin
|
||||
IMAGE/kernel1.bin := append-kernel
|
||||
IMAGE/rootfs0.bin := append-ubi | check-size
|
||||
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
||||
IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi | check-size $$$$(IMAGE_SIZE)
|
||||
DEVICE_VENDOR := Xiaomi
|
||||
DEVICE_MODEL := Redmi Router AC2100
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-mt7615e kmod-mt7615-firmware wpad-basic uboot-envtools
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-mt7615e wpad-openssl uboot-envtools
|
||||
endef
|
||||
TARGET_DEVICES += xiaomi_redmi-router-ac2100
|
||||
|
||||
@ -1019,7 +1058,7 @@ define Device/youhua_wr1200js
|
||||
DEVICE_VENDOR := YouHua
|
||||
DEVICE_MODEL := WR1200JS
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
|
||||
kmod-usb-ledtrig-usbport wpad-basic
|
||||
kmod-usb-ledtrig-usbport wpad-openssl
|
||||
endef
|
||||
TARGET_DEVICES += youhua_wr1200js
|
||||
|
||||
@ -1028,7 +1067,7 @@ define Device/youku_yk-l2
|
||||
DEVICE_VENDOR := Youku
|
||||
DEVICE_MODEL := YK-L2
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
|
||||
kmod-usb-ledtrig-usbport wpad-basic
|
||||
kmod-usb-ledtrig-usbport wpad-openssl
|
||||
endef
|
||||
TARGET_DEVICES += youku_yk-l2
|
||||
|
||||
@ -1037,7 +1076,7 @@ define Device/zbtlink_zbt-we1326
|
||||
DEVICE_VENDOR := Zbtlink
|
||||
DEVICE_MODEL := ZBT-WE1326
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-sdhci-mt7620 \
|
||||
wpad-basic
|
||||
wpad-openssl
|
||||
SUPPORTED_DEVICES += zbt-we1326
|
||||
endef
|
||||
TARGET_DEVICES += zbtlink_zbt-we1326
|
||||
@ -1047,7 +1086,7 @@ define Device/zbtlink_zbt-we3526
|
||||
DEVICE_VENDOR := Zbtlink
|
||||
DEVICE_MODEL := ZBT-WE3526
|
||||
DEVICE_PACKAGES := kmod-sdhci-mt7620 kmod-mt7603 kmod-mt76x2 kmod-usb3 \
|
||||
kmod-usb-ledtrig-usbport wpad-basic
|
||||
kmod-usb-ledtrig-usbport wpad-openssl
|
||||
endef
|
||||
TARGET_DEVICES += zbtlink_zbt-we3526
|
||||
|
||||
@ -1056,7 +1095,7 @@ define Device/zbtlink_zbt-wg2626
|
||||
DEVICE_VENDOR := Zbtlink
|
||||
DEVICE_MODEL := ZBT-WG2626
|
||||
DEVICE_PACKAGES := kmod-ata-ahci kmod-sdhci-mt7620 kmod-mt76x2 kmod-usb3 \
|
||||
kmod-usb-ledtrig-usbport wpad-basic
|
||||
kmod-usb-ledtrig-usbport wpad-openssl
|
||||
SUPPORTED_DEVICES += zbt-wg2626
|
||||
endef
|
||||
TARGET_DEVICES += zbtlink_zbt-wg2626
|
||||
@ -1067,7 +1106,7 @@ define Device/zbtlink_zbt-wg3526-16m
|
||||
DEVICE_MODEL := ZBT-WG3526
|
||||
DEVICE_VARIANT := 16M
|
||||
DEVICE_PACKAGES := kmod-ata-ahci kmod-sdhci-mt7620 kmod-mt7603 kmod-mt76x2 \
|
||||
kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
|
||||
kmod-usb3 kmod-usb-ledtrig-usbport wpad-openssl
|
||||
SUPPORTED_DEVICES += zbt-wg3526 zbt-wg3526-16M
|
||||
endef
|
||||
TARGET_DEVICES += zbtlink_zbt-wg3526-16m
|
||||
@ -1078,7 +1117,7 @@ define Device/zbtlink_zbt-wg3526-32m
|
||||
DEVICE_MODEL := ZBT-WG3526
|
||||
DEVICE_VARIANT := 32M
|
||||
DEVICE_PACKAGES := kmod-ata-ahci kmod-sdhci-mt7620 kmod-mt7603 kmod-mt76x2 \
|
||||
kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
|
||||
kmod-usb3 kmod-usb-ledtrig-usbport wpad-openssl
|
||||
SUPPORTED_DEVICES += ac1200pro zbt-wg3526-32M
|
||||
endef
|
||||
TARGET_DEVICES += zbtlink_zbt-wg3526-32m
|
||||
@ -1088,6 +1127,6 @@ define Device/zio_freezio
|
||||
DEVICE_VENDOR := ZIO
|
||||
DEVICE_MODEL := FREEZIO
|
||||
DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
|
||||
kmod-usb-ledtrig-usbport wpad-basic
|
||||
kmod-usb-ledtrig-usbport wpad-openssl
|
||||
endef
|
||||
TARGET_DEVICES += zio_freezio
|
||||
|
@ -214,6 +214,10 @@ ramips_setup_interfaces()
|
||||
ucidef_add_switch "switch0" \
|
||||
"0:lan" "4:wan" "6@eth0"
|
||||
;;
|
||||
xiaomi,miwifi-r3)
|
||||
ucidef_add_switch "switch0" \
|
||||
"1:lan" "4:lan" "0:wan" "6@eth0"
|
||||
;;
|
||||
zbtlink,zbt-we1026-5g-16m)
|
||||
ucidef_add_switch "switch0" \
|
||||
"0:lan" "6t@eth0"
|
||||
@ -348,6 +352,10 @@ ramips_setup_macs()
|
||||
tplink,archer-mr200)
|
||||
wan_mac=$(macaddr_add "$(mtd_get_mac_binary rom 0xf100)" 1)
|
||||
;;
|
||||
xiaomi,miwifi-r3)
|
||||
wan_mac=$(mtd_get_mac_binary factory 0x28)
|
||||
lan_mac=$(macaddr_setbit_la "$wan_mac")
|
||||
;;
|
||||
zbtlink,zbt-we1026-5g-16m)
|
||||
label_mac=$(mtd_get_mac_binary factory 0x4)
|
||||
;;
|
||||
|
@ -30,6 +30,10 @@ platform_do_upgrade() {
|
||||
}
|
||||
default_do_upgrade "$1"
|
||||
;;
|
||||
xiaomi,miwifi-r3)
|
||||
dd if=/dev/mtd0 bs=64 count=1 2>/dev/null | grep -qi breed && CI_KERNPART_EXT="kernel_stock"
|
||||
nand_do_upgrade "$1"
|
||||
;;
|
||||
*)
|
||||
default_do_upgrade "$1"
|
||||
;;
|
||||
|
@ -154,6 +154,7 @@ CONFIG_MODULES_USE_ELF_REL=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_SPI_NOR_USE_4K_SECTORS=y
|
||||
@ -162,6 +163,12 @@ CONFIG_MTD_SPLIT_JIMAGE_FW=y
|
||||
CONFIG_MTD_SPLIT_SEAMA_FW=y
|
||||
CONFIG_MTD_SPLIT_TPLINK_FW=y
|
||||
CONFIG_MTD_SPLIT_UIMAGE_FW=y
|
||||
CONFIG_MTD_UBI=y
|
||||
CONFIG_MTD_UBI_BEB_LIMIT=20
|
||||
CONFIG_MTD_UBI_BLOCK=y
|
||||
# CONFIG_MTD_UBI_FASTMAP is not set
|
||||
# CONFIG_MTD_UBI_GLUEBI is not set
|
||||
CONFIG_MTD_UBI_WL_THRESHOLD=4096
|
||||
CONFIG_NEED_DMA_MAP_STATE=y
|
||||
CONFIG_NEED_PER_CPU_KM=y
|
||||
CONFIG_NET_RALINK_GSW_MT7620=y
|
||||
@ -231,6 +238,13 @@ CONFIG_TICK_CPU_ACCOUNTING=y
|
||||
CONFIG_TIMER_OF=y
|
||||
CONFIG_TIMER_PROBE=y
|
||||
CONFIG_TINY_SRCU=y
|
||||
CONFIG_UBIFS_ATIME_SUPPORT=y
|
||||
CONFIG_UBIFS_FS=y
|
||||
CONFIG_UBIFS_FS_ADVANCED_COMPR=y
|
||||
CONFIG_UBIFS_FS_LZO=y
|
||||
CONFIG_UBIFS_FS_ZLIB=y
|
||||
CONFIG_USB_SUPPORT=y
|
||||
CONFIG_USE_OF=y
|
||||
CONFIG_WATCHDOG_CORE=y
|
||||
CONFIG_ZLIB_DEFLATE=y
|
||||
CONFIG_ZLIB_INFLATE=y
|
||||
|
@ -4,10 +4,10 @@
|
||||
|
||||
SUBTARGET:=mt7620
|
||||
BOARDNAME:=MT7620 based boards
|
||||
FEATURES+=usb ramdisk
|
||||
FEATURES+=usb nand ramdisk
|
||||
CPU_TYPE:=24kc
|
||||
|
||||
DEFAULT_PACKAGES += kmod-rt2800-soc wpad-basic swconfig
|
||||
DEFAULT_PACKAGES += kmod-rt2800-soc wpad-openssl swconfig
|
||||
|
||||
define Target/Description
|
||||
Build firmware images for Ralink MT7620 based boards.
|
||||
|
@ -78,6 +78,9 @@ tplink,re650-v1)
|
||||
xzwifi,creativebox-v1)
|
||||
ucidef_set_led_netdev "internet" "internet" "$boardname:blue:internet" "wan"
|
||||
;;
|
||||
xiaomi,mi-router-ac2100)
|
||||
ucidef_set_led_netdev "wan" "wan" "$boardname:blue:wan" "wan"
|
||||
;;
|
||||
xiaomi,redmi-router-ac2100)
|
||||
ucidef_set_led_netdev "wan" "wan" "$boardname:white:wan" "wan"
|
||||
;;
|
||||
|
@ -22,6 +22,8 @@ ramips_setup_interfaces()
|
||||
gehua,ghl-r-001|\
|
||||
hiwifi,hc5962|\
|
||||
xiaomi,mir3p|\
|
||||
xiaomi,mir4|\
|
||||
xiaomi,mi-router-ac2100|\
|
||||
xiaomi,redmi-router-ac2100)
|
||||
ucidef_set_interfaces_lan_wan "lan1 lan2 lan3" "wan"
|
||||
;;
|
||||
|
@ -17,4 +17,4 @@ mt7621_bringup_dsa_master() {
|
||||
ifconfig $masterif up
|
||||
}
|
||||
|
||||
boot_hook_add preinit_main mt7621_bringup_dsa_master
|
||||
boot_hook_add preinit_main mt7621_bringup_dsa_master
|
||||
|
@ -57,6 +57,8 @@ platform_do_upgrade() {
|
||||
netis,wf2881|\
|
||||
xiaomi,mir3g|\
|
||||
xiaomi,mir3p|\
|
||||
xiaomi,mir4|\
|
||||
xiaomi,mi-router-ac2100|\
|
||||
xiaomi,redmi-router-ac2100)
|
||||
nand_do_upgrade "$1"
|
||||
;;
|
||||
|
File diff suppressed because it is too large
Load Diff
34
target/linux/ramips/patches-4.14/999-fix-m25p-shutdown.patch
Normal file
34
target/linux/ramips/patches-4.14/999-fix-m25p-shutdown.patch
Normal file
@ -0,0 +1,34 @@
|
||||
diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c
|
||||
index 24e1ea3..b1ff69a 100644
|
||||
--- a/drivers/mtd/devices/m25p80.c
|
||||
+++ b/drivers/mtd/devices/m25p80.c
|
||||
@@ -313,6 +313,21 @@ static int m25p_remove(struct spi_device *spi)
|
||||
return mtd_device_unregister(&flash->spi_nor.mtd);
|
||||
}
|
||||
|
||||
+static void m25p_shutdown(struct spi_device *spi)
|
||||
+{
|
||||
+ struct m25p *flash = spi_get_drvdata(spi);
|
||||
+
|
||||
+ if ((&flash->spi_nor)->addr_width > 3) {
|
||||
+ printk(KERN_INFO "m25p80: exit 4-byte address mode\n");
|
||||
+ flash->command[0] = SPINOR_OP_EX4B; // exit 4-byte address mode: 0xe9
|
||||
+ spi_write(flash->spi, flash->command, 1);
|
||||
+ flash->command[0] = 0x66; // enable reset
|
||||
+ spi_write(flash->spi, flash->command, 1);
|
||||
+ flash->command[0] = 0x99; // reset
|
||||
+ spi_write(flash->spi, flash->command, 1);
|
||||
+ }
|
||||
+}
|
||||
+
|
||||
/*
|
||||
* Do NOT add to this array without reading the following:
|
||||
*
|
||||
@@ -387,6 +402,7 @@ static struct spi_driver m25p80_driver = {
|
||||
.id_table = m25p_ids,
|
||||
.probe = m25p_probe,
|
||||
.remove = m25p_remove,
|
||||
+ .shutdown = m25p_shutdown,
|
||||
|
||||
/* REVISIT: many of these chips have deep power-down modes, which
|
||||
* should clearly be entered on suspend() to minimize power use.
|
Loading…
Reference in New Issue
Block a user