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/AM5K2E04: 10G Ethernet (PSDK)

Part Number: AM5K2E04

Tool/software: Linux

hi,

I am trying to test the 10G MAC_MAC interface between the K2E EVM rev 1.0.2.2 + RTM-BOC rev D and a customer board. eth2 and eth3 are coming up. I could set the ipaddress for eth2 and the link shows that eth2 is up for K2E. However, we could not get ping to work. I have attached the dts file changes and the logs. Could you please provide some pointers to debug this.

uboot, kernel, ubifs and dtb are from PSDK_03.02.00.05

regards,2273.files.zip

Frangline.

  • Hi Frangline,

    I've forwarded this to the PSDK experts. Their feedback should be posted here.

    BR
    Tsvetolin Shulev
  • Hi,

    On first glance the dtsi looks correct. Can you also post your mdio nodes from keystone-k2e.dtsi & keystone-k2e-evm.dts?

    eth2 and eth3 are coming up. I could set the ipaddress for eth2 and the link shows that eth2 is up for K2E

    This means that eth2 and eth3 are detected & initialized upon kernel boot. However i guess you set the ip address for eth2 with ifconfig, right?

    Can you try using ifup eth2 and post the result? Also can you post the result of ping?

    I tested the ping command on my EVMK2Hx running kernel 4.4.32 (SDK_03.02.00.05) on both eth interfaces (eth0 & eth1), here is the result:
    On eth1:
    root@k2hk-evm:~# ping 10.5.5.1
    PING 10.5.5.1 (10.5.5.1): 56 data bytes
    64 bytes from 10.5.5.1: seq=0 ttl=64 time=0.221 ms
    64 bytes from 10.5.5.1: seq=1 ttl=64 time=0.162 ms
    64 bytes from 10.5.5.1: seq=2 ttl=64 time=0.194 ms
    64 bytes from 10.5.5.1: seq=3 ttl=64 time=0.233 ms
    64 bytes from 10.5.5.1: seq=4 ttl=64 time=0.197 ms
    64 bytes from 10.5.5.1: seq=5 ttl=64 time=0.201 ms
    64 bytes from 10.5.5.1: seq=6 ttl=64 time=0.177 ms
    64 bytes from 10.5.5.1: seq=7 ttl=64 time=0.231 ms
    64 bytes from 10.5.5.1: seq=8 ttl=64 time=0.218 ms
    64 bytes from 10.5.5.1: seq=9 ttl=64 time=0.186 ms
    64 bytes from 10.5.5.1: seq=10 ttl=64 time=0.208 ms
    ^C
    --- 10.5.5.1 ping statistics ---
    11 packets transmitted, 11 packets received, 0% packet loss
    round-trip min/avg/max = 0.162/0.202/0.233 ms
    root@k2hk-evm:~#

    root@k2hk-evm:~# [ 701.925264] netcp-1.0 2620110.netcp eth1: Link is Down

    root@k2hk-evm:~# [ 711.555645] netcp-1.0 2620110.netcp eth0: Link is Up - 100Mbps/Full - flow control off
    [ 711.563602] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
    root@k2hk-evm:~# ping 10.5.5.1
    PING 10.5.5.1 (10.5.5.1): 56 data bytes
    64 bytes from 10.5.5.1: seq=0 ttl=64 time=0.241 ms
    64 bytes from 10.5.5.1: seq=1 ttl=64 time=0.195 ms
    64 bytes from 10.5.5.1: seq=2 ttl=64 time=0.184 ms
    64 bytes from 10.5.5.1: seq=3 ttl=64 time=0.251 ms
    64 bytes from 10.5.5.1: seq=4 ttl=64 time=0.199 ms
    64 bytes from 10.5.5.1: seq=5 ttl=64 time=0.176 ms
    ^C
    --- 10.5.5.1 ping statistics ---
    6 packets transmitted, 6 packets received, 0% packet loss
    round-trip min/avg/max = 0.176/0.207/0.251 ms
    root@k2hk-evm:~#

    My board is connected to a host pc & the pc ethernetl card is configured as dhcp server. The EVMK2Hx is also configured to use dhcp.

    So maybe verify that you have correctly configured both devices to use static IP, or dhcp.

    Best Regards,
    Yordan
  • Hi, Frangline,

    Sorry, I was out of office last week and am back in office today.

    You can refer to the NetCP User's Guide under ProcSDK Kernel User's Guide.It documents how to enable 10G on TI K2E EVM.

    processors.wiki.ti.com/.../Linux_Core_NetCP_User's_Guide

    Be aware that the Mistral reverted the SGMII ports on the RTM BoC which was reflected in the 4th bullet to define switch ports in the above link.

    Rex