[PATCH RFC] cmd: fix net list command

Marek Vasut marex at denx.de
Mon Nov 15 13:15:48 CET 2021


On 11/15/21 1:11 PM, Michael Walle wrote:
> Don't get the MAC address by the environment, but by the platform data
> of the udevice. This will fix "net list" if the MAC address is randomly
> generated and won't change behavior when linux is booted.
> 
> Signed-off-by: Michael Walle <michael at walle.cc>
> ---
> 
> Hi,
> 
> this is a proposal to fix the "net list" in a way that linux still can have
> its own fallback mechanism of MAC addresses even if the bootloader has
> CONFIG_NET_RANDOM_ETHADDR enabled.
> 
> The intention is to replace [1], where if I understood correctly, the
> intention was to fix "net list".
> 
> [1] https://lore.kernel.org/u-boot/3996ba2ee4e6ac136c0802dc0df4ef9b1750157c.1635506067.git.michal.simek@xilinx.com/

Does that mean U-Boot and Linux will possibly each have different MAC 
address on the same device ? That is clearly wrong and not how it is 
supposed to work, U-Boot passes its ethaddr/ethNaddr settings to Linux 
so that they would have the same MAC address on the same device.


More information about the U-Boot mailing list