From: Mike Frysinger Date: Mon, 6 Aug 2012 19:40:41 -0400 Subject: [U-Boot] [QUESTION] "ethaddr" env. var. vs. dev->enetaddr In-Reply-To: References: <261180882.2030378.1344278963347.JavaMail.root@advansee.com> <5305998.2030837.1344279746848.JavaMail.root@advansee.com> Message-ID: <201208061940.42635.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Monday 06 August 2012 18:45:58 Joe Hershberger wrote: > On Mon, Aug 6, 2012 at 2:02 PM, Beno?t Th?baudeau wrote: > > There's a lot of stuff in U-Boot relying on ethaddr being set, e.g. the > > bdinfo command, or the linklocal command because of seed_mac. If ethaddr > > is not set, bdinfo will report exactly that, but linklocal will wait > > indefinitely without displaying anything. > > This sounds like a problem to be fixed one way or another. there was a patch floating around for setting up ethaddr env var automatically in the net core during init if it wasn't already set > > Hence, shouldn't the users of ethaddr rather use dev->enetaddr, or is > > ethaddr really supposed to be required (bug or feature)? > > Because of the logic that prevents dev->enetaddr set from hardware to > override ethaddr (since ethaddr should always be the source of the MAC > in all but exceptional cases), it seems to me that using ethaddr is > correct. Perhaps in the case of bdinfo, it could explicitly say that > ethaddr is not set, and if dev->enetaddr is in use, it could also > print that. no, nothing outside of the net layer should ever touch dev->enetaddr. this is clearly documented in doc/README.enetaddr. -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. URL: