Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: U-boot and Micrel KSZ8041 Phy
PostPosted: Fri Oct 23, 2009 8:51 pm 
Offline

Joined: Wed Mar 04, 2009 2:11 pm
Posts: 24
Hi,

We developed our own board based on AT91SAM9260-EK. Instead using Davicom, we are using the Phy from Micrel (KSZ8041).

When i try to tftp the kernel image, it doesn't work.

Code:
macb0: Starting autonegotiation...
macb0: Autonegotiation complete
macb0: link up, 100Mbps full-duplex (lpa: 0x45e1)

U-Boot> tftp 0x22000000 atmel
macb0: link up, 100Mbps full-duplex (lpa: 0x45e1)
Using macb0 device
TFTP from server 10.1.30.119; our IP address is 10.1.30.3
Filename 'atmel'.
Load address: 0x22000000
Loading: T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T
Retry count exceeded; starting again


I't seems the u-boot is detecting the phy correctly (macb0: link up, 100Mbps full-duplex (lpa: 0x45e1)).

Do i have to modify something in the macb.c driver?


Thanks
João / Brazil


Top
 Profile  
 
 Post subject: Re: U-boot and Micrel KSZ8041 Phy
PostPosted: Sat Oct 24, 2009 12:32 am 
Offline

Joined: Tue Aug 21, 2007 8:42 pm
Posts: 26
Location: Alberta, Canada
PHY handlers are generic for the most part so you shouldn't need to change that. Does the link negotiate? Does ping work?

I'd be checking for the Ethernet clock and the controller mode (MII or RMII) initialization.


Top
 Profile  
 
 Post subject: Re: U-boot and Micrel KSZ8041 Phy
PostPosted: Mon Oct 26, 2009 6:44 pm 
Offline

Joined: Wed Jan 09, 2008 5:09 pm
Posts: 207
Location: Mounds View, MN
I would also check and make sure you have an ethaddr assigned. The uboot config for the AT91SAM9260 by default does not seem to set that. My 9G20 design uses a Micrel KSZ8041 in MII mode and we have had no issues with uboot or the kernel.

_________________
Tim Barr
Multitech Inc.


Top
 Profile  
 
 Post subject: Re: U-boot and Micrel KSZ8041 Phy
PostPosted: Tue Oct 27, 2009 6:39 pm 
Offline

Joined: Wed Mar 04, 2009 2:11 pm
Posts: 24
Hi,

The driver it was configuring to RMII mode, i changed to MII and worked.

Thanks


Top
 Profile  
 
 Post subject: Re: U-boot and Micrel KSZ8041 Phy
PostPosted: Tue Mar 13, 2012 4:11 pm 
Offline

Joined: Sun Dec 25, 2011 2:00 pm
Posts: 58
I have same problem with DM9161.
I'm using the DM9161 in MII mode with xtal=25MHz.
Autonegotiation was done completely.
But I could ping and ...

Should I change any configuration in kernel for MII mode? if yes, where?
Please help me.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: