How to fix MAC Address change after reboot ?

1,039 views
Skip to first unread message

Elia

unread,
Feb 23, 2014, 10:44:37 AM2/23/14
to ra...@googlegroups.com
Hi,
I install Linaro 13.11 Server version of Operating System, but when I restart Radxa I see that the MAC address constantly change.
Is there any way to fix Mac address change ?
Greetings 
Elia

Tom Cubie

unread,
Feb 23, 2014, 11:09:00 AM2/23/14
to Elia, ra...@googlegroups.com
Hi, The latest kernel can get a fix MAC address by passing the
"mac_addr=xx:xx:xx:xx:xx:xx" cmd line to kernel.

https://github.com/linux-rockchip/rockchip-3.0/commit/6187f5da2e9f2b164bd8e8cb36b963ddceb3d1d1

You need
1. build the latest kernel and make a boot.img and flash it to boot
partition, instructions are here:
http://wiki.radxa.com/Rock/Booting_Linux

2. edit your parameter file and add mac_addr=xx:xx:xx:xx:xx:xx in
kernel cmd line and flash the parameter


A pre-built latest boot.img can be found here:
http://dl.radxa.com/rock/images/ubuntu/2014-02-20/boot.img
An example parameter file can be found here:
http://dl.radxa.com/rock/images/ubuntu/2014-02-20/parameter

You can just flash them to get a fixed mac address.

> Greetings
> Elia
>
> --
> You received this message because you are subscribed to the Google Groups
> "radxa" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to radxa+un...@googlegroups.com.
> To post to this group, send email to ra...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.



--
radxa rock - quad core arm computer that rocks

radxa.com

Elia

unread,
Feb 23, 2014, 11:18:52 AM2/23/14
to ra...@googlegroups.com, Elia, t...@radxa.com

Tom,
thanks for your reply as soon as possible I try and let you know.
Greetings.
Elia

Andrei Basangiu

unread,
Mar 1, 2014, 2:56:15 PM3/1/14
to ra...@googlegroups.com, Elia, t...@radxa.com
Hello,

I just flashed the boot.img and parameter file, but still, after every reboot, the board has a different MAC address.
What I did was:

Rockusb>DI -b boot.img
Download boot start...
Download image ok.
Rockusb>DI -p paramfile
Download parameter ok.
Rockusb>q

Is there anything else I'm missing?

Regards,
Andrei
Message has been deleted

Haggy

unread,
Mar 1, 2014, 7:38:25 PM3/1/14
to ra...@googlegroups.com
I found a workaround to this problem.  While I would rather have the kernel provide me with a MAC, simply adding one line to the /etc/network/interfaces file seems to bee generating the MAC I want:

auto eth0
iface eth0 inet dhcp
       hwaddress ether 01:02:03:04:05:06

Obviously I used a different address than that, but you get the picture.

Andrei Basangiu

unread,
Mar 2, 2014, 2:58:44 AM3/2/14
to ra...@googlegroups.com
Hello,

I tried adding the hwaddress to the configuration file too. But this (or setting a static ip address) makes the board not boot properly after a reboot.

What I mean is the board boots up to ""vbus detect", gets over that and displays 4 more traces and then just stays like that. Root user doesn't login automatically and the ethernet LEDs don't light up anymore, so I have no more SSH access.
I tried fixing the problem by booting from a lubuntu-desktop rootfs on my microSD and removing the settings from nand, but even with them removed, it behaves the same. This happens on a linaro-server rootfs by the way.

Any of you encountered this while setting up a hwaddress or static ip in the /etc/network/interfaces config file?

Andrei

Elia

unread,
Mar 2, 2014, 6:32:04 AM3/2/14
to ra...@googlegroups.com
I have the same problem.
I download http://dl.radxa.com/rock/images/ubuntu/2013-12-17/rootfs-server.img and write it to first ext4 SD partition, then I write parameter and boot.img with RKDevelopTool ( in parameter i modify "root=/dev/mmcblk0p1"), but the boot stop after "vbus detected".

Haggy

unread,
Mar 2, 2014, 8:57:30 PM3/2/14
to ra...@googlegroups.com
I also have the problem with not being able to get far past the vbus search if I try to use the boot.img and parameters file provided by Tom.  That's why I ended up working around the problem with the interfaces file.  I can get it to work if I first low-level format the nand, then install either the server img or the "raring" img, then go and flash only the parameters file (which I incidentally edited to make a larger rootfs partition).



Alex

unread,
Mar 4, 2014, 2:55:33 PM3/4/14
to ra...@googlegroups.com

Am Montag, 3. März 2014 02:57:30 UTC+1 schrieb Haggy:
I also have the problem with not being able to get far past the vbus search if I try to use the boot.img and parameters file provided by Tom.  That's why I ended up working around the problem with the interfaces file.  I can get it to work if I first low-level format the nand, then install either the server img or the "raring" img, then go and flash only the parameters file (which I incidentally edited to make a larger rootfs partition).


Might be this problem

but you should open a new thread if you have a new problem than the one described in the title.

Alex


Reply all
Reply to author
Forward
0 new messages