Setting a MAC on Rock64 U-Boot
#1
Hello everyone,

I just updated a cluster of Rock64 4G boards I have and they all forgot their MAC address now and have defaulted to 82:57:28:5d:f7:9d (no idea where this MAC comes from, the ones I had set where very different and started with "da:19:c8").

I was setting the MACs in the bootloader script via boot.txt and ./mkscr using this guide (wiki tab) but now that evidently does not work.

Asking that the OS side (forum post) did not produce much so I came here to ask:

How can I set the MAC of my Rock64s in uboot?

Thanks,
K
  Reply
#2
I don't know about u-boot, but you can fix this on OS level fairly easily.

nano /etc/systemd/network/00-default.link

Code:
[Match]
MACAddress= 12:ac:66:34:01:32

[Link]
MACAddress=12:ac:66:02:02:02
NamePolicy=kernel database onboard slot path

That "da:19:c8" was done during Kernel change from 4.19 to 5.1 i believe, as they had to build a new u-boot since the old one wasn't working with the new Kernel.
  Reply
#3
Oh! That works really well! I wasn't aware that I could do that! Thank You very much!!! :-D
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Upgrading ancient Rock64 timxjr1300 1 71 Yesterday, 09:47 AM
Last Post: dmitrymyadzelets
  irradium (based on crux linux) Rock64 riscv64, aarch64 mara 7 1,015 11-19-2024, 02:54 PM
Last Post: mara
  How to boot an older, working kernel bits 0 93 11-01-2024, 04:43 PM
Last Post: bits
  problem with debian emmc boot G4zCDzWb 10 1,639 11-01-2024, 04:32 PM
Last Post: bits
  arch rock64 does not boot nemnob 1 962 09-20-2024, 11:18 AM
Last Post: AwU2HBg
  DietPi OS for ROCK64 MichaIng 42 43,701 09-01-2024, 06:43 AM
Last Post: RaymondDay
Smile First Lakka image for Rock64! Luke 47 81,343 09-01-2024, 06:05 AM
Last Post: RaymondDay
  Rock64 v2 - did not work song / audio sqw200zu 2 1,866 03-14-2024, 03:09 AM
Last Post: dmitrymyadzelets
  Rock64 won't boot dstallmo 0 636 12-27-2023, 10:34 AM
Last Post: dstallmo
  HDMI doesn't work on rock64 Noung1991 1 1,078 11-21-2023, 08:33 AM
Last Post: as365n4

Forum Jump:


Users browsing this thread: 1 Guest(s)