public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] MAC address being reset to 00:00:00:00:00:00 ?
@ 2009-02-17 11:50 Amit Margalit
  2009-02-17 12:24 ` Michael Trimarchi
  0 siblings, 1 reply; 7+ messages in thread
From: Amit Margalit @ 2009-02-17 11:50 UTC (permalink / raw)
  To: u-boot

Hello all,

I am wondering what I am doing wrong - the MAC address is correct in
U-Boot but when Linux boots it resets to 00:00:00:00:00:00. My board is
a powerpc32 - MPC8543_E based board, derived mostly from Freescale's
CDS.

I have the following in the config header file:
#define CONFIG_ETHADDR   00:E0:0C:00:00:FD

I set something else in the flat device tree:
                ethernet at 24000 {
                        #address-cells = <1>;
                        #size-cells = <0>;
                        device_type = "network";
                        model = "eTSEC";
                        compatible = "gianfar";
                        reg = <24000 1000>;
                        local-mac-address = [ 51 5E BC EE 55 01 ];
                        interrupts = <1d 2 1e 2 22 2>;
                        interrupt-parent = <&mpic>;
                        phy-handle = <&phy0>;
                        phy-connection-type = "rgmii";
                };

So I tried to read
/proc/device-tree/soc8548 at e0000000/ethernet at 24000/local-mac-address -
and got the [ 51 5E BC EE 55 01 ].

But ifconfig shows:
-sh-2.05b# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:00:00:00:00:00  
          inet addr:10.0.0.247  Bcast:10.0.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:30317 errors:0 dropped:0 overruns:0 frame:0
          TX packets:17324 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:13474224 (12.8 MiB)  TX bytes:2330405 (2.2 MiB)

Any help would be appreciated.

Thanks,

Amit Margalit | SW Team Leader
Siverge Networks Ltd

5 Maskit st. Herzelia Pituah 46733 Israel
Tel:    +972-9-9526612
Fax:    +972-9-9560993
Mobile: +972-52-6390012
Web:   www.siverge.com
E-mail: Amit.Margalit at siverge.com <mailto:uAmit.Margalit@siverge.com> 
                                        
                               Leading Networking One Chip Forward


#####################################################################################
This e-mail message has been scanned for Viruses and Content and cleared 
by MailMarshal it at siverge.com
#####################################################################################

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-02-18  4:24 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-17 11:50 [U-Boot] MAC address being reset to 00:00:00:00:00:00 ? Amit Margalit
2009-02-17 12:24 ` Michael Trimarchi
2009-02-17 14:37   ` Amit Margalit
2009-02-17 16:40     ` Michael Trimarchi
2009-02-17 22:37       ` Amit Margalit
2009-02-17 22:43         ` Andy Fleming
2009-02-18  4:24           ` Amit Margalit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox