Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Every boot, a random MAC address. #7

Open
stolk opened this issue May 20, 2023 · 4 comments
Open

Every boot, a random MAC address. #7

stolk opened this issue May 20, 2023 · 4 comments

Comments

@stolk
Copy link

stolk commented May 20, 2023

The ethernet ports get a random MAC address, every time the system boots.

How can I get a stable MAC? I want my router to be able to identify the Lichee Pi.

@dtometzki
Copy link

dtometzki commented May 22, 2023

Hello stolk,

it seems to be an u-boot issue: In the UART Ai see:

MMC: sdhci@ffe7080000: 0, sd@ffe7090000: 1
Loading Environment from MMC... OK
Error reading output register
Warning: cannot get lcd-en GPIO
LCD panel cannot be found : -121
splash screen startup cost 16 ms
In: serial
Out: serial
Err: serial
Net:
Warning: ethernet@ffe7070000 (eth0) using random MAC address - 76:92:f5:ec:97:f9
eth0: ethernet@ffe7070000ethernet@ffe7070000:0 is connected to ethernet@ffe7070000. Reconnecting to ethernet@ffe7060000

Warning: ethernet@ffe7060000 (eth1) using random MAC address - ce:49:41:74:e5:5d
, eth1: ethernet@ffe7060000
Hit any key to stop autoboot: 0

And in config from u-boot is
CONFIG_NET_RANDOM_ETHADDR=y
set.

@stolk
Copy link
Author

stolk commented May 23, 2023

I tried setting it with ifconfig in if-pre-up.d/ but that did not work. I remember it working on sipeed rv86, but it does not work for pi4a.

@LenReinhart
Copy link

LenReinhart commented May 23, 2023 via email

@Zepan
Copy link
Contributor

Zepan commented May 25, 2023

Hi, it is known issue, we fixed in next image (before 5.31)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants