DSPRelated.com
Forums

DM648 Ethernet cpsw_MDIO_FindingState: Timed Out looking for a Phy!

Started by tian...@gmail.com March 28, 2011
hi
guys.
I have a pb. I tried the DM648 ethernet demo,but it seems there is sth wrong .
C:\dvsdk_1_11_00_00_DM648\ndk_1_92_00_22_eval\packages\ti\ndk\example\network\cfgdemo\evmdm648

When i compiled the project,downloaded the out file ,and run the cpu.It prints a lot.

TCP/IP Stack Client Configuration Demo
220 bytes required for save
Using MAC Address: 3c-2d-b7-27-b7-c6
cpsw_MDIO_Init
SetPhyMode:000021E1 Auto:1, FD10:64, HD10:32, FD100:256, HD100:128, FD1000:8192 LPBK:0
cpsw_MDIO_Init
SetPhyMode:000021E1 Auto:1, FD10:64, HD10:32, FD100:256, HD100:128, FD1000:8192 LPBK:0
Service Status: Telnet : Enabled : : 000
Service Status: HTTP : Enabled : : 000
GetIP Ready
EchoSrv Initialized
DataSrv Initialized
NullSrv Initialized
OobSrv Initialized
cpsw_MDIO_FindingState: Timed Out looking for a Phy!
cpsw_MDIO_FindingState: Timed Out looking for a Phy!
...

who can help solve this pb.
many thanks.

_____________________________________
Tian Li-

> I have a pb. I tried the DM648 ethernet demo,but it seems there is sth wrong .
> C:\dvsdk_1_11_00_00_DM648\ndk_1_92_00_22_eval\packages\ti\ndk\example\network\cfgdemo\evmdm648
>
> When i compiled the project,downloaded the out file ,and run the cpu.It prints a lot.
>
> TCP/IP Stack Client Configuration Demo
> 220 bytes required for save
> Using MAC Address: 3c-2d-b7-27-b7-c6
> cpsw_MDIO_Init
> SetPhyMode:000021E1 Auto:1, FD10:64, HD10:32, FD100:256, HD100:128, FD1000:8192 LPBK:0
> cpsw_MDIO_Init
> SetPhyMode:000021E1 Auto:1, FD10:64, HD10:32, FD100:256, HD100:128, FD1000:8192 LPBK:0
> Service Status: Telnet : Enabled : : 000
> Service Status: HTTP : Enabled : : 000
> GetIP Ready
> EchoSrv Initialized
> DataSrv Initialized
> NullSrv Initialized
> OobSrv Initialized
> cpsw_MDIO_FindingState: Timed Out looking for a Phy!
> cpsw_MDIO_FindingState: Timed Out looking for a Phy!
> ...

Are you trying to set 2 PHYs or 1? Your above print-out looks like 2 PHYs but with same parameters. The following
threads indicate that the basic NDK board needs to initialize both PHYs, and if you try to initialize only one then it
becomes "customized":

http://e2e.ti.com/support/embedded/f/355/t/48498.aspx

http://e2e.ti.com/support/embedded/f/355/t/74894.aspx

-Jeff

_____________________________________
tianli,

Caveat: I have not yet looked at the source code..

From your report, my first question is:
it is hooked up to a active ethernet bus?

My second question is:
does your board have a Ethernet connection/connector?

R. Williams
---------- Original Message -----------
From: t...@gmail.com
To: c...
Sent: Mon, 28 Mar 2011 08:31:10 -0400
Subject: [c6x] DM648 Ethernet cpsw_MDIO_FindingState: Timed Out looking for a Phy!

