All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] ethernet: ROM MAC address vs env variable MAC address
Date: Mon, 13 Nov 2017 20:49:02 +0100	[thread overview]
Message-ID: <20171113194902.3A0A0120504@gemini.denx.de> (raw)
In-Reply-To: <HE1PR04MB12410876E4BA09FC9CD7800C97560@HE1PR04MB1241.eurprd04.prod.outlook.com>

Dear Prabhakar,

In message <HE1PR04MB12410876E4BA09FC9CD7800C97560@HE1PR04MB1241.eurprd04.prod.outlook.com> you wrote:
> 
> Why ROM MAC address getting overwritten by environment env MAC address.  

Because in U-Boot we give the user the freedom to do what he
needs/wants to do.  Usually the environment value gets initialized
from the value in the ROM, so there is no difference anyway. But if
the user wants a specific setting, he can change it.

> MAC address is something unique and assigned to a particular device. So one should never change its MAC address.

U-Boot follows good old UNIX style here:

"UNIX was not designed to stop you from doing stupid things,  because
that would also stop you from doing clever things."       - Doug Gwyn




Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
If in any problem you find yourself doing an immense amount of  work,
the answer can be obtained by simple inspection.

  parent reply	other threads:[~2017-11-13 19:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-08 12:02 [U-Boot] ethernet: ROM MAC address vs env variable MAC address Prabhakar Kushwaha
2017-11-09 10:14 ` Lukasz Majewski
2017-11-13 19:49 ` Wolfgang Denk [this message]
2017-11-14  9:31   ` Mike Looijmans

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=20171113194902.3A0A0120504@gemini.denx.de \
    --to=wd@denx.de \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.