Please provide code to archive this
please upstream this to openwrt. much appreciated.
Is there an update for this? Haven’t found a good solution for always changing mac addresses
I’m using vanilla OpenWrt Snapshot.
MAC address is persistent for me already out of the box.
Clarification:
but I don’t think the persistence is handled by EEPROM. So there is benefit if OP upstreams his changes. But not a must-have. That’s what I meant.
With a complete dump of all EEPROMs (knowing which is which) I will be able to easily support this in OpenWrt. For now, all the R4 boards I had came with EEPROMs all empty, because they were pre-mass-production samples. Knowing that the final version of the board actually comes with valid MAC addresses is great, and we should prefer that instead of storing the randomly generated local one at first boot.
I think final production of BPI-R4 come with empty EEPROMs as well. MACs are scarce resources now. They cost money. So I think that’s why it’s empty. Some vendors choose to charge extra for a pre-programmed valid MACs.
In fact, I like the idea it’s not programmed with a MAC for development boards. Save the cost for a cheaper price. Most people will have old devices collecting dust at home. They can re-use the old MAC if they really want a globally ‘unique’ one.