Jump to content

Mac Address Assignment on Orange Zero


jerryc

Recommended Posts

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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Important Information

Terms of Use - Privacy Policy - Guidelines