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

Amit Margalit
2009-02-17T14:37:12Z

Hi!

Thanks. This solved the issue. I tracked this down and found that I was using an address that is a multi-cast address and it got rejected.

Now I wonder why the address isn't being set by U-boot? Any ideas?

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

Leading Networking One Chip Forward
> -----Original Message-----
> From: Michael Trimarchi [mailto:trimarchi at gandalf.sssup.it]
> Sent: ? 17 ?????? 2009 14:24
> To: Amit Margalit
> Cc: u-boot at lists.denx.de
> Subject: Re: [U-Boot] MAC address being reset to 00:00:00:00:00:00 ?
>
> Hi,
>
> Look at the linux git code the driver use this function to fill the mac
> address of your net,
> and so I think that somenthing fail here. Maybe is not valid? Try to
> verify if it fails.
>
> const void *of_get_mac_address(struct device_node *np)
> {
> struct property *pp;
>
> pp = of_find_property(np, "mac-address", NULL);
> if (pp && (pp->length == 6) && is_valid_ether_addr(pp->value))
> return pp->value;
>
> pp = of_find_property(np, "local-mac-address", NULL);
> if (pp && (pp->length == 6) && is_valid_ether_addr(pp->value))
> return pp->value;
>
> pp = of_find_property(np, "address", NULL);
> if (pp && (pp->length == 6) && is_valid_ether_addr(pp->value))
> return pp->value;
>
> return NULL;
> }
>
> Michael