mediatek: filogic: fix mt7986a-zyxel-ex5601-t0-stock.dts model name and eth1 wan...
authorPietro Ameruoso <p.ameruoso@live.it>
Wed, 5 Feb 2025 10:40:48 +0000 (11:40 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 9 Feb 2025 15:06:11 +0000 (16:06 +0100)
Fix the model name to reflect the stock partitioning and the wan eth1 detection in the 02_network script.

Fixes: https://github.com/openwrt/openwrt/issues/14432
Fixes: b5df398a36f1 ("mediatek: add Zyxel EX5601-T0 with uboot custom partition")
Signed-off-by: Pietro Ameruoso <p.ameruoso@live.it>
Link: https://github.com/openwrt/openwrt/pull/17859
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/mediatek/dts/mt7986a-zyxel-ex5601-t0-stock.dts
target/linux/mediatek/filogic/base-files/etc/board.d/01_leds
target/linux/mediatek/filogic/base-files/etc/hotplug.d/ieee80211/11_fix_wifi_mac

index 4dbbd1367794e0908c42539e84c5f2a4005de540..b5553a8359832dc50ea8830e895ed82e86910d1d 100644 (file)
@@ -11,8 +11,8 @@
 #include <dt-bindings/input/input.h>
 
 / {
-       model = "Zyxel EX5601-T0";
-       compatible = "zyxel,ex5601-t0", "mediatek,mt7986a-rfb-snand";
+       model = "Zyxel EX5601-T0 (stock layout)";
+       compatible = "zyxel,ex5601-t0-stock", "mediatek,mt7986a";
 
        memory@40000000 {
                device_type = "memory";
index c1e4cec054435bff8aa5104ba8b024df3293a378..8b2c554fb3877d2776a5b9c61b8dd8cd1df5ee5e 100644 (file)
@@ -141,7 +141,7 @@ xiaomi,redmi-router-ax6000-ubootmod)
 zbtlink,zbt-z8103ax)
        ucidef_set_led_netdev "wan" "wan" "green:wan" "eth1" "link tx rx"
        ;;
-zyxel_ex5601-t0-stock|\
+zyxel,ex5601-t0-stock|\
 zyxel,ex5601-t0-ubootmod)
        ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth0" "link tx rx"
        ucidef_set_led_netdev "wan" "WAN" "green:inet" "eth1" "link tx rx"
index 4ae2c70658f3c76ffb7f02a4c590fbd1da9ff98f..061cbf975c2498c506b39a40d0b5ef08e0b0005e 100644 (file)
@@ -166,7 +166,7 @@ case "$board" in
        routerich,ax3000-ubootmod|\
        zbtlink,zbt-z8102ax|\
        zbtlink,zbt-z8103ax|\
-       zyxel,ex5601-t0|\
+       zyxel,ex5601-t0-stock|\
        zyxel,ex5601-t0-ubootmod)
                addr=$(mtd_get_mac_binary "Factory" 0x4)
                [ "$PHYNBR" = "1" ] && macaddr_add $addr 1 > /sys${DEVPATH}/macaddress