[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130905112432.5854119e@skate>
Date: Thu, 5 Sep 2013 11:24:32 +0200
From: Thomas Petazzoni <thomas.petazzoni@...e-electrons.com>
To: Willy Tarreau <w@....eu>
Cc: Ethan Tuttle <ethan@...antuttle.com>,
"David S. Miller" <davem@...emloft.net>, netdev@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org,
Lior Amsalem <alior@...vell.com>,
Gregory Clement <gregory.clement@...e-electrons.com>,
Ezequiel Garcia <ezequiel.garcia@...e-electrons.com>,
Jochen De Smet <jochen.armkernel@...hnim.org>,
Peter Sanford <psanford@...rbuy.io>,
Chény Yves-Gael <yves@...ny.fr>,
Ryan Press <ryan@...sslab.us>,
Simon Guinot <simon.guinot@...uanux.org>, vdonnefort@...ie.com,
stable@...r.kernel.org, Jason Cooper <jason@...edaemon.net>
Subject: Re: [PATCH] net: mvneta: properly disable HW PHY polling and ensure
adjust_link() works
Dear Willy Tarreau,
On Thu, 5 Sep 2013 11:11:47 +0200, Willy Tarreau wrote:
>
> > Note that this can be done without doing any change in the bootloader.
> > For example, on a Mirabox, you can do:
> >
> > mw.l 0xD0072414 0x5C93; mw.l 0xD0072418 0xF0AD4E01; mw.l 0xD0076414 0x5C94; mw.l 0xD0076418 0xF0AD4E01; bootm
> >
> > to boot your kernel. This will program the MAC addresses for both
> > network interfaces in the network controllers, so that when booting
> > Linux, you get:
> >
> > [ 42.122881] mvneta d0070000.ethernet eth0: Using hardware mac address f0:ad:4e:01:5c:93
> > [ 42.385398] mvneta d0074000.ethernet eth1: Using hardware mac address f0:ad:4e:01:5c:94
> >
> > You add that to your default U-Boot boot script, and that's it, you
> > have stable MAC addresses.
>
> Hmmm that's quite interesting. Unfortunately I don't see an easy way to
> make this directly rely on the ethaddr/eth1addr so that end users can
> simply cut-n-paste a few lines into the u-boot config. But anyway that
> can be useful.
I thought about this as well, but I don't think that's possible, the
U-Boot scripting/parsing capabilities seems to be too limited to
achieve that, unfortunately.
Best regards,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists