[SOLVED] Setting a MAC on Rock64 U-Boot

This forum is for topics dealing with problems with software specifically in the AArch64 repo.

[SOLVED] Setting a MAC on Rock64 U-Boot

Postby kiriakos » Sat Mar 13, 2021 5:28 am

Hi everybody,

I have a cluster of multiple Rock64s sitting on the same net. I was changing their MAC address as described in the Rock64 Wiki (four hosts in the "da:19:c8" namespace) but as of the latest update I am not able to do so any more.

Now they all elect addr 82:57:28:5d:f7:9d on boot and I haven't found a way to change this.

Things I've already tried:
viewtopic.php?t=13149
https://forum.pine64.org/showthread.php?tid=2042
https://forum.pine64.org/showthread.php?tid=12889
https://dietpi.com/phpbb/viewtopic.php?t=8595

Any help would be greatly appreciated.
Last edited by kiriakos on Wed Mar 24, 2021 11:03 pm, edited 1 time in total.
kiriakos
 
Posts: 4
Joined: Mon Oct 12, 2020 3:44 pm

Re: Setting a MAC on Rock64 U-Boot

Postby Kabbone » Sat Mar 13, 2021 7:42 am

Do you need it at runtime or boottime (like pxe nfsroot or somemthing)?

Stock u-boot doesn't intend you be able to change the MACAddress frequently, this was only possible before because of the Rockchip bootloader, but we switched already a year ago or so.
In theory you can change the MACAddress in Stock U-boot, but only once. It should be possible to delete that in Uenv, but I don't really know at which place this is saved.
Kabbone
 
Posts: 153
Joined: Thu Jul 25, 2013 9:20 am

Re: Setting a MAC on Rock64 U-Boot

Postby kiriakos » Sat Mar 13, 2021 11:48 am

Hey, thanks for the info.

The cluster was last updated in November 2020 and until that point it worked. Could be that I still was on the old bootloader though. Is there a possibility to find out or fall back to the rockchip bootloader?

About Uenv, how can I interact with that? I'm kinda drawing a blank on the whole uboot thing. Are the /boot/boot.txt and mscr part of Uboot?

EDIT: Oh yeah, and I only want to set the MAC once. but I need it to be persistent across reboots and ideally future proof
:-D
kiriakos
 
Posts: 4
Joined: Mon Oct 12, 2020 3:44 pm

Re: Setting a MAC on Rock64 U-Boot

Postby kiriakos » Wed Mar 24, 2021 8:56 pm

kiriakos
 
Posts: 4
Joined: Mon Oct 12, 2020 3:44 pm


Return to ARMv8

Who is online

Users browsing this forum: No registered users and 5 guests