diff options
author | Christian Marangi <ansuelsmth@gmail.com> | 2023-11-21 23:57:44 +0100 |
---|---|---|
committer | Christian Marangi <ansuelsmth@gmail.com> | 2023-11-21 23:57:44 +0100 |
commit | 7993a288f1833c1e0b1ed5b64689daa666524b90 (patch) | |
tree | 5e2ff242e52bbab54bcee5b76ca998af7b61fa94 /target/linux/mpc85xx | |
parent | 931fcf61891f14dffccd0ad5dfdf7d84460ff9f2 (diff) | |
download | openwrt-7993a288f1833c1e0b1ed5b64689daa666524b90.tar.gz openwrt-7993a288f1833c1e0b1ed5b64689daa666524b90.tar.bz2 openwrt-7993a288f1833c1e0b1ed5b64689daa666524b90.zip |
Revert "mpc85xx: replace user space MAC with nvmem"
This reverts commit 931fcf61891f14dffccd0ad5dfdf7d84460ff9f2.
The definition is wrong and require mac-base compatible. Also it's not
clear if it's correct to use 0xc for mac size.
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Diffstat (limited to 'target/linux/mpc85xx')
-rw-r--r-- | target/linux/mpc85xx/base-files/lib/preinit/10_fix_eth_mac.sh | 5 | ||||
-rw-r--r-- | target/linux/mpc85xx/files/arch/powerpc/boot/dts/firebox-t10.dts | 27 |
2 files changed, 5 insertions, 27 deletions
diff --git a/target/linux/mpc85xx/base-files/lib/preinit/10_fix_eth_mac.sh b/target/linux/mpc85xx/base-files/lib/preinit/10_fix_eth_mac.sh index 9b032394d8..ddb9bef141 100644 --- a/target/linux/mpc85xx/base-files/lib/preinit/10_fix_eth_mac.sh +++ b/target/linux/mpc85xx/base-files/lib/preinit/10_fix_eth_mac.sh @@ -8,6 +8,11 @@ preinit_set_mac_address() { ip link set dev eth0 address $(mtd_get_mac_ascii cfg1 ethaddr) ip link set dev eth1 address $(mtd_get_mac_ascii cfg1 eth1addr) ;; + watchguard,firebox-t10) + ip link set dev eth0 address "$(mtd_get_mac_text "device_id" 0x1830)" + ip link set dev eth1 address "$(mtd_get_mac_text "device_id" 0x1844)" + ip link set dev eth2 address "$(mtd_get_mac_text "device_id" 0x1858)" + ;; esac } diff --git a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/firebox-t10.dts b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/firebox-t10.dts index 1228a9bdfa..607706a2d4 100644 --- a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/firebox-t10.dts +++ b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/firebox-t10.dts @@ -103,24 +103,6 @@ reg = <0xc0000 0x40000>; label = "device_id"; read-only; - - nvmem-layout { - compatible = "fixed-layout"; - #address-cells = <1>; - #size-cells = <1>; - - macaddr_device_id_1830: mac-address-hex@1830 { - reg = <0x1830 0xc>; - }; - - macaddr_device_id_1844: mac-address-hex@1844 { - reg = <0x1844 0xc>; - }; - - macaddr_device_id_1858: mac-address-hex@1858 { - reg = <0x1858 0xc>; - }; - }; }; }; }; @@ -165,27 +147,18 @@ enet0: ethernet@b0000 { phy-handle = <&phy1>; phy-connection-type = "rgmii-id"; - - nvmem-cells = <&macaddr_device_id_1830>; - nvmem-cell-names = "mac-address"; }; enet1: ethernet@b1000 { tbi-handle = <&tbi_phy1>; phy-handle = <&phy2>; phy-connection-type = "sgmii"; - - nvmem-cells = <&macaddr_device_id_1844>; - nvmem-cell-names = "mac-address"; }; enet2: ethernet@b2000 { tbi-handle = <&tbi_phy2>; phy-handle = <&phy3>; phy-connection-type = "sgmii"; - - nvmem-cells = <&macaddr_device_id_1858>; - nvmem-cell-names = "mac-address"; }; sdhc@2e000 { |