AnsweredAssumed Answered

How to set a MAC address when using U-Boot with CONFIG_CMD_NET=n

Question asked by Jiri Luznicky on Aug 15, 2016
Latest reply on Aug 17, 2016 by igorpadykov

Hello,

is there any recommended way, how to set MAC address for FEC on iMX6UL when networking is disabled in U-Boot? We have MAC address burned in fuses. When U-Boot is compiled with networking support ethaddr is set as environment value, and propagated to kernel correctly.

When networking support is disabled, MAC address is not set. We got this error:

fec 2188000.ethernet (unnamed net_device) (uninitialized): Invalid MAC address: 00:00:00:00:00:00

 

I thought, that MAC address fuses are read by kernel driver, but obviously not. Or is there something missing in dts file?

 

Edit:

there is a piece of code in fec_main.c in function fec_get_mac, which obviously should do it.

 

Thanks for any info

Jiri

Outcomes