Jump to content

Recommended Posts

Posted

Hi

 

Wondering if anyone knew the algorithm that assigns mac addresses to orange zero.  Is it based on something static/cpu id /...?  or it is purely random.  

 

Will this mac change over time or after it is generated, it will stay the same?

 

I have one zero that mac is pretty static and another changed mac after I did a upgrade.

 

If I want better control of the mac address, what's the best way to make it static?

 

this is on the mainline

 

-jerry

Posted

It is based on SID and it changed once in the past, when SID issue was fixed in U-Boot. It was discussed on forum before and search for that post for any technical explanation.

Posted

Using latest nightly (5.27.170309) with 4.10.1 kernel on OPi PC. I'm trying to override the mac address since it changed after switching over from legacy kernel.

I followed martinayotte's post at https://forum.armbian.com/index.php?/topic/1738-opi-lite-mac-address/&do=findComment&comment=15574 and added a mac-address option to the corresponding device tree section. Unfortunately it doesn't have any effect and the value at /sys/firmware/devicetree/base/soc/ethernet@1c30000/mac-address does not seem to change.

Is this the expected behavior? If so, what would be the right way to do it?

Posted

Yes thanks, I had already noticed the local-mac-address option in the dts and tried both that one and mac-address. Neither is working for me though. Both always get overwritten at some point with 02814cea2d8d.

Posted

I've looked into driver/of/of_net.c, and all those 3 keywords are supported : address/mac-address/local-mac-address.

I've tried it myself, and effectively it doesn't work.

This means that some bug has been introduced in last few months.

I will have to dig further by adding traces into a custom kernel build.

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines