[U-Boot] MAC address being reset to 00:00:00:00:00:00 ?
Amit Margalit
amit.margalit at siverge.com
Tue Feb 17 12:50:49 CET 2009
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 at 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
#####################################################################################
More information about the U-Boot
mailing list