From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 6/8] AM35xx: Read and set ethaddr for EMAC
Date: Wed, 07 Dec 2011 18:41:30 +0100 [thread overview]
Message-ID: <20111207174130.CFBC91EFEDC@gemini.denx.de> (raw)
In-Reply-To: <4EDF7E34.1070007@ti.com>
Dear Tom Rini,
In message <4EDF7E34.1070007@ti.com> you wrote:
>
> > This is a wrong place for this code...
> > You force every board to use the EFUSE'd MAC address - this is wrong.
> > The board must have a freedom to choose what MAC address it wants to use.
> > You don't even check if ethaddr variable is already set...
> >
> > What you can do is put this implementation into a separate function
> > and let board to make a decision if it wants to call it or use another
> > MAC address.
> > Something like:
> > int am3517_get_efuse_enetaddr(u8 *enetaddr)
> > {
> > /* read the address and shift or whatever */
> > ...
> > return is_valid_ether_addr(enetaddr);
> > }
>
> That's reasonable enough. I wasn't sure where the custom boards were
> getting their MAC as the EVM and Crane both need this change.
The rule is that the settings in the environment always have
precedence, and you must never overwrite an existing "eth*addr" in
the environment.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
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
"They that can give up essential liberty to obtain a little temporary
saftey deserve neither liberty not saftey." - Benjamin Franklin, 1759
next prev parent reply other threads:[~2011-12-07 17:41 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-06 15:49 [U-Boot] [PATCH 0/8] AM3517 EVM / Crane enhancements Tom Rini
2011-12-06 15:49 ` [U-Boot] [PATCH 1/8] OMAP3: Correct SYSBOOT_MASK Tom Rini
2011-12-06 15:49 ` [U-Boot] [PATCH 2/8] OMAP3: Drop extra delay in gpmc_init Tom Rini
2011-12-06 15:49 ` [U-Boot] [PATCH 3/8] AM3517: Add NOR Flash boot mode Support Tom Rini
2011-12-07 14:25 ` Igor Grinberg
2011-12-08 1:07 ` Tom Rini
2011-12-08 14:12 ` Igor Grinberg
2011-12-08 14:38 ` Tom Rini
2011-12-08 15:11 ` Igor Grinberg
2011-12-08 11:11 ` Hiremath, Vaibhav
2011-12-08 13:48 ` Igor Grinberg
2011-12-08 17:40 ` Hiremath, Vaibhav
2011-12-06 15:49 ` [U-Boot] [PATCH 4/8] AM3517 EVM: Add uEnv.txt to the default bootcmd Tom Rini
2011-12-06 15:49 ` [U-Boot] [PATCH 5/8] AM3517 EVM: Add am3517_evm_norflash and _norflash_boot targets Tom Rini
2011-12-06 15:49 ` [U-Boot] [PATCH 6/8] AM35xx: Read and set ethaddr for EMAC Tom Rini
2011-12-07 14:48 ` Igor Grinberg
2011-12-07 14:54 ` Tom Rini
2011-12-07 17:41 ` Wolfgang Denk [this message]
2011-12-06 15:49 ` [U-Boot] [PATCH 7/8] AM3517 EVM: Enable ethernet Tom Rini
2011-12-06 15:49 ` [U-Boot] [PATCH 8/8] AM3517 Crane: " Tom Rini
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=20111207174130.CFBC91EFEDC@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox