ipq806x: ecw5410: use bootloader provided MAC-s
authorRobert Marko <robert.marko@sartura.hr>
Sun, 31 Oct 2021 13:33:15 +0000 (14:33 +0100)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Sun, 31 Oct 2021 20:24:47 +0000 (21:24 +0100)
Currently, we are overriding the bootloader provided MAC-s as the ethernet
aliases are reversed so MAC-s were fixed up in userspace.
There is no need to do that as we can just fix the aliases instead and get
rid of MAC setting via userspace helper.

Fixes: 59f0a0f ("ipq806x: add Edgecore ECW5410 support")
Signed-off-by: Robert Marko <robert.marko@sartura.hr>
target/linux/ipq806x/base-files/etc/board.d/02_network
target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8068-ecw5410.dts

index a75d32ab6f51e9e25a516b976036e6b1a264084a..65a0e98b3b315a2ebe45f25d5e4efa8b5ffd8df6 100644 (file)
@@ -29,8 +29,6 @@ tplink,vr2600v)
        ;;
 edgecore,ecw5410)
        ucidef_set_interfaces_lan_wan "eth1" "eth0"
-       ucidef_set_interface_macaddr "lan" "$(mtd_get_mac_binary "0:art" 0x6)"
-       ucidef_set_interface_macaddr "wan" "$(mtd_get_mac_binary "0:art" 0x0)"
        ;;
 linksys,ea7500-v1)
        hw_mac_addr=$(mtd_get_mac_ascii devinfo hw_mac_addr)
index 57724c19d731d441cc2cd2a6968916cfdb91b92c..377bb09616c88546030a3b19700fd4139a1f5bb7 100644 (file)
@@ -34,8 +34,8 @@
 
        aliases {
                serial1 = &gsbi1_serial;
-               ethernet0 = &gmac3;
-               ethernet1 = &gmac2;
+               ethernet0 = &gmac2;
+               ethernet1 = &gmac3;
 
                led-boot = &led_power_green;
                led-failsafe = &led_power_red;