On Mon, Dec 08, 2003 at 08:06:53PM +0000, Peter Naulls wrote:
> In message <1070908367.27589.58.camel@xxxxxxxxxxxxxxxxxxxx>
> Andrew Victor <andrew@xxxxxxxxxxxxx> wrote:
>
> > I would guess that u-boot is not setting the ethernet MAC address in the
> > EMAC_SA registers. The Linux driver will refuse to open the device if
> > it does not have a valid MAC address.
> >
> > You can verify this by looking at the boot messages. It probably shows:
> > eth0: AT91 ethernet at 0xfefbc000 int=24 100-FullDuplex (00:00:00:00:00:00)
>
> Yes, this is quite correct. I'll devise a work around for the time
> being. However, when it does set an address, it's not terribly
> helpful: 00:00:00:00:ff:01
>
> Either the orignal has been lost from flash, or it's just looking in
> the wrong place.
Note that all ethernet drivers /must/ validate their ethernet address
and refuse to allow the interface to be opened in the case of invalid
ethernet addresses.
The kernel contains "is_valid_ether_addr" specifically for this
purpose.
You can also validate the ether addr on initialisation, and print a
helpful message if you really care.
However, initialising and using an invalid ethernet address is a really
stupid thing to do; consider what would happen if you ended up with
the broadcast address.
-------------------------------------------------------------------
Subscription options: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
FAQ/Etiquette: http://www.arm.linux.org.uk/armlinux/mailinglists.php
|