From: Timur Tabi <timur@freescale.com>
To: Kumar Gala <galak@kernel.crashing.org>
Cc: linuxppc-dev <linuxppc-dev@ozlabs.org>
Subject: Re: mac-address vs. local-mac-address
Date: Wed, 07 Feb 2007 16:22:40 -0600 [thread overview]
Message-ID: <45CA5130.2020006@freescale.com> (raw)
In-Reply-To: <31D17474-FA61-4E0A-9114-FB6C965451FF@kernel.crashing.org>
Kumar Gala wrote:
>> For most boards, the compiled-in option is just some random MAC
>> address. When the board is shipped, the manufacturer creates his own
>> set of environment variables and overrides what's stored on flash.
>
> And where does the mfg store these?
Ideally, on the Ethernet adapters's internal EEPROM. On non-OF systems, the
driver is supposed to read the MAC address from the hardware.
> Ok, so 'compiled-in' wasn't the best choice. What I meant is
> 'local-mac-address' is the MAC address u-boot decides to use when it
> boots before any user interaction.
I agree with that.
> (this may be the compiled-in one, or
> one from flash env settings, or whatever other source the board code
> decides).
Well, I think you mean that it should be only the environment variable. The
compiled-in version is just a default value for the environment, so that should
be ignored. On a few U-Boot Ethernet drivers, the driver queries the hardware
and fetches the MAC address from it. The driver then updates the environment
variable.
So in all case, when U-Boot boots the kernel, it should use the environment
variable to update local-mac-address, and leave mac-address alone. I'm trying
to get a consensus on this proposition.
--
Timur Tabi
Linux Kernel Developer @ Freescale
next prev parent reply other threads:[~2007-02-07 22:22 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-07 21:17 mac-address vs. local-mac-address Timur Tabi
2007-02-07 21:32 ` Benjamin Herrenschmidt
2007-02-07 21:41 ` Kumar Gala
2007-02-07 21:46 ` Timur Tabi
2007-02-07 21:42 ` Timur Tabi
2007-02-07 21:51 ` Kumar Gala
2007-02-07 22:07 ` Timur Tabi
2007-02-07 22:14 ` Kumar Gala
2007-02-07 22:22 ` Timur Tabi [this message]
2007-02-07 22:07 ` Benjamin Herrenschmidt
2007-02-07 22:16 ` Timur Tabi
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=45CA5130.2020006@freescale.com \
--to=timur@freescale.com \
--cc=galak@kernel.crashing.org \
--cc=linuxppc-dev@ozlabs.org \
/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).