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

Michael Trimarchi
2009-02-17T12:24:27Z

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