
13 Oct
2020
13 Oct
'20
10:20 a.m.
Hi Thomas,
On 13 Oct 2020, at 08:35, Thomas Petazzoni thomas.petazzoni@bootlin.com wrote:
I suspect you have the mvneta driver as a module ? If this is the case, then indeed, the MAC address is lost because Linux turns of all unused clocks at the end of the boot. When the driver is built-in, there is a driver adding a reference to the clock before all unused clocks are disabled. When the driver is compiled as a module, this does not happen. So indeed, the correct solution here is to have U-Boot pass the MAC address in the Device Tree.
Yes, you are right, the driver is compiled as module. This explains everything, thank you very much for the clarification.
Have a nice day!
Cheers, Ezra.