This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux: Linux/DP83867IS: Need to use DP83867IS phy at Linux on K2E board.

Other Parts Discussed in Thread: DP83867IS

Tool/software: Linux

Hi

On our custom board with a 66AK2E05 Soc, we have only one MAC to PHY Interface on slave port 0 (eth0). In our coustomized board the SGMII reference clock is 125MHz. We are using DP83867IS phy on our board.

Based on the configuration for board, we changed the dts files to remove the second MAC to PHY interface used for the evaluation board. At phy side as in Linux driver there was no configuration related to SGMII mode (for DP83867) so i just ported the settings from u-boot phy driver.

By boot up the eth0 Interface is recognized but is not working (Host unreachable by ping).

I debuged more and caputre the packet sent at both SOC and the one to which i pinged. I can see the we are able to transmit the packet successfuly and other side is reciveing those packets and replying back but SOC is not recieving those packets.

root@k2e-evm:~# ifconfig 
eth0 Link encap:Ethernet HWaddr B4:99:4C:12:38:08 
inet6 addr: fe80::b699:4cff:fe12:3808%763860/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:31 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000 
RX bytes:0 (0.0 B) TX bytes:4688 (4.5 KiB)

root@k2e-evm:~# ifconfig eth0 192.168.0.10 netmask 255.255.255.0
[ 124.187857] net eth0: adding address 01:00:5e:00:00:fc, type 3

root@k2e-evm:~# route add default gw 192.168.0.1

Then i pinged the SOC itself

root@k2e-evm:~# ping 192.168.0.10
PING 192.168.0.10 (192.168.0.10): 56 data bytes
64 bytes from 192.168.0.10: seq=0 ttl=64 time=0.094 ms
64 bytes from 192.168.0.10: seq=1 ttl=64 time=0.052 ms
64 bytes from 192.168.0.10: seq=2 ttl=64 time=0.052 ms
^C
--- 192.168.0.10 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss

It was successful. 

But when i tired to ping gateway it as not responiding

root@k2e-evm:~# ping 192.168.0.1 
PING 192.168.0.1 (192.168.0.1): 56 data bytes
^C
--- 192.168.0.1 ping statistics ---
5 packets transmitted, 0 packets received, 100% packet loss

Thanks

Prince