Rock64, all boards end up with same MAC address

Ask questions about Arch Linux ARM. Please search before making a new topic.

Rock64, all boards end up with same MAC address

Postby dkoch84 » Wed Dec 04, 2019 2:39 am

Hello,

I followed the install instructions on the Rock64 section of ArchlinuxArm. I'm trying to end up with 4 boards running Arch.

I first installed and configured 1 board, then used dd to clone it to a disk image, and used dd again to write that to another micro sd card. Upon booting that second board, I had IP address conflicts because I had setup a static IP for the first board (on my router, based on MAC address). The second board has the same MAC address, so gets assigned the same IP address. Makes sense.

I googled and attempted to remedy this problem via systemd-firstboot and regenerating a machine-id. No luck, so I just tried to do a fresh install on the 2nd board.

With a completely new install on a 2nd micro sd card, upon booting, I get the same MAC address. I currently have the 1st board up and running, and then I plug in a fresh install, new files downloaded and everything. Same MAC address.

What am I missing here? How can I get two identical boards running on the same network with different MAC addresses?

Edit: In the meantime, I am able to spoof the MAC addresses with a systemd file, following the Arch Wiki guide on MAC spoofing. But why must I do this?
dkoch84
 
Posts: 1
Joined: Wed Dec 04, 2019 2:03 am

Re: Rock64, all boards end up with same MAC address

Postby summers » Wed Dec 04, 2019 1:16 pm

If you check http://os.archlinuxarm.org/os/rockchip/boot/rock64/boot.scr

You'll see that the uboot env variable macaddr is set to the mach address.

You can change this in /boot/ for each machine, make sure you compile it afterwards.

So probably what you want to do is to update to the new uboot-rock64, then modify /boot/boot.txt:

https://archlinuxarm.org/packages/aarch64/uboot-rock64/files/boot.txt

And recompile.
summers
 
Posts: 995
Joined: Sat Sep 06, 2014 12:56 pm


Return to User Questions

Who is online

Users browsing this forum: No registered users and 21 guests