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

Michael Trimarchi trimarchi at gandalf.sssup.it
Tue Feb 17 13:24:27 CET 2009


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


More information about the U-Boot mailing list