Can anyone tell me if it is possible to be able to assign a MAC Address when booting from NAND flash where no SPI Flash exists (i.e. custom board).
Regardless of setting the ethaddr variable in u-boot, whenever linux boots, a random Mac Address is assigned. I have found discussions on the fact that when booting Linux, the Mac Address is attempted to be retrieved from SPI Flash...and if it is not found, it will assign a random Mac Address regardless of what u-boot ethaddr variable is set to. I also see there is some patch that is required from here: https://patchwork.kernel.org/patch/861732/ in order to have the Mac Address correctly assigned. In addition, I have found the documentation on how to restore the MAC Address on SPI Flash if it was erased or needs to be changed from here: http://processors.wiki.ti.com/index.php/GSG:_OMAP-L138_DVEVM_Additional_Procedures#Restoring_MAC_address_on_SPI_Flash. My big problem is that nobody is talking about the situation when no SPI Flash is available. Can the MAC Address assignment be done from NAND flash? If so how? If not..does this mean I need to put SPI Flash on my custom board for the sole purpose of assigning a static MAC Address? I can't ship production boards with MAC Addresses that change everytime a board is booted. BTW - I have an AM1808 processor.
Thanks for any help you can provide!