ipq40xx: set MAC address for AVM boxes at preinit
authorDavid Bauer <[email protected]>
Sat, 17 Apr 2021 22:10:38 +0000 (00:10 +0200)
committerDavid Bauer <[email protected]>
Mon, 19 Sep 2022 23:18:54 +0000 (01:18 +0200)
commitb8349f8dde5eb7b665654758aa511cbdd2987a74
treed8df6bd9c82d6ecb34f42f85574de7b2463b3ffd
parent714b7b49a514101ecd6273dcb4262a872f56d702
ipq40xx: set MAC address for AVM boxes at preinit

Usually the bootloader configures the MAC address of the ethernet
interfaces. However newer boxes do not have the MAC address and relevant
pointers in their bootloader partition anymore, hence boxes end up with
random addresses on every boot.

Obtain the MAC address from the TFFS and assign it to the ethernet
interface at preinit.

Signed-off-by: David Bauer <[email protected]>
target/linux/ipq40xx/base-files/lib/preinit/05_set_iface_mac_ipq40xx.sh