[U-Boot] [PATCH 1/4]: arm: Kirkwood: Set MAC address during registration for kirkwood egiga

Simon Kagstrom simon.kagstrom at netinsight.net
Fri Jul 10 09:24:52 CEST 2009


On Thu, 09 Jul 2009 22:44:10 -0700
Ben Warren <biggerbadderben at gmail.com> wrote:

> Simon Kagstrom wrote:
> > This patch sets the MAC address during registration in addition to
> > during device init. Since U-boot might not access the ethernet device,
> > Linux might end up with the MAC address unset.
> >   
> I think this violates U-boot policy of only touching hardware if it's 
> used, but Wolfgang can say for sure.  In general, initialize() functions 
> should just set up data structures and register the device.  There's a 
> long history of MAC-address issues with ARM chips and Linux that I've 
> happily stayed clear of so can't claim to be an expert here.

OK, I've tried looking around at how other boards do it, and at least
the most similar (mv6436x_eth_initialize() for other Marvell boards) do
it the same way as well as some others (ax88180.c).

Should Linux otherwise read the passed U-boot environment and set it up
by itself?

// Simon


More information about the U-Boot mailing list