Merge pull request #4932 from DoveKi/master

ramips: mt7621: update Xiaomi Mi Router 4
This commit is contained in:
coolsnowwolf 2020-07-03 17:37:55 +08:00 committed by GitHub
commit d541afbf42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 26 additions and 3 deletions

View File

@ -162,9 +162,30 @@
};
&gmac0 {
mtd-mac-address = <&factory 0xe000>;
mtd-mac-address = <&factory 0xe006>;
};
&switch0 {
ports {
port@1 {
status = "okay";
label = "lan1";
};
port@2 {
status = "okay";
label = "lan2";
};
port@4 {
status = "okay";
label = "wan";
mtd-mac-address = <&factory 0xe000>;
};
};
};
&state_default {
gpio {
groups = "jtag", "uart2", "uart3", "wdt";

View File

@ -999,6 +999,8 @@ define Device/xiaomi_mir4
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
DEVICE_VENDOR := Xiaomi
DEVICE_MODEL := Mi Router 4
SUPPORTED_DEVICES += R4
SUPPORTED_DEVICES += mir4
DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 wpad-openssl uboot-envtools
endef
TARGET_DEVICES += xiaomi_mir4

View File

@ -16,13 +16,13 @@ ramips_setup_interfaces()
lenovo,newifi-d1|\
mikrotik,routerboard-m33g|\
xiaomi,mir3g|\
xiaomi,mir3g-v2)
xiaomi,mir3g-v2|\
xiaomi,mir4)
ucidef_set_interfaces_lan_wan "lan1 lan2" "wan"
;;
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"