From: Philippe De Muyter <phdm@macqel.be>
To: u-boot@lists.denx.de
Subject: [U-Boot] what's the uboot way to pass eth*addr to linux ?
Date: Sun, 21 Feb 2010 00:59:45 +0100 [thread overview]
Message-ID: <20100220235945.GA15901@frolo.macqel> (raw)
In-Reply-To: <20100220150845.F2BD5E3A67D@gemini.denx.de>
Hello Wolfgang,
On Sat, Feb 20, 2010 at 04:08:45PM +0100, Wolfgang Denk wrote:
> Dear Philippe De Muyter,
>
> In message <20100220093717.GA9602@frolo.macqel> you wrote:
> >
> > Previously, the mac addresses were stored in the bd_info struct, but that
> > has been removed, but alas not replaced by a common mechanism for all
> > architectures.
>
> Complain about this to the Linux architecture maintainers - there have
> been many and longf discussions about this before.
Do you mean lkml or some other mailing list or individual ?
>
> Today we consider the device tree to be the Right Thing (TM) to pass
> such information to the kernel, and more and more architectures use
> this method.
AFAIK, device trees are powerpc-specific and my board is coldfire based.
>
> As long as it's not available for your architecture, the most
> straightforward way is to pass an "ethaddr=..." argument on the
> kernel command line. Drivers can pick it up easily there. Just don't
> expect that such Linux driver code will be accepted for mainline.
I don't like that method because it can easily be forgotten by someone
changing bootargs for some other reason. IMO bootargs should only be used for
configuration choices.
I'd rather go for an additional parameter given by u-boot to linux with
the address of the used u-boot environment, passed the same way that the
address of bd_info is given to linux (for coldfire's, that's on the stack)
Philippe
next prev parent reply other threads:[~2010-02-20 23:59 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-19 17:50 [U-Boot] what's the uboot way to pass eth*addr to linux ? Philippe De Muyter
2010-02-20 7:30 ` Maxim Podbereznyi
2010-02-20 9:37 ` Philippe De Muyter
2010-02-20 15:08 ` Wolfgang Denk
2010-02-20 23:59 ` Philippe De Muyter [this message]
2010-02-21 16:29 ` Wolfgang Denk
2010-03-05 19:32 ` Mike Frysinger
2010-02-20 10:38 ` Philippe De Muyter
2010-02-20 14:49 ` Maxim Podbereznyi
2010-02-21 0:47 ` Philippe De Muyter
2010-02-21 4:07 ` Ben Warren
2010-02-21 16:25 ` Wolfgang Denk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100220235945.GA15901@frolo.macqel \
--to=phdm@macqel.be \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox