mpc85xx: fix TL-WDR4900 mac address assignment to match original firmware
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 7 Feb 2016 14:18:36 +0000 (14:18 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 7 Feb 2016 14:18:36 +0000 (14:18 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48645 3c298f89-4303-0410-b956-a3cf2f4a3e73

target/linux/mpc85xx/base-files/etc/board.d/02_network
target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts

index 4c7206c..c9645ab 100755 (executable)
@@ -14,6 +14,7 @@ case "$board" in
 tl-wdr4900-v1)
        ucidef_add_switch "switch0" \
                "0@eth0" "2:lan:1" "3:lan:2" "4:lan:3" "5:lan:4" "1:wan"
+       ucidef_set_interface_macaddr wan "$(mtd_get_mac_binary config 332)"
        ;;
 *)
        ucidef_set_interfaces_lan_wan "eth0" "eth1"
index 2325006..322273e 100644 (file)
                enet0: ethernet@b0000 {
                        phy-handle = <&phy0>;
                        phy-connection-type = "rgmii-id";
-                       mtd-mac-address = <&config 0x14c>;
+                       mtd-mac-address = <&config 0x144>;
                };
 
                enet1: ethernet@b1000 {