Skip to content

Commit

Permalink
mpc85xx: fix Enterasys WS-AP3710i eth mac-address
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
blocktrron committed Jun 14, 2024
1 parent 2db6459 commit 22f92cc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions target/linux/mpc85xx/base-files/lib/preinit/10_fix_eth_mac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 22f92cc

Please sign in to comment.