Paulraj, Sandeep wrote:
> Ben,
>
Hi,
> When the board comes after I reflash with a new U-boot image, I no
> longer see the ethaddr being set. But when I do a tftp I can see the
> ethaddr being read. tftp complains and says no ethaddr set.
Not sure, but it seems that the mac address is read from the eeprom
connected to the DM9000 and it is not used again.
I see that the mac address is copied into the environment variable, but
is is not copied to the dev structure.
Could you give the following simple patch a try ?
Regards,
Stefano
--
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: [email protected]
=====================================================================
diff --git a/drivers/net/dm9000x.c b/drivers/net/dm9000x.c
index efe9135..9c95e53 100644
--- a/drivers/net/dm9000x.c
+++ b/drivers/net/dm9000x.c
@@ -348,6 +348,7 @@ static int dm9000_init(struct eth_device *dev, bd_t *bd)
for (i = 0; i < 3; i++)
dm9000_read_srom_word(i, enetaddr + 2 * i);
eth_setenv_enetaddr("ethaddr", enetaddr);
+ memcpy(dev->enetaddr, enetaddr, 6);
#endif
}
_______________________________________________
U-Boot mailing list
[email protected]
http://lists.denx.de/mailman/listinfo/u-boot