public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Simon Kagstrom <simon.kagstrom@netinsight.net>
To: u-boot@lists.denx.de
Subject: [U-Boot] net, kirkwood_egiga: init mac address before using network commands
Date: Tue, 30 Mar 2010 11:01:58 +0200	[thread overview]
Message-ID: <20100330110158.53b0d595@marrow.netinsight.se> (raw)
In-Reply-To: <20100330082659.36ECFE73028@gemini.denx.de>

On Tue, 30 Mar 2010 10:26:59 +0200
Wolfgang Denk <wd@denx.de> wrote:

> > Personally, I'd prefer using Heikos approach until Arm Linux has moved
> > to device trees. I know it's a deviation from how it's supposed to
> > work, but it also solves a real problem without introducing kludges
> > elsewhere.
> 
> If we do not even raise issues with the current Linux code with the
> Linux developers they will not even be aware that there are problems.
> In the end, things will never change.  

I believe they are aware of this especially since many developers work
on both projects anyway. If I remember the discussion on ARM device
trees a year ago or so correct, this was one of the issues brought up
in support of the device trees (or it should have, anyway).

> > I think most people (myself included) would just "solve" the problem by
> > carrying a private patch to setup the MAC address in U-boot anyway.
> 
> Interesting.  Why would you do this?  Why would you not rather fix the
> Linux driver instead? [This is what I would do.]

Basically two reasons: First, it's a simpler fix in U-boot (a oneliner
for Kirkwood), and secondly because (as far as I understand, correct me
if I'm wrong), it lacks any well-defined protocol to transfer this
knowledge to the kernel driver.

I know mostly how it looks on the OpenRD board, where the MAC address
is stored in the U-boot environment. Easy to access in U-boot, but a
lot trickier from Linux. Sure, you could transfer it via a command-line
parameter or something, but personally I think this is uglier than
setting it up in U-boot anyway.

// Simon

  reply	other threads:[~2010-03-30  9:01 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-30  5:38 [U-Boot] net, kirkwood_egiga: init mac address before using network commands Heiko Schocher
2010-03-30  7:35 ` Mike Frysinger
2010-03-30  7:43 ` Simon Kagstrom
2010-03-30  7:52 ` Detlev Zundel
2010-03-30  8:01   ` Simon Kagstrom
2010-03-30  8:26     ` Wolfgang Denk
2010-03-30  9:01       ` Simon Kagstrom [this message]
2010-03-30  9:42         ` Detlev Zundel
2010-03-30  8:01 ` 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=20100330110158.53b0d595@marrow.netinsight.se \
    --to=simon.kagstrom@netinsight.net \
    --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