From: "Mark A. Greer" <mgreer@mvista.com>
To: Wolfgang Denk <wd@denx.de>
Cc: Pantelis Antoniou <panto@intracom.gr>,
David Woodhouse <dwmw2@infradead.org>,
Meriin Michael-BMM063 <Meriin@motorola.com>,
"'Ricardo DIz'" <rdiz@alumni.deec.uc.pt>,
linuxppc-embedded@lists.linuxppc.org
Subject: Re: U-Boot and kernel 2.6
Date: Fri, 11 Jun 2004 14:35:52 -0700 [thread overview]
Message-ID: <40CA25B8.8050809@mvista.com> (raw)
In-Reply-To: <20040611144323.F293AC109F@atlas.denx.de>
Wolfgang Denk wrote:
>In message <40C9BED6.3010809@intracom.gr> you wrote:
>
>
>>OK, lets look at the very simple problem of having two
>>ethernet interfaces. From where do I get the ethernet
>>mac addresses? Modifying bd_t with defines is gross.
>>
>>
>
>This is hardware dependend. For example, on some boards the MAC
>addresses are simply sequential - so you just add one :-)
>
>
>
>>Putting everything on the kernel command line results in
>>an unreadable command line.
>>
>>
>
>Agreed. The command line is another bad solution to pass such
>information.
>
>
>
>>Yeah, having the bi_recs interface actually working
>>would be ideal, but at the present time nothing is
>>working and as AFAIK no-one is working on it.
>>
>>
>
>Mark A. Greer made a nice proposal more than 2 years ago. See
>discussion that started as "EV-64260-BP & GT64260 bi_recs" around
>March 19, 2002.
>
>I'd be happy to see this accepted.
>
Hey, thanks for the plug Wolfgang! :)
Here are some thoughts that don't directly address the bi_rec (or
whatever) issue but they are related...
Some things have changed since that thread. In particular, the "On Chip
Peripheral" or OCP support has been added to the kernel. Matt Porter
has spent a lot of time working on the OCP and has it looking/working
well. If you're not familiar with it, its worth a look.
We can use the OCP to pass information from the platform-specific kernel
code to drivers. We still have the issue of getting info into the
kernel in the first place so we still need to resolve that issue.
However, I would rather have drivers look in the OCP for info instead of
directly at bi_recs (or whatever we chose).
So for example, a network driver does not have to worry about where to
get a MAC address, it just looks in the OCP. The board-specific code
can deal with getting the MAC addr from a bi_rec, the cmd line, an I2C
SROM somewhere, conjuring one up using incrementing MAC addrs, or
whatever. After all, where to get the MAC addr really is platform (&
firmware) specific. The OCP provides a single, clean interface to pass
info into drivers.
I think its something worth considering.
Mark
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
next prev parent reply other threads:[~2004-06-11 21:35 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-10 6:45 U-Boot and kernel 2.6 Meriin Michael-BMM063
2004-06-11 10:36 ` David Woodhouse
2004-06-11 11:03 ` Pantelis Antoniou
2004-06-11 11:20 ` David Woodhouse
2004-06-11 13:03 ` Wolfgang Denk
2004-06-11 13:23 ` Pantelis Antoniou
2004-06-11 14:09 ` Wolfgang Denk
[not found] ` <40C9BED6.3010809@intracom.gr>
2004-06-11 14:34 ` David Woodhouse
2004-06-11 15:11 ` Wolfgang Denk
2004-06-11 17:17 ` Greg Goodwin
2004-06-11 15:31 ` Mark Chambers
2004-06-11 16:22 ` Wolfgang Denk
2004-06-11 16:48 ` Kenneth Johansson
2004-06-11 14:43 ` Wolfgang Denk
2004-06-11 21:35 ` Mark A. Greer [this message]
2004-06-11 23:18 ` Mark Chambers
2004-06-11 23:27 ` Mark A. Greer
2004-06-12 2:12 ` Kumar Gala
2004-06-11 16:48 ` Tom Rini
[not found] ` <0F48024310E5D6118D200002B3A440DB08B07A3D@zil01exm08.mcil.comm.mot.com >
2004-06-11 19:27 ` Ricardo DIz
-- strict thread matches above, loose matches on Subject: below --
2004-06-09 17:47 Ricardo DIz
2006-08-01 5:12 ` Dmitry Chichkov
2006-08-01 7:10 ` 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=40CA25B8.8050809@mvista.com \
--to=mgreer@mvista.com \
--cc=Meriin@motorola.com \
--cc=dwmw2@infradead.org \
--cc=linuxppc-embedded@lists.linuxppc.org \
--cc=panto@intracom.gr \
--cc=rdiz@alumni.deec.uc.pt \
--cc=wd@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;
as well as URLs for NNTP newsgroup(s).