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]>
Wed, 26 May 2021 09:39:36 +0000 (11:39 +0200)
commitacf605fd3666ed72d6c76ff11c90ea650b829409
tree34886192d0e07cdc65cdf6a7cc3aa9a1bb6efa0e
parenta9856be2132ee1d27db05e2034f818d2f62b74ad
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