LicheePi4A icon indicating copy to clipboard operation
LicheePi4A copied to clipboard

Every boot, a random MAC address.

Open stolk opened this issue 1 year ago • 4 comments

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.

stolk avatar May 20 '23 17:05 stolk

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.

dtometzki avatar May 22 '23 14:05 dtometzki

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.

stolk avatar May 23 '23 00:05 stolk

Yes, it was weird, try sudo ifconfig

From: Bram Stolk @.*** Sent: Monday, May 22, 2023 8:38 PM To: sipeed/LicheePi4A @.> Cc: Subscribed @.> Subject: Re: [sipeed/LicheePi4A] Every boot, a random MAC address. (Issue #7)

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.

— Reply to this email directly, view it on GitHub https://github.com/sipeed/LicheePi4A/issues/7#issuecomment-1558275497 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTXULD4KLYQVYN7WU3ZQYDXHQBHRANCNFSM6AAAAAAYI3FKSM . You are receiving this because you are subscribed to this thread. https://github.com/notifications/beacon/ABTXULGZCHSMIYLELLC2HMTXHQBHRA5CNFSM6AAAAAAYI3FKSOWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTS44FS2S.gif Message ID: @.*** @.***> >

LenReinhart avatar May 23 '23 00:05 LenReinhart

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

Zepan avatar May 25 '23 13:05 Zepan