[openwrt/openwrt] mpc85xx: fix Enterasys WS-AP3710i eth mac-address

LEDE Commits lede-commits at lists.infradead.org
Fri Jun 14 14:34:05 PDT 2024


blocktrron pushed a commit to openwrt/openwrt.git, branch openwrt-23.05:
https://git.openwrt.org/d8415fa2708b91f8b3cf67c11ed307e76d4b05a2

commit d8415fa2708b91f8b3cf67c11ed307e76d4b05a2
Author: David Bauer <mail at david-bauer.net>
AuthorDate: Fri Jun 14 22:50:26 2024 +0200

    mpc85xx: fix Enterasys WS-AP3710i eth mac-address
    
    With the introduction of the simpleImage loader, the MAC address is not
    set by the bootloader anymore.
    
    Fix this by reading the MAC address from the U-Boot environment
    partition.
    
    Signed-off-by: David Bauer <mail at david-bauer.net>
    (cherry picked from commit 22f92cce22401ef7df44357a7e6921d2cf45c840)
---
 target/linux/mpc85xx/base-files/lib/preinit/10_fix_eth_mac.sh | 3 +++
 1 file changed, 3 insertions(+)

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 ddb9bef141..fc4beaef1a 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
@@ -3,6 +3,9 @@
 
 preinit_set_mac_address() {
 	case $(board_name) in
+	enterasys,ws-ap3710i)
+		ip link set dev eth0 address $(mtd_get_mac_ascii cfg1 ethaddr)
+		;;
 	enterasys,ws-ap3715i|\
 	extreme-networks,ws-ap3825i)
 		ip link set dev eth0 address $(mtd_get_mac_ascii cfg1 ethaddr)




More information about the lede-commits mailing list