[openwrt/openwrt] uboot-sunxi: randomize ethaddr on Olimex A20 boards
LEDE Commits
lede-commits at lists.infradead.org
Mon Sep 8 13:35:59 PDT 2025
wigyori pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/9fae84ecc980bcb1c97fb99326853e8d78f866ef
commit 9fae84ecc980bcb1c97fb99326853e8d78f866ef
Author: Zoltan HERPAI <wigyori at uid0.hu>
AuthorDate: Mon Aug 11 18:59:04 2025 +0200
uboot-sunxi: randomize ethaddr on Olimex A20 boards
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 at uid0.hu>
---
.../patches/260-sunxi-a20-random-ethaddr-on-olinuxino-micro.patch | 7 +++++++
1 file changed, 7 insertions(+)
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
index 0000000000..6a347901b7
--- /dev/null
+++ b/package/boot/uboot-sunxi/patches/260-sunxi-a20-random-ethaddr-on-olinuxino-micro.patch
@@ -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
More information about the lede-commits
mailing list