Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A10s => Topic started by: kgolding on June 27, 2013, 04:00:43 PM

Title: MAC address
Post by: kgolding on June 27, 2013, 04:00:43 PM
The MAC address on my A10S boards appear to change each time I reboot them.

Is it possible to fix the MAC in some way?

Kevin
Title: Re: MAC address
Post by: HeHoPMaJIeH on July 03, 2013, 09:34:00 AM
Hi,
you can do it in user-space at startup with this command :
ifconfig eth0 hw ether xx:xx:xx:xx:xx:xx
or you can add this line to script.bin
[dynamic]
MAC = "XXXXXXXXXXXX"


http://linux-sunxi.org/WEMAC

~Best
Title: Re: MAC address
Post by: kgolding on July 03, 2013, 06:18:50 PM
Many thanks, so am I right in thinking that the board doesn't come with a 'real' mac address?
Title: Re: MAC address
Post by: martinayotte on July 06, 2013, 06:39:48 PM
I've installed the sunxi-tools, then I did bin2fex on script.bin, edit the script.fex to add the MAC, fex2bin to get new script.bin back on the microsd, then reboot.

It seems not having any effect, the MAC doesn't seems to be loaded from the script.bin, and still getting random value once in awhile.

Any idea ?

Update : I've found the glitch ...

I was using : MAC = "0123456789ab", but dmesg report this error :

emac MAC isn't valid!

So, I switched the FEX entry to MAC = "ba9876543210", and it worked ...