mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 13:43:28 +00:00
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. This prevents random MAC addresses on the WeTek Hub/Play2 boards. Signed-off-by: Christian Hewitt <christianshewitt@gmail.com> Link: https://lore.kernel.org/r/20240324151905.3817732-3-christianshewitt@gmail.com Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
This commit is contained in:
parent
cac77418d6
commit
65d5c367b0
1 changed files with 2 additions and 0 deletions
|
@ -30,6 +30,8 @@ int misc_init_r(void)
|
|||
mac_addr, EFUSE_MAC_SIZE);
|
||||
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#")) {
|
||||
|
|
Loading…
Reference in a new issue