
On 10/27/2010 09:40 AM, Jason Liu wrote:
Yes, I haved looked it before and I also tested this patch on MX51babbage 3.0 board. It will printting some confusing information with floating value of MAC address when the board boot up after you set the ethaddr enviorment. The reason is that, when it first call fec_init, the eth address of dev is not intialized and then it using the floating memory value.
Dropping the call is not the solution and works only on the MX51 if the MAC is set into the fuse. Even on the MX51, this is not a general case: it should be always possible to set the ethaddr via the environment without using the fuse.
As sure, you should at least see a "Warning : MAC addresses don't match" if the ethaddr is set to a different value as in the fuse.
However, I do not yet understand why the address is not set: fec_probe is called before doing something on the network and at this point the address should be set from fuse.
Best regards, Stefano Babic