From bcb0fd1fa1f1265d7a911c0e8bd036e2347b112f Mon Sep 17 00:00:00 2001 From: David Bauer Date: Sun, 13 Oct 2019 23:37:59 +0200 Subject: mpc85xx: correct TP-LINK TL-WDR4900 MAC addresses This commit fixes TP-Link TL-WDR4900 v1 MAC address assignment. Previously, the MAC addrss was read for the ethernet from the "config" partition. However, the content of this partition is dependent on the firmware which was previously installed on the device. Switch the MAC address source to the U-Boot partition, where the MAC address is always present at a fixed partition. The partition was previously already used for the WiFi MAC-addresses. Reviewed-by: Adrian Schmutzler Signed-off-by: David Bauer (cherry picked from commit 07e555d8735e8fa272e3f6abd35acc9f1ab44367) Signed-off-by: David Bauer --- target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'target/linux/mpc85xx/files/arch') diff --git a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts index f9fdfc6465..7b81347e1e 100644 --- a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts +++ b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts @@ -48,7 +48,7 @@ #address-cells = <1>; #size-cells = <1>; - partition@0 { + uboot: partition@0 { reg = <0x0 0x0050000>; label = "u-boot"; read-only; @@ -66,7 +66,7 @@ label = "firmware"; }; - config: partition@fe0000 { + partition@fe0000 { reg = <0x00fe0000 0x00010000>; label = "config"; read-only; @@ -118,7 +118,7 @@ enet0: ethernet@b0000 { phy-handle = <&phy0>; phy-connection-type = "rgmii-id"; - mtd-mac-address = <&config 0x144>; + mtd-mac-address = <&uboot 0x4fc00>; }; enet1: ethernet@b1000 { -- cgit v1.2.3