[RFC PATCH net-next] net: stmmac: Preserve bootloader MAC address across unconditional reset

Geert Uytterhoeven geert at linux-m68k.org
Tue Jan 27 05:57:13 PST 2026


Hi Prabhakar,

On Tue, 27 Jan 2026 at 14:39, Lad, Prabhakar <prabhakar.csengg at gmail.com> wrote:
> On Mon, Jan 26, 2026 at 6:11 PM Russell King (Oracle)
> <linux at armlinux.org.uk> wrote:
> > On Mon, Jan 26, 2026 at 05:25:03PM +0000, Prabhakar wrote:
> > where "local-mac-address" states the MAC address to be used for eth0,
> > as specified by the boot loader.
> >
> Thanks for the pointer, I will use the above-mentioned method with
> which we won't be needing this patch on the RZ/T2H platform.

This should already work out-of-the-box, as
arch/arm64/boot/dts/renesas/rzt2h-n2h-evk-common.dtsi already has:

    aliases {
            ethernet3 = &gmac1;
            ethernet2 = &gmac2;

So just make sure to set the "eth2addr" and "eth3addr" environment
variables in U-Boot.

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds



More information about the linux-arm-kernel mailing list