MAC address

Started by kgolding, June 27, 2013, 04:00:43 PM

Previous topic - Next topic

kgolding

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

HeHoPMaJIeH

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

kgolding

Many thanks, so am I right in thinking that the board doesn't come with a 'real' mac address?

martinayotte

#3
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 ...