Is there any code in Linux or u-boot that will magically set the Ethernet MAC address if I put the right part in the right place (for example, copying the example of the carrier card), or am I responsible for writing some code?
Edit: I understand that u-boot can supply a MAC address. But I'm asking how I get an official MAC address from an attached serial eeprom into the running system. I was unable to find any code to do this, be it u-boot, kernel, a manufacture-time utility, or a utility that runs every time on boot.