2010-03-25 09:44:26     Ethernet PHY is not responding.

Document created by Aaronwu Employee on Sep 25, 2013
Version 1Show Document
  • View in full screen mode

2010-03-25 09:44:26     Ethernet PHY is not responding.

Kanwar Saad (PAKISTAN)

Message: 87690   

 

Hi, I'm using ethernet phy DP83848I of National semiconductor on my custom board having bf537. im using the current trunk of u-boot. Ive seen its phy and mac initialization code. logically it should run but my ethernet is not initializing correctly. then i've tried to view the phy registers using MDC and MDIO interface as described in hardware reference manual and also in the u-boot code. but i'm getting 0xFFFF. i think my PHY is not responding.

 

 

 

Is there any way to check whether my PHY is working or not? Ive checked the schematic but not found anything.

 

Also does the default u-boot code for PHY will support my PHY or i have to write another one??

 

 

 

Regards

 

Saad.

QuoteReplyEditDelete

 

 

2010-03-25 10:13:05     Re: Ethernet PHY is not responding.

Robin Getz (UNITED STATES)

Message: 87691   

 

Kanwar:

 

The code in U-Boot is PHY specific, and needs to be tweaked for different PHYs.

 

-Robin

QuoteReplyEditDelete

 

 

2010-03-25 12:43:01     Re: Ethernet PHY is not responding.

Mike Frysinger (UNITED STATES)

Message: 87693   

 

that is true to a degree.  the default bfin_mac driver supports the "generic phy" mode ... which is to say, it works with the few phy bits that have been standardized across the board.

QuoteReplyEditDelete

 

 

2010-04-02 05:02:14     Re: Ethernet PHY is not responding.

Ian Jeffray (UNITED KINGDOM)

Message: 88022   

 

I've also noticed a problem with the "latest" (2009.11) u-boot in git that somehow manages to affect my PHY initiating a link, even before I try to talk to it.  This didn't happen with the 2009R1 release (u-boot 2008.10) so I'm very curious as to what's changed.   If I leave tftp trying for long enough (several minutes!) then eventually the link comes up and all is well.  The PHY I'm using is a LAN8700i, which is RMII - I wondered if RMII was the root of the problem, since I believe it's not used by many folks?  I've not had time to look in to this problem yet, but I planned to do so when the 2010.03 u-boot was merged in to the Blackfin tree.

QuoteReplyEditDelete

 

 

2010-04-02 05:15:33     Re: Ethernet PHY is not responding.

Mike Frysinger (UNITED STATES)

Message: 88025   

 

the Blackfin driver hasnt really changed from 2008.10, so i dont think that's the source of the issue

 

in neither version though is the MAC let alone PHY initialized if you dont try to initiate a network command.  during boot, only the bfin_EMAC_initialize() function is called and this doesnt touch the hardware.

 

we use RMII on a few ADI boards and havent noticed a problem with it ...

QuoteReplyEditDelete

 

 

2010-04-03 15:35:08     Re: Ethernet PHY is not responding.

Ian Jeffray (UNITED KINGDOM)

Message: 88079   

 

I dug in to this and for me, my problem was because CONFIG_PHY_ADDR was not defined.  My PHY has address 15 but the Blackfin driver defaults to address 1 if this is not defined for the board.

Attachments

    Outcomes