未验证 提交 d541afbf 编写于 作者: C coolsnowwolf 提交者: GitHub

Merge pull request #4932 from DoveKi/master

ramips: mt7621: update Xiaomi Mi Router 4
......@@ -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";
......
......@@ -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
......
......@@ -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"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册