cancel
Showing results for 
Search instead for 
Did you mean: 

How can I load a MAC address from EEPROM on an ST32MP157f at boot time using the device tree?

Russ1
Associate

 I can read the eeprom in uboot and the kernel. If I add

ethernet@...{ 

local-mac-address = [ 00 01 02 030 40 05];

};

to the device tree it will be used by the kernel. I can't seem to get any other device tree modifications to work. I'm using a stock kernel, and I'm not sure what other information might be relevant. That you for your attention.

-russ

2 REPLIES 2
Kevin HUBER
ST Employee

Hello @Russ​ ,

Sorry for the delay.

I think the major problem with this setup is that you must be sure that I2C (that handles EEPROM) is initialized before the ethernet.

Do you still need help on this topic?

Regards,

Kevin

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
As it turns out, yes, I still need assistance with this. I imagine I have a device tree entry wrong, but I have been working on other STM32MP1 audio tasks related to a certain firm in Australia. Can you point me to a document or app note that describes this? I’m using a stock 5.18.0 kernel and have been able to get most everything else I need functioning.

Thanks for your assistance…

-russ