]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
uboot-sunxi: randomize ethaddr on Olimex A20 boards
authorZoltan HERPAI <wigyori@uid0.hu>
Mon, 11 Aug 2025 16:59:04 +0000 (18:59 +0200)
committerZoltan HERPAI <wigyori@uid0.hu>
Mon, 8 Sep 2025 20:35:39 +0000 (22:35 +0200)
While these boards have an at24 EEPROM for storing the MAC address,
early revisions (up until about 2017) did not contain actual addresses.
Create a random address to have ethernet function properly in u-boot.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
package/boot/uboot-sunxi/patches/260-sunxi-a20-random-ethaddr-on-olinuxino-micro.patch [new file with mode: 0644]

diff --git a/package/boot/uboot-sunxi/patches/260-sunxi-a20-random-ethaddr-on-olinuxino-micro.patch b/package/boot/uboot-sunxi/patches/260-sunxi-a20-random-ethaddr-on-olinuxino-micro.patch
new file mode 100644 (file)
index 0000000..6a34790
--- /dev/null
@@ -0,0 +1,7 @@
+--- a/configs/A20-OLinuXino_MICRO_defconfig
++++ b/configs/A20-OLinuXino_MICRO_defconfig
+@@ -26,3 +26,4 @@ CONFIG_AXP_ALDO4_VOLT=2800
+ CONFIG_SCSI=y
+ CONFIG_USB_EHCI_HCD=y
+ CONFIG_USB_OHCI_HCD=y
++CONFIG_NET_RANDOM_ETHADDR=y