> hi
> guys.
> I have a pb. I tried the DM648 ethernet demo,but it seems there is sth
> wrong .
>
C:\dvsdk_1_11_00_00_DM648\ndk_1_92_00_22_eval\packages\ti\ndk\example\network\cfgdemo\evmdm648
>
> When i compiled the project,downloaded the out file ,and run the
> cpu.It prints a lot.
>
> TCP/IP Stack Client Configuration Demo
> 220 bytes required for save
> Using MAC Address: 3c-2d-b7-27-b7-c6
> cpsw_MDIO_Init
> SetPhyMode:000021E1 Auto:1, FD10:64, HD10:32, FD100:256, HD100:128,
> FD1000:8192 LPBK:0 cpsw_MDIO_Init SetPhyMode:000021E1 Auto:1, FD10:64,
> HD10:32, FD100:256, HD100:128, FD1000:8192 LPBK:0 Service Status:
> Telnet : Enabled : : 000 Service Status: HTTP :
> Enabled : : 000 GetIP Ready EchoSrv Initialized DataSrv
> Initialized NullSrv Initialized OobSrv Initialized
> cpsw_MDIO_FindingState: Timed Out looking for a Phy!
> cpsw_MDIO_FindingState: Timed Out looking for a Phy! ....
>
> who can help solve this pb.
> many thanks.
------- End of Original Message -------

_____________________________________
thanks for reply

[alex] My own board connet with the PC using a network cable ,and the connection speed is 1.0G.I have set my PC network with static IP 10.0.0.100.Does this matters? Thank u

_____________________________________
thanks for reply.
I have only one PHY connected to SGMII0. SGMII1 connects to another DSP on my own board.
I tried to modify
#define CPSW3G_NUM_MAC_PORTS 2u
to
#define CPSW3G_NUM_MAC_PORTS 1u

then rebuild the lib,It seems doesn't work .
The prints seems a little different .but also timed out looking for a phy
TCP/IP Stack Client Configuration Demo
220 bytes required for save
Using MAC Address: 3c-2d-b7-27-b7-c6
cpsw_MDIO_Init
SetPhyMode:000021E1 Auto:1, FD10:64, HD10:32, FD100:256, HD100:128, FD1000:8192 LPBK:0
cpsw_MDIO_Init
/*added by alex .this line is different*/
SetPhyMode:00000000 Auto:0, FD10:0, HD10:0, FD100:0, HD100:0, FD1000:0

LPBK:0
Service Status: Telnet : Enabled : : 000
Service Status: HTTP : Enabled : : 000
GetIP Ready
EchoSrv Initialized
DataSrv Initialized
NullSrv Initialized
OobSrv Initialized
cpsw_MDIO_FindingState: Timed Out looking for a Phy!
cpsw_MDIO_FindingState: Timed Out looking for a Phy!

many thanks

_____________________________________
Tian Li-

First, it's now evident you have a customized board, which you didn't say in your initial post.

Second, I assume you're replying to me, but you cut out my text. I'm not going to spend time to look up those TI
threads again, but as I recall, they addressed exactly the problem you're having; i.e. a customized board with one PHY
instead of 2, which differs from the EVM.

Did you read them?

-Jeff

> I have only one PHY connected to SGMII0. SGMII1 connects to another DSP on my own board.
> I tried to modify
> #define CPSW3G_NUM_MAC_PORTS 2u
> to
> #define CPSW3G_NUM_MAC_PORTS 1u
>
> then rebuild the lib,It seems doesn't work .
> The prints seems a little different .but also timed out looking for a phy
> TCP/IP Stack Client Configuration Demo
> 220 bytes required for save
> Using MAC Address: 3c-2d-b7-27-b7-c6
> cpsw_MDIO_Init
> SetPhyMode:000021E1 Auto:1, FD10:64, HD10:32, FD100:256, HD100:128, FD1000:8192 LPBK:0
> cpsw_MDIO_Init
> /*added by alex .this line is different*/
> SetPhyMode:00000000 Auto:0, FD10:0, HD10:0, FD100:0, HD100:0, FD1000:0
>
> LPBK:0
> Service Status: Telnet : Enabled : : 000
> Service Status: HTTP : Enabled : : 000
> GetIP Ready
> EchoSrv Initialized
> DataSrv Initialized
> NullSrv Initialized
> OobSrv Initialized
> cpsw_MDIO_FindingState: Timed Out looking for a Phy!
> cpsw_MDIO_FindingState: Timed Out looking for a Phy!
>
> many thanks

