mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2025-03-05 22:14:35 +00:00
31 lines
939 B
Diff
31 lines
939 B
Diff
From 860810facd7b4cdeb212edbd915d00c848f4d966 Mon Sep 17 00:00:00 2001
|
|
From: Christian Hewitt <christianshewitt@gmail.com>
|
|
Date: Sat, 23 Mar 2024 09:59:30 +0000
|
|
Subject: [PATCH 7/7] FROMGIT: board: amlogic: add
|
|
meson_generate_serial_ethaddr fallback to p200
|
|
|
|
Add a fall-back method to generate ethaddr from CPU serial on p200 boards
|
|
if the MAC cannot be read from efuse.
|
|
|
|
Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
|
|
---
|
|
board/amlogic/p200/p200.c | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/board/amlogic/p200/p200.c b/board/amlogic/p200/p200.c
|
|
index 769e2735d27..754242e4a9f 100644
|
|
--- a/board/amlogic/p200/p200.c
|
|
+++ b/board/amlogic/p200/p200.c
|
|
@@ -31,6 +31,8 @@ int misc_init_r(void)
|
|
mac_addr[len] = '\0';
|
|
if (len == EFUSE_MAC_SIZE && is_valid_ethaddr(mac_addr))
|
|
eth_env_set_enetaddr("ethaddr", mac_addr);
|
|
+ else
|
|
+ meson_generate_serial_ethaddr();
|
|
}
|
|
|
|
if (!env_get("serial#")) {
|
|
--
|
|
2.34.1
|
|
|