[U-Boot] MAC address being reset to 00:00:00:00:00:00 ?

Amit Margalit
2009-02-17T11:50:49Z

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