All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jens Gehrlein <sew_s@tqs.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH 10/10 v2] [ARM] TQMA31: new kernel param. to pass the eth MAC addr to the Linux eth chip driver
Date: Wed, 09 Jul 2008 13:32:36 +0200	[thread overview]
Message-ID: <4874A1D4.4000008@tqs.de> (raw)
In-Reply-To: <9b3c8e40807090344i17b01a07lf5fea2aeb2ba9dda@mail.gmail.com>

Hi Mark,

Mark Jonas schrieb:
> Hi,
> 
>> Some Linux drivers like the smc911x driver, as used on TQMA31, rely on the MAC address
>> in the appropriate register, but U-Boot resets the controller after every transfer.
>> A patch for the Linux driver is necessary to extract the MAC address from the kernel
>> boot parameter line and set the MAC address register accordingly.
>> This patch adds the kernel parameter "ethaddr" to the U-Boot default environment so that the
>> user cannot forget it.
> 
> Do you know the nwhwconf patch? We used it with a kernel 2.6.22 for
> Renesas SH3. It adds a kernel parameter nwhwconf and one of its
> options is to specify a hwaddr which is the MAC address to use. The
> Ethernet driver does not have to do anything other than to support the
> ethtool interface.
> 
> Example:
>   nwhwconf=device:eth0,hwaddr:12:34:56:78:90:ab
> 
> So I think reading a kernel parameter from the Ethernet driver is not
> a good idea - there are more generic approaches available.
> 
> There has already been a discussion on this topic on the Celinux-dev
> mailing list: http://tree.celinuxforum.org/pipermail/celinux-dev/2007-July/001477.html
> . Wolfgang Denk layed out his POV there as well.
> 
> Regards,
> Mark

I have 2.6.22, too. Thank you very much for the hint and the weblink. I 
will give the patch a try. A first look showed, that the smc911x driver 
supports ethtool.

Kind regards,
Jens

  reply	other threads:[~2008-07-09 11:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-08 14:37 [U-Boot-Users] [PATCH 10/10 v2] [ARM] TQMA31: new kernel param. to pass the eth MAC addr to the Linux eth chip driver Jens Gehrlein
2008-07-09 10:44 ` Mark Jonas
2008-07-09 11:32   ` Jens Gehrlein [this message]
2008-07-09 15:27   ` Jean-Christophe PLAGNIOL-VILLARD

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=4874A1D4.4000008@tqs.de \
    --to=sew_s@tqs.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.