
On Mon, Oct 3, 2022 at 9:50 AM Fabio Estevam festevam@gmail.com wrote:
On Mon, Oct 3, 2022 at 1:26 PM Fabio Estevam festevam@gmail.com wrote:
And 'dm tree' shows that the Ethernet drivers have not been probed:
=> dm tree
ethernet 0 [ ] fecmxc | | `-- ethernet@30be0000 ... mdio 0 [ ] fec_mdio | | `-- mdio
This was an issue in Kconfig. Now with the new mv88e6xxx driver properly selected I get:
SEC0: RNG instantiated Net: Error: ethernet@30be0000 address not set. Error: ethernet@30be0000 address not set. Error: ethernet@30be0000 address not set. Error: ethernet@30be0000 address not set. Error: ethernet@30be0000 address not ...
and not able to access console as these errors keep coming in loop.
Fabio,
Looks like this is coming from net/eth-uclass.c with CONFIG_NET_RANDOM_ETHADDR not defined and would be because there is no ethaddr env to set the MAC addr?
If I undefine ethaddr on my board and define CONFIG_NET_RANDOM_ETHADDR=y I get an random MAC that is the same for all ports and DHCP/networking works but if I then disable CONFIG_NET_RANDOM_ETHADDR I see the same behavior as you - so it looks like the lack of a valid MAC addr causes eth_post_probe() to fail by design?
Tim