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, 3 Apr 2023 01:14:58 +0000 (03:14 +0200)
commita58046f95d7b8529acf1fcf11ee0ffbaa82ffad6
tree213d7fe3844112d209bbab71a221991030ea78a7
parentf003217ddfa1e3400b6b813410c8dd4aedf5d92a
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