[PATCH v4 0/8] Add MV88E6xxx DSA driver and use on gwventana

Tim Harvey tharvey at gateworks.com
Mon Oct 3 20:47:21 CEST 2022


On Mon, Oct 3, 2022 at 9:50 AM Fabio Estevam <festevam at gmail.com> wrote:
>
> On Mon, Oct 3, 2022 at 1:26 PM Fabio Estevam <festevam at gmail.com> wrote:
>
> > And 'dm tree' shows that the Ethernet drivers have not been probed:
> >
> > => dm tree
> >
> >  ethernet      0  [   ]   fecmxc                |   |   `-- ethernet at 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 at 30be0000 address not set.
> Error: ethernet at 30be0000 address not set.
> Error: ethernet at 30be0000 address not set.
> Error: ethernet at 30be0000 address not set.
> Error: ethernet at 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


More information about the U-Boot mailing list