mpc85xx: fix label-mac-address for Enterasys WS-AP3710i
authorDavid Bauer <mail@david-bauer.net>
Sat, 15 Jun 2024 23:33:19 +0000 (01:33 +0200)
committerDavid Bauer <mail@david-bauer.net>
Sun, 16 Jun 2024 12:02:19 +0000 (14:02 +0200)
The WS-AP3710i does not correctly expose its label-mac on eth0 anymore
since the change to simpleLoader.

Fix this by obtaining the label-mac from the U-Boot environment.

Signed-off-by: David Bauer <mail@david-bauer.net>
target/linux/mpc85xx/base-files/etc/board.d/02_network
target/linux/mpc85xx/files/arch/powerpc/boot/dts/ws-ap3710i.dts

index caf00ef414abfb0794c4ce48ea69d5285f72c90e..2574ebc9b9458de3c3e87bf956521f33cb4673a8 100644 (file)
@@ -16,6 +16,10 @@ aerohive,hiveap-330|\
 enterasys,ws-ap3715i)
        ucidef_set_interfaces_lan_wan "eth1" "eth0"
        ;;
+enterasys,ws-ap3710i)
+       ucidef_set_interface_lan "eth0"
+       ucidef_set_label_macaddr "$(mtd_get_mac_ascii cfg1 ethaddr)"
+       ;;
 hpe,msm460)
        ucidef_set_interface_lan "eth0"
        ;;      
index 4068bdb51e1cd5107b6034738955669a7ae96051..ef342ff6075742bb4f360cec8ea697d3ef3abc49 100644 (file)
@@ -15,7 +15,6 @@
                led-failsafe = &led_power_red;
                led-running = &led_power_green;
                led-upgrade = &led_power_red;
-               label-mac-device = &enet0;
        };
 
        chosen {