PINE64

Full Version: setting a fixed Mac address on a PineCube
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello

I have got a PineCube running Armbian, and is also using Uboot 2021.07-armbian.

I have found that the mac address keeps changing, and consequently the ip address keeps changing too. This is a real nuiscence.

I have looked for a soltution to this problem, and found some ideas on the One64 forum. Unforutnately the suggestions there didn't work for me on the PineCube.

I have tried adding these to /boot/boot.cmd (no both at once)

Code:
setenv bootargs "${bootargs} ethaddr=7e:50:d1:01:57:68"

setenv bootargs "${bootargs} mac_addr=7e:50:d1:01:57:68"

If I do 
Quote:cat /proc/cmdline


I can see that the parameters are passed to the kernel, but are not being acted upon.

I have also tried adding these to /boot/armbianEnv.txt

Code:
mac_addr=7e:50:d1:01:57:68
ethaddr=7e:50:d1:01:57:68
Again not both at once.

Can someone please tell me what I need to do to get the mac address to remain the same on subsequent boots.

Thanks in advance

Andrew
Hi Andrew,

I just tried the PineCube for the first time myself, running armbian bullseye.

At first it seemed to have the same issue, but after a system upgrade it now seems to have a persistent MAC address.

Hope it helps,
Leonardo.
Hi Leonardo,

Thanks for your reply.

When you say, "system upgrade", what exactly was upgraded? Was it Armbian? Or is there some other firmware that was upgraded?

Andrew
(11-26-2021, 09:56 AM)ajellisuk Wrote: [ -> ]Hi Leonardo,

Thanks for your reply.

When you say, "system upgrade", what exactly was upgraded? Was it Armbian? Or is there some other firmware that was upgraded?

Andrew

Indeed, I just updated Armbian via apt. To be honest I don't know what was changed that fixed it.

Notice that I was on the Bullseye version of Armbian, which is labeled as unstable.