[PATCH RFC] cmd: fix net list command

Ramon Fried rfried.dev at gmail.com
Tue Nov 16 07:14:09 CET 2021

On Mon, Nov 15, 2021 at 6:45 PM Marek Vasut <marex at denx.de> wrote:
> On 11/15/21 4:21 PM, Michael Walle wrote:
> > Hi,
> >
> > Am 2021-11-15 16:15, schrieb Wolfgang Denk:
> >
> >> | And if you don't want to use this feature just don't enable it via
> >>
> >> This say all, no patches needed.
> >
> > Yes, I'm giving up. I'll just deactivate that option then and open code
> > it in my board.
> Why don't you simply implement the SPI NOR OTP readout in U-Boot and get
> valid MAC address from there, which is the proper fix here ?

Joining late to the party, which started earlier in IRC.
net list has a problem, it won't display random MAC addresses if those
were generated with the CONFIG_NET_RANDOM_ETHADDR.
It appears that the reason for that, is that the random mac address
didn't reach the environment variable, where it should have been.
That's a bug, and it was fixed by Michal. and I approved that patch.
already waiting to be pulled by Tom.

It appears that Michael has some board and a scenario that *this* bug
was working for his best interest, where he can have two distinct MAC
addresses, one in U-boot and one in Linux.
Mark and I already provided work around for Michael to delete the
environment variable before he boots. or implement the necessary OTP
driver in U-Boot.
>From my end, I think we can conclude the discussion.

More information about the U-Boot mailing list