linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: smitha.vanga@wipro.com
Cc: scottwood@freescale.com, linuxppc-dev@lists.ozlabs.org
Subject: Re: Mac address in the DT
Date: Mon, 09 Jan 2012 23:40:27 +0100	[thread overview]
Message-ID: <20120109224027.A8B591167AA4@gemini.denx.de> (raw)
In-Reply-To: <40631E9A2581F14BA60888C87A76A1FE01D360@HYD-MKD-MBX4.wipro.com>

Dear smitha.vanga@wipro.com,

In message <40631E9A2581F14BA60888C87A76A1FE01D360@HYD-MKD-MBX4.wipro.com> you wrote:
>  
> >Setenv set_mac 'cp 0xffec0000 0x100000 1024;fdt addr 0xc00000 8192;fdt set=
>  /soc8272@f0000000/ethernet@24000 mac-address "[00 44 00 55 00 66]";erase 0x=
> ffec0000 0xffec4000;cp 0xc00000 0xffec0000 1024;bootm 0xfe060000 - 0xffec000=
> 0'
> 
> > run set_mac
> 
> For the above command I want to replace the mac address with the ethaddr> How
> do I do that. I tried $ethaddr but I get extra : characters.

Why would you do that at all?  U-Boot will run fdt_fixup_ethernet()
for all (at least AFAICT) supported architectures, which will replace 
"mac-address" and "local-mac-address" for all "ethernet?" interfaces
in the device tree for which a corresponding "ethadd" / "eth?addr"
environment variable is set.

No additional actions are needed.

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@denx.de
"One day," said a dull voice from down below, "I'm going to  be  back
in  form again and you're going to be very sorry you said that. For a
very long time. I might even go so far as to make even more Time just
for you to be sorry in."              - Terry Pratchett, _Small Gods_

  parent reply	other threads:[~2012-01-09 22:40 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-05  5:31 FW: Ethernet driver WR linux smitha.vanga
2011-08-05 18:12 ` Scott Wood
2011-08-08  5:53   ` smitha.vanga
2011-08-08 20:54     ` Scott Wood
2011-08-09  5:46       ` smitha.vanga
2011-08-09 17:56         ` Scott Wood
2011-08-25  7:57           ` Kernel boot up smitha.vanga
2011-08-25 11:11             ` Gary Thomas
2011-08-25 19:31             ` Scott Wood
2011-08-26  6:00               ` smitha.vanga
2011-08-26 20:08                 ` Scott Wood
2011-09-22 15:25                   ` I2c driver crash smitha.vanga
2011-09-23  1:28                     ` Benjamin Herrenschmidt
2011-09-23  6:05                       ` MohanReddy koppula
2011-10-03 12:31                   ` Request_irq fails for IRQ2 smitha.vanga
2011-12-30 12:51                   ` Mac address in the DTS file smitha.vanga
2011-12-30 14:00                     ` Lorenz Kolb
2011-12-30 18:28                     ` Wolfgang Denk
2012-01-09 13:54                       ` Mac address in the DT smitha.vanga
2012-01-09 14:20                         ` Joakim Tjernlund
2012-01-09 14:28                           ` smitha.vanga
2012-01-09 14:59                             ` Joakim Tjernlund
2012-01-09 22:40                             ` Wolfgang Denk [this message]
2012-01-10  9:37                               ` smitha.vanga
2012-01-10  9:47                                 ` Joakim Tjernlund
2012-01-10 21:55                                 ` Wolfgang Denk
2012-01-11  6:03                                   ` smitha.vanga
2012-02-06 14:25                                   ` Erase flash boot from default env smitha.vanga
2012-01-02 17:53                     ` Mac address in the DTS file Scott Wood
2012-01-24  7:35                       ` NTP server sync issue smitha.vanga

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=20120109224027.A8B591167AA4@gemini.denx.de \
    --to=wd@denx.de \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=scottwood@freescale.com \
    --cc=smitha.vanga@wipro.com \
    /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;
as well as URLs for NNTP newsgroup(s).