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 01:47:33 +0100 [thread overview]
Message-ID: <20100221004733.GA22011@frolo.macqel> (raw)
In-Reply-To: <e0656fd71002200649j434a8646q54a3dd3654379060@mail.gmail.com>
Hi Maxim,
On Sat, Feb 20, 2010 at 05:49:53PM +0300, Maxim Podbereznyi wrote:
>
> The code for MontaVista with kernel 2.4:
>
> static int nicGetMacAddress(u8* macaddr)
> {
[...]
> endptr = fw_getenv(sf, "ethaddr");
[...]
> }
>
> Hope you can easily adapt it to your kernel!
So the library fucntion to retrieve the value of a u-boot environment
variable is 'fw_getenv'. I do not have that function in my linux sources.
Philippe
next prev parent reply other threads:[~2010-02-21 0:47 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
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 [this message]
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=20100221004733.GA22011@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