mediatek: bpi-r4: store random MAC addresses for the BPi-R4
authorDaniel Golle <daniel@makrotopia.org>
Sun, 28 Apr 2024 02:03:43 +0000 (03:03 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Sun, 28 Apr 2024 20:46:51 +0000 (21:46 +0100)
commit5709254690cb4181c2c9aed7c0569b7bafea6118
tree9a19adc2af3c87ac86cc3f0de1f78399df18dbd6
parentabbcbb92283d8cdb22828122ca476f5d8dd9f782
mediatek: bpi-r4: store random MAC addresses for the BPi-R4

Despite coming with multiple I2C EEPROMs supposedly dedicated for that
purpose, the BPi-R4 does not seem to have factory assigned MAC addresses.
Hence, just like for all other BPi boards, store a randomly generated
MAC address on first boot and derive WAN and Wi-Fi MAC addresses from
that as well. Not perfect, but better than random on every boot.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
target/linux/mediatek/base-files/etc/uci-defaults/99_fwenv-store-ethaddr.sh
target/linux/mediatek/files-6.1/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dts
target/linux/mediatek/filogic/base-files/etc/board.d/02_network
target/linux/mediatek/filogic/base-files/etc/hotplug.d/ieee80211/11_fix_wifi_mac