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.

AM6412: PHY does not work with 10Mbs on SDK 08.04.01.04

Part Number: AM6412

Hi TI,

eth0 does not work with 10Mbs on SDK 08.04.01.04 (the link is SDK 8.04)

(tisdk-default-image-am64xx-evm.wic.xz — 285771 K, PROCESSOR-SDK-LINUX-AM64X — Processor SDK Linux for AM64x)

Force eth0 speed to 10M, it won't be able to ping.

root@am64xx-evm:~# ethtool -s eth0 speed 10 duplex full autoneg off
root@am64xx-evm:~# [ 1517.465988] am65-cpsw-nuss 8000000.ethernet eth0: Link is Down
[ 1518.487924] am65-cpsw-nuss 8000000.ethernet eth0: Link is Up - 10Mbps/Full - flow control off

root@am64xx-evm:~# ifconfig eth0
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 metric 1
  inet 10.123.8.139 netmask 255.0.0.0 broadcast 10.255.255.255

I have done the same test on SDK 8.02, and everything is fine.

I think the patch [561e7beab71d net: ethernet: ti: am65-cpsw: Convert to PHYLINK] cause the problem

Could someone verify it?

  • Hi,

    Could you please describe the PHY mode that you are using? 

    Could you please attach the results of ethtool eth0?

    Best Regards,

    Schuyler

  • Hi Schuyler,

    PHY does not work at 10M speed.


    • 1000M speed is fine.

    root@am64xx-evm:~# ethtool eth0 | grep Speed
    Speed: 1000Mb/s

    root@am64xx-evm:~# ping 10.123.8.132
    PING 10.123.8.132 (10.123.8.132): 56 data bytes
    64 bytes from 10.123.8.132: seq=0 ttl=64 time=1.102 ms
    64 bytes from 10.123.8.132: seq=1 ttl=64 time=0.636 ms


    • 100M speed is fine.

    root@am64xx-evm:~# ethtool -s eth0 speed 100 duplex full autoneg off
    root@am64xx-evm:~# ifconfig eth0 up[ 466.806172] am65-cpsw-nuss 8000000.ethernet eth0: Link is Up - 100Mbps/Full - flow control off

    root@am64xx-evm:~# ethtool eth0 | grep Speed
    Speed: 100Mb/s
    root@am64xx-evm:~# ifconfig eth0 | grep RUNNING
    eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 metric 1

    root@am64xx-evm:~# ping 10.123.8.132
    PING 10.123.8.132 (10.123.8.132): 56 data bytes
    64 bytes from 10.123.8.132: seq=0 ttl=64 time=0.831 ms
    64 bytes from 10.123.8.132: seq=1 ttl=64 time=0.790 ms


    • 10M speed is not available.

    root@am64xx-evm:~# ethtool -s eth0 speed 10 duplex full autoneg off
    root@am64xx-evm:~# [ 603.523558] am65-cpsw-nuss 8000000.ethernet eth0: Link is Down
    [ 606.581217] am65-cpsw-nuss 8000000.ethernet eth0: Link is Up - 10Mbps/Full - flow control off

    root@am64xx-evm:~# ethtool eth0 | grep Speed
    Speed: 10Mb/s
    root@am64xx-evm:~# ifconfig eth0 | grep RUNNING
    eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 metric 1

    root@am64xx-evm:~# ping 10.123.8.132
    PING 10.123.8.132 (10.123.8.132): 56 data bytes
    ^C
    --- 10.123.8.132 ping statistics ---
    6 packets transmitted, 0 packets received, 100% packet loss
    root@am64xx-evm:~# ifconfig eth0
    eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 metric 1
    inet 10.123.8.139 netmask 255.0.0.0 broadcast 10.255.255.255
    inet6 fe80::3608:e1ff:fe80:af37 prefixlen 64 scopeid 0x20<link>
    ether 34:08:e1:80:af:37 txqueuelen 1000 (Ethernet)
    RX packets 355 bytes 26949 (26.3 KiB)
    RX errors 0 dropped 99 overruns 0 frame 0
    TX packets 230 bytes 19350 (18.8 KiB)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

    root@am64xx-evm:~#

    root@am64xx-evm:~# ethtool eth0
    Settings for eth0:
    Supported ports: [ TP MII ]
    Supported link modes: 10baseT/Half 10baseT/Full
    100baseT/Half 100baseT/Full
    1000baseT/Full
    Supported pause frame use: Symmetric
    Supports auto-negotiation: Yes
    Supported FEC modes: Not reported
    Advertised link modes: 10baseT/Half 10baseT/Full
    100baseT/Half 100baseT/Full
    1000baseT/Full
    Advertised pause frame use: Symmetric
    Advertised auto-negotiation: No
    Advertised FEC modes: Not reported
    Speed: 10Mb/s
    Duplex: Full
    Auto-negotiation: off
    master-slave cfg: preferred slave
    master-slave status: slave
    Port: Twisted Pair
    PHYAD: 0
    Transceiver: external
    MDI-X: Unknown
    Supports Wake-on: ubgs
    Wake-on: d
    SecureOn password: 00:00:00:00:00:00
    Current message level: 0x000020f7 (8439)
    drv probe link ifdown ifup rx_err tx_err hw
    Link detected: yes
    root@am64xx-evm:~#

    Thanks,

    Sean

  • In addition, both SDK-LINUX-AM64X and SDK-LINUX-RT-AM64X have the same problem on 10M full-duplex and half-duplex.