[PATCH 1/2] ti: Do not try to read the mac address if no NET is enabled

Maarten Brock Maarten.Brock at sttls.nl
Fri Sep 5 15:14:36 CEST 2025


> From: Tom Rini
> On Mon, Sep 01, 2025 at 04:06:04PM +0000, Maarten Brock wrote:
> 
> > It is pointless to fetch the mac address if it will never be used.
> >
> > Signed-off-by: Maarten Brock <maarten.brock at sttls.nl>
> > ---
> >
> >  board/ti/am335x/board.c | 72 ++++++++++++++++++++---------------------
> >  1 file changed, 36 insertions(+), 36 deletions(-)
> 
> The problem with doing this is I believe that we pass this information
> on to the linux kernel, which at least in the past has assumed it would
> be provided correctly by us, even if U-Boot didn't use the networking.
> These fuses will always be populated so it's not a problem to be reading
> them.
> 
> --
> Tom

This is not what I see happening. Linux can detect the MAC address by
itself. I've replaced the actual mac address below by *'s, but verified it
is exactly the same as found at 0x44E10630.

[    1.444956] cpsw-switch 4a100000.switch: initialized cpsw ale version 1.4
[    1.444998] cpsw-switch 4a100000.switch: ALE Table size 1024
[    1.445125] cpsw-switch 4a100000.switch: cpts: overflow check period 5000 (jiffies)
[    1.445146] cpsw-switch 4a100000.switch: CPTS: ref_clk_freq:250000000 calc_mult:2147483648 calc_shift:29 error:0 nsec/sec
[    1.445215] cpsw-switch 4a100000.switch: Detected MACID = **:**:**:**:**:**
[    1.487205] cpsw-switch 4a100000.switch: initialized (regs 0x4a100000, pool size 256) hw_ver:0019010C 1.12 (0)

Kind Regards,
Maarten


More information about the U-Boot mailing list