_____________________________________
jeff
thank you !
I am sorry to have cut your text when replying. It is my fault.
I have read the two thread you told me from TI. but i don't really understand.
http://e2e.ti.com/support/embedded/f/355/t/48498.aspx
[alex] My customized board has only one PHY 88E1111 connected with SGMII0
so I follow this thread ,change the macro CPSW3G_NUM_MAC_PORTS from 2u to 1u,then rebuild the lib.But still have the problem.
It prints like this:
TCP/IP Stack Client Configuration Demo
220 bytes required for save
Using MAC Address: 3c-2d-b7-27-b7-c6
cpsw_MDIO_Init
SetPhyMode:000021E1 Auto:1, FD10:64, HD10:32, FD100:256, HD100:128, FD1000:8192 LPBK:0
cpsw_MDIO_Init
SetPhyMode:00000000 Auto:0, FD10:0, HD10:0, FD100:0, HD100:0, FD1000:0 LPBK:0
Service Status: Telnet : Enabled : : 000
Service Status: HTTP : Enabled : : 000
GetIP Ready
EchoSrv Initialized
DataSrv Initialized
NullSrv Initialized
OobSrv Initialized
Phy: 0, State: 2/FINDING, Speed: 0, Dup: 0, Tim: 1, SMode: 63, Chng: 1
cpsw_MDIO_FindingState: Timed Out looking for a Phy!
cpsw_MDIO_FindingState: Timed Out looking for a Phy!

http://e2e.ti.com/support/embedded/f/355/t/74894.aspx
[alex] I can't figure out Simon Roper's reply. .thank you .

Posted by Simon Roper
replied on 30 Nov 2010 11:23 AM

I have changed the printfs to LOG_printfs and disabled the 2nd prot in csl_emac.h. Once I set the CPU PLL also I got it working and can now ping the board.

Can you explain to me,Many thanks

kind regards.

-tian li
Tian Li-

First, it's now evident you have a customized board, which you didn't say in
your initial post.

Second, I assume you're replying to me, but you cut out my text. I'm not going
to spend time to look up those TI
threads again, but as I recall, they addressed exactly the problem you're
having; i.e. a customized board with one PHY
instead of 2, which differs from the EVM.

Did you read them?

-Jeff

> I have only one PHY connected to SGMII0. SGMII1 connects to another DSP on
my own board.
> I tried to modify
> #define CPSW3G_NUM_MAC_PORTS 2u
> to
> #define CPSW3G_NUM_MAC_PORTS 1u
>
> then rebuild the lib,It seems doesn't work .
> The prints seems a little different .but also timed out looking for a phy
> TCP/IP Stack Client Configuration Demo
> 220 bytes required for save
> Using MAC Address: 3c-2d-b7-27-b7-c6
> cpsw_MDIO_Init
> SetPhyMode:000021E1 Auto:1, FD10:64, HD10:32, FD100:256, HD100:128,
FD1000:8192 LPBK:0
> cpsw_MDIO_Init
> /*added by alex .this line is different*/
> SetPhyMode:00000000 Auto:0, FD10:0, HD10:0, FD100:0, HD100:0, FD1000:0
>
> LPBK:0
> Service Status: Telnet : Enabled : : 000
> Service Status: HTTP : Enabled : : 000
> GetIP Ready
> EchoSrv Initialized
> DataSrv Initialized
> NullSrv Initialized
> OobSrv Initialized
> cpsw_MDIO_FindingState: Timed Out looking for a Phy!
> cpsw_MDIO_FindingState: Timed Out looking for a Phy!
>
> many thanks

_____________________________________
______________________________

_____________________________________