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.

Ethernet work at 10Mbit only

  Hello.

  We have been working with ksz9021gn PHY connected to DM8168. But work is possible only at 10Mbps on our custom board. The link at 100Mbits and 1000Mbits are presented, but ping command is not passed. We refer to the manufacturer of the controller-he said that we have a correct scheme. We checked the frequency-all right. We have removed twice all of the components that are relevant to the PHY and PHY too. But the result did not change and we still have the 10Mbps speed only. Please help to understand what the problem is. Are we need to do something in driver? We are using last SDK without applying patches. We have some expirience working with other PHY - they had not had any problems. Problems began only when we decided to put a new ksz9021gn PHY.

 
   Best regards,

     Dmitry.

  • Hello,

    Make sure you are testing with direct ethernet connection between DM816x board and host PC (I mean there is no ethernet switch/hub/router between).

    See also if the below wiki page will be in help:

    http://processors.wiki.ti.com/index.php/TI81xx_PSP_Porting_Guide#Ethernet_Driver_-_Adding_Custom_Ethernet_Phy

    BR
    Pavel

  •   Hello Pavel.

    Thank you for reply. We'll look at the reference.

    We tried to connect both through a switch or directly to a computer. The computer has a 1Gbit Ethernet. When we connect with the computer, it can be seen that the network icon in the taskbar on the right corner of computer shows the speed that we set at the command line in Linux. So actually connection which is 10Mbps or 100Mbps or 1000Mbps installed correctly at physical level. The problem is that ping possible at frequency 10Mbps only.
    As for the driver, it is not clear that it should be changed, because the driver must be suitable standard.

     Best regards,

      Dmitry

     

  • Dmitry,

    Are you using EZSDK or DVR RDK? Is the issue in u-boot or linux kernel?

    Can you try with the latest u-boot code base:

    EZSDK - http://arago-project.org/git/projects/u-boot-omap3.git?p=projects/u-boot-omap3.git;a=shortlog;h=refs/heads/ti81xx-master

    DVR RDK - http://arago-project.org/git/projects/?p=u-boot-dvr-rdk-dm81xx.git;a=shortlog;h=refs/heads/dvrrdk_uboot_int_branch

    BR
    Pavel

  • See also if the below e2e threads will be in help:

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/717/t/128095.aspx

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/717/t/180083.aspx

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/717/t/231135.aspx

    BR
    Pavel

  •    Hello, Pavel.

    A'm using EZSDK only.

    1) The problem is in the kernel. At last we need good working in kernel. I've not tried the ping in u-boot. Can you advice how can i use u-boot commands to tune ethernet to check it? Can you give me reference of using ethernet under u-boot or examples?

    2) Is it possible get last EZSDK version with applied patches or may be you know what file i need apply exactly to get good working of EMAC with PHY in the kernel?

    Thanks,

      Dmitry.

  •   We have seen all these references some time ago and tried to apply them. But it was not help us. In all of those cases are discussed the problem about gigabit ethernet - but we not have correctly work even with 100Mbit ethernet. So, as seem to me, we have little other sort of problem.

        Dmitry.

  • Dmitry,

    dmitry chernov said:
    A'm using EZSDK only.

    Is this the latest DM816x EZSDK 5.05.02.00?

    dmitry chernov said:
    Can you advice how can i use u-boot commands to tune ethernet to check it? Can you give me reference of using ethernet under u-boot or examples?

    Below is how I test my ethernet on EMAC0 (with dhcp and ping commands) in u-boot:

    Net:   <ethaddr> not set. Reading from E-fuse
    Detected MACID:40:5f:c2:63:a2:30
    Ethernet PHY: GENERIC @ 0x01
    DaVinci EMAC
    Hit any key to stop autoboot:  0
    TI8168_EVM#dhcp
    BOOTP broadcast 1
    DHCP client bound to address 172.20.2.103
    TI8168_EVM#ping 172.20.1.195
    Using DaVinci EMAC device
    host 172.20.1.195 is alive
    TI8168_EVM#


    dmitry chernov said:
    2) Is it possible get last EZSDK version with applied patches or may be you know what file i need apply exactly to get good working of EMAC with PHY in the kernel?

    Try first with the default EZSDK 5.05.02.00 (u-boot and kernel).

    BR
    Pavel

  •   

       Thanks,

     We'll try u-boot commands to check Ethernet.

      Yes, we are using default last EZSDK 5.05.02.00 and we haven't changed sources of ethernet driver. So we have pure default ethernet sources from EZSDK 5.05.02.00.

        Dmitry.

     

     

  •   Hello.

    We have tried to use all possible ways to check possibility to work with our PHY. We have looked at the internal registers - all ones have correct settings. Additionally we have tried to change state of PHY registers. Now we get 2.5MHz for 10Mbits, 25MHz for 100Mbits, and 125MHz for 1000Mbits, but it is not to have ping PHY at 100 and 1000MHz yet. As i have said early, we have direct connection with our PC. The phisical connection is working correctly, because we can see at the lower right corner of PC connection status (10, 100 or 1000).

      1) We have not tried to check network under u-boot. We are using ETH1, but where in sources we need to switch on ETH1?

    2) How can we check EMAC internal loopback and PHY internal internal loopback?

    3) May be anybody has any other idea to tune our PHY?

       Dmitry.

  • dmitry chernov said:
    We have not tried to check network under u-boot. We are using ETH1, but where in sources we need to switch on ETH1?

    See the below e2e thread:

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/717/t/383860.aspx

    BR
    Pavel

  • dmitry chernov said:
    2) How can we check EMAC internal loopback and PHY internal internal loopback?

    We have CCS test code, see evm816x/tests/emac_loopback and the below e2e threads:

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/717/t/120826.aspx

    http://e2e.ti.com/support/embedded/linux/f/354/t/233284.aspx

    BR
    Pavel

  • hello Dmitry,

        Could you download ethtool and show us the result when setting 10/100/1000 with auto negotiation on/off ? 

        Show the status after your each setting. Thanks

         Note: please set your PC with auto negotiation without speed limit...

  •   Hello.

    Below is a log of commands

     

    dm816x-evm login: root
    root@dm816x-evm:~# ifconfig eth1 192.168.1.185
    davinci_mdio davinci_mdio.0: resetting idled controller
    net eth1: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01, id=221612)
    ADDRCONF(NETDEV_UP): eth1: link is not ready
    root@dm816x-evm:~# PHY: 0:01 - Link is Up - 1000/Full
    ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready

    root@dm816x-evm:~# ping 192.168.1.187
    PING 192.168.1.187 (192.168.1.187): 56 data bytes

    --- 192.168.1.187 ping statistics ---
    6 packets transmitted, 0 packets received, 100% packet loss
    root@dm816x-evm:~# ifconfig
    eth0      Link encap:Ethernet  HWaddr 84:7E:40:F3:55:B8
              UP BROADCAST MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
              Interrupt:40 Base address:0x8000

    eth1      Link encap:Ethernet  HWaddr 84:7E:40:F3:55:B9
              inet addr:192.168.1.185  Bcast:192.168.1.255  Mask:255.255.255.0
              inet6 addr: fe80::867e:40ff:fef3:55b9/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:42 errors:0 dropped:0 overruns:0 frame:0
              TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:4079 (3.9 KiB)  TX bytes:1018 (1018.0 B)
              Interrupt:44

    lo        Link encap:Local Loopback
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:16436  Metric:1
              RX packets:6 errors:0 dropped:0 overruns:0 frame:0
              TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:340 (340.0 B)  TX bytes:340 (340.0 B)

    root@dm816x-evm:~# ethtool -s eth1 speed 1000 duplex full autoneg on
    root@dm816x-evm:~# PHY: 0:01 - Link is Down
    PHY: 0:01 - Link is Up - 1000/Full

    root@dm816x-evm:~# ping 192.168.1.187
    PING 192.168.1.187 (192.168.1.187): 56 data bytes

    --- 192.168.1.187 ping statistics ---
    9 packets transmitted, 0 packets received, 100% packet loss
    root@dm816x-evm:~# ethtool -s eth1 speed 1000 duplex full autoneg off
    root@dm816x-evm:~# ethtool -s eth1 speed 100 duplex full autoneg on
    root@dm816x-evm:~# PHY: 0:01 - Link is Down
    PHY: 0:01 - Link is Up - 100/Full

    root@dm816x-evm:~# ping 192.168.1.187
    PING 192.168.1.187 (192.168.1.187): 56 data bytes

    --- 192.168.1.187 ping statistics ---
    6 packets transmitted, 0 packets received, 100% packet loss
    root@dm816x-evm:~# ethtool -s eth1 speed 10 duplex full autoneg on
    root@dm816x-evm:~# PHY: 0:01 - Link is Down
    PHY: 0:01 - Link is Up - 10/Full

    root@dm816x-evm:~# ping 192.168.1.187
    PING 192.168.1.187 (192.168.1.187): 56 data bytes
    64 bytes from 192.168.1.187: seq=0 ttl=128 time=0.628 ms
    64 bytes from 192.168.1.187: seq=1 ttl=128 time=0.364 ms
    64 bytes from 192.168.1.187: seq=2 ttl=128 time=0.342 ms

    --- 192.168.1.187 ping statistics ---
    3 packets transmitted, 3 packets received, 0% packet loss
    round-trip min/avg/max = 0.342/0.444/0.628 ms
    root@dm816x-evm:~# ethtool -s eth1 speed 10 duplex full autoneg off
    root@dm816x-evm:~# ping 192.168.1.187
    PING 192.168.1.187 (192.168.1.187): 56 data bytes
    64 bytes from 192.168.1.187: seq=0 ttl=128 time=0.402 ms
    64 bytes from 192.168.1.187: seq=1 ttl=128 time=0.342 ms
    64 bytes from 192.168.1.187: seq=2 ttl=128 time=0.314 ms

    --- 192.168.1.187 ping statistics ---
    3 packets transmitted, 3 packets received, 0% packet loss
    round-trip min/avg/max = 0.314/0.352/0.402 ms
    root@dm816x-evm:~# ethtool -s eth1 speed 100 duplex full autoneg off
    root@dm816x-evm:~# PHY: 0:01 - Link is Down
    PHY: 0:01 - Link is Up - 100/Full

    root@dm816x-evm:~# ping 192.168.1.187
    PING 192.168.1.187 (192.168.1.187): 56 data bytes

    --- 192.168.1.187 ping statistics ---
    4 packets transmitted, 0 packets received, 100% packet loss
    root@dm816x-evm:~# ethtool -s eth1 speed 1000 duplex full autoneg off
    root@dm816x-evm:~# PHY: 0:01 - Link is Down
    Trying 1000/HALF
    Trying 100/FULL
    PHY: 0:01 - Link is Up - 100/Full

    root@dm816x-evm:~# ping 192.168.1.187
    PING 192.168.1.187 (192.168.1.187): 56 data bytes

    --- 192.168.1.187 ping statistics ---
    3 packets transmitted, 0 packets received, 100% packet loss
    root@dm816x-evm:~# ethtool -s eth1 speed 1000 duplex full autoneg on
    root@dm816x-evm:~# PHY: 0:01 - Link is Down
    PHY: 0:01 - Link is Up - 1000/Full

    root@dm816x-evm:~# ping 192.168.1.187
    PING 192.168.1.187 (192.168.1.187): 56 data bytes

    --- 192.168.1.187 ping statistics ---
    5 packets transmitted, 0 packets received, 100% packet loss
    root@dm816x-evm:~#

      Thanks,

      Dmitry

     

  • hello

    after each "ethtool -s eth1 speed xxx duplex full autoneg xx", please add "ethtool eth1" ,

    and check if the status is the same as your connected machine( verify by led or else...).

    And show the result.

     

    Your connected machine is auto negotiation on. right?

     

    please also try this case

    ethtool -s eth1 speed 1000 duplex full autoneg on

    ethtool -s eth1 speed 10 duplex full autoneg off

    ethtool -s eth1 speed 1000 duplex full autoneg on

    and show me the results in both machines ~

     

  •   Hello.

    Below in first part are all possible sequences and in the second part are you sequences

     

    First part:

    dm816x-evm login: root

    root@dm816x-evm:~# ethtool eth1

    Settings for eth1:

           Link detected: yes

    root@dm816x-evm:~# ifconfig eth1 192.168.1.185

    davinci_mdio davinci_mdio.0: resetting idled controller

    net eth1: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01, id=221612)

    ADDRCONF(NETDEV_UP): eth1: link is not ready

    root@dm816x-evm:~# PHY: 0:01 - Link is Up - 1000/Full

    ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready

    root@dm816x-evm:~# ifconfig

    eth0      Link encap:Ethernet  HWaddr 84:7E:40:F3:55:B8

             UP BROADCAST MULTICAST  MTU:1500  Metric:1

             RX packets:0 errors:0 dropped:0 overruns:0 frame:0

             TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

             collisions:0 txqueuelen:1000

             RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

             Interrupt:40 Base address:0x8000

    eth1      Link encap:Ethernet  HWaddr 84:7E:40:F3:55:B9

             inet addr:192.168.1.185  Bcast:192.168.1.255  Mask:255.255.255.0

             inet6 addr: fe80::867e:40ff:fef3:55b9/64 Scope:Link

             UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

             RX packets:40 errors:0 dropped:0 overruns:0 frame:0

             TX packets:12 errors:0 dropped:0 overruns:0 carrier:0

             collisions:0 txqueuelen:1000

             RX bytes:2740 (2.6 KiB)  TX bytes:828 (828.0 B)

             Interrupt:44

    lo        Link encap:Local Loopback

             inet addr:127.0.0.1  Mask:255.0.0.0

             inet6 addr: ::1/128 Scope:Host

             UP LOOPBACK RUNNING  MTU:16436  Metric:1

             RX packets:6 errors:0 dropped:0 overruns:0 frame:0

             TX packets:6 errors:0 dropped:0 overruns:0 carrier:0

             collisions:0 txqueuelen:0

             RX bytes:340 (340.0 B)  TX bytes:340 (340.0 B)

    root@dm816x-evm:~# ethtool eth1

    Settings for eth1:

           Supported ports: [ TP AUI BNC MII FIBRE ]

           Supported link modes:   10baseT/Half 10baseT/Full

                                   100baseT/Half 100baseT/Full

                                   1000baseT/Half 1000baseT/Full

           Supports auto-negotiation: Yes

           Advertised link modes:  10baseT/Half 10baseT/Full

                                   100baseT/Half 100baseT/Full

                                   1000baseT/Half 1000baseT/Full

           Advertised pause frame use: No

           Advertised auto-negotiation: Yes

           Speed: 1000Mb/s

           Duplex: Full

           Port: MII

           PHYAD: 1

           Transceiver: external

           Auto-negotiation: on

           Link detected: yes

    root@dm816x-evm:~# ping 192.168.1.187

    PING 192.168.1.187 (192.168.1.187): 56 data bytes

    --- 192.168.1.187 ping statistics ---

    4 packets transmitted, 0 packets received, 100% packet loss

    root@dm816x-evm:~# ethtool -s eth1 speed 1000 duplex full autoneg on

    root@dm816x-evm:~# PHY: 0:01 - Link is Down

    PHY: 0:01 - Link is Up - 1000/Full

    root@dm816x-evm:~# ethtool eth1

    Settings for eth1:

           Supported ports: [ TP AUI BNC MII FIBRE ]

           Supported link modes:   10baseT/Half 10baseT/Full

                                   100baseT/Half 100baseT/Full

                                   1000baseT/Half 1000baseT/Full

           Supports auto-negotiation: Yes

           Advertised link modes:  1000baseT/Full

           Advertised pause frame use: No

           Advertised auto-negotiation: Yes

           Speed: 1000Mb/s

           Duplex: Full

           Port: MII

           PHYAD: 1

           Transceiver: external

           Auto-negotiation: on

           Link detected: yes

    root@dm816x-evm:~# ping 192.168.1.187

    PING 192.168.1.187 (192.168.1.187): 56 data bytes

    --- 192.168.1.187 ping statistics ---

    2 packets transmitted, 0 packets received, 100% packet loss

    root@dm816x-evm:~# ethtool -s eth1 speed 1000 duplex full autoneg off

    root@dm816x-evm:~# PHY: 0:01 - Link is Down

    root@dm816x-evm:~# ethtool -s eth1 speed 1000 duplex full autoneg offTrying 1000/HALF

    root@dm816x-evm:~# Trying 100/FULL

    PHY: 0:01 - Link is Up - 100/Full

    root@dm816x-evm:~# ethtool eth1

    Settings for eth1:

           Supported ports: [ TP AUI BNC MII FIBRE ]

           Supported link modes:   10baseT/Half 10baseT/Full

                                   100baseT/Half 100baseT/Full

                                   1000baseT/Half 1000baseT/Full

           Supports auto-negotiation: Yes

           Advertised link modes:  1000baseT/Full

           Advertised pause frame use: No

           Advertised auto-negotiation: No

           Speed: 100Mb/s

           Duplex: Full

           Port: MII

           PHYAD: 1

           Transceiver: external

           Auto-negotiation: off

           Link detected: yes

    root@dm816x-evm:~# ethtool -s eth1 speed 1000 duplex full autoneg on

    root@dm816x-evm:~# PHY: 0:01 - Link is Down

    PHY: 0:01 - Link is Up - 1000/Full

    root@dm816x-evm:~# ethtool eth1

    Settings for eth1:

           Supported ports: [ TP AUI BNC MII FIBRE ]

           Supported link modes:   10baseT/Half 10baseT/Full

                                   100baseT/Half 100baseT/Full

                                   1000baseT/Half 1000baseT/Full

           Supports auto-negotiation: Yes

           Advertised link modes:  1000baseT/Full

           Advertised pause frame use: No

           Advertised auto-negotiation: Yes

           Speed: 1000Mb/s

           Duplex: Full

           Port: MII

           PHYAD: 1

           Transceiver: external

           Auto-negotiation: on

           Link detected: yes

    root@dm816x-evm:~# ethtool -s eth1 speed 100 duplex full autoneg on

    root@dm816x-evm:~# PHY: 0:01 - Link is Down

    PHY: 0:01 - Link is Up - 100/Full

    root@dm816x-evm:~# ethtool eth1

    Settings for eth1:

           Supported ports: [ TP AUI BNC MII FIBRE ]

           Supported link modes:   10baseT/Half 10baseT/Full

                                   100baseT/Half 100baseT/Full

                                   1000baseT/Half 1000baseT/Full

           Supports auto-negotiation: Yes

           Advertised link modes:  100baseT/Full

           Advertised pause frame use: No

           Advertised auto-negotiation: Yes

           Speed: 100Mb/s

           Duplex: Full

           Port: MII

           PHYAD: 1

           Transceiver: external

           Auto-negotiation: on

           Link detected: yes

    root@dm816x-evm:~# ping 192.168.1.187

    PING 192.168.1.187 (192.168.1.187): 56 data bytes

    --- 192.168.1.187 ping statistics ---

    4 packets transmitted, 0 packets received, 100% packet loss

    root@dm816x-evm:~# ethtool -s eth1 speed 100 duplex full autoneg off

    root@dm816x-evm:~# ethtool eth1

    Settings for eth1:

           Supported ports: [ TP AUI BNC MII FIBRE ]

           Supported link modes:   10baseT/Half 10baseT/Full

                                   100baseT/Half 100baseT/Full

                                   1000baseT/Half 1000baseT/Full

           Supports auto-negotiation: Yes

           Advertised link modes:  100baseT/Full

           Advertised pause frame use: No

           Advertised auto-negotiation: No

           Speed: 100Mb/s

           Duplex: Full

           Port: MII

           PHYAD: 1

           Transceiver: external

           Auto-negotiation: off

           Link detected: yes

    root@dm816x-evm:~# ping 192.168.1.187

    PING 192.168.1.187 (192.168.1.187): 56 data bytes

    --- 192.168.1.187 ping statistics ---

    3 packets transmitted, 0 packets received, 100% packet loss

    root@dm816x-evm:~# ethtool -s eth1 speed 10 duplex full autoneg on

    root@dm816x-evm:~# PHY: 0:01 - Link is Down

    PHY: 0:01 - Link is Up - 10/Full

    root@dm816x-evm:~# ethtool eth1

    Settings for eth1:

           Supported ports: [ TP AUI BNC MII FIBRE ]

           Supported link modes:   10baseT/Half 10baseT/Full

                                   100baseT/Half 100baseT/Full

                                   1000baseT/Half 1000baseT/Full

           Supports auto-negotiation: Yes

           Advertised link modes:  10baseT/Full

           Advertised pause frame use: No

           Advertised auto-negotiation: Yes

           Speed: 10Mb/s

           Duplex: Full

           Port: MII

           PHYAD: 1

           Transceiver: external

           Auto-negotiation: on

           Link detected: yes

    root@dm816x-evm:~# ping 192.168.1.187

    PING 192.168.1.187 (192.168.1.187): 56 data bytes

    64 bytes from 192.168.1.187: seq=0 ttl=128 time=0.408 ms

    64 bytes from 192.168.1.187: seq=1 ttl=128 time=0.331 ms

    64 bytes from 192.168.1.187: seq=2 ttl=128 time=0.315 ms

    --- 192.168.1.187 ping statistics ---

    3 packets transmitted, 3 packets received, 0% packet loss

    round-trip min/avg/max = 0.315/0.351/0.408 ms

    root@dm816x-evm:~# ethtool -s eth1 speed 10 duplex full autoneg off

    root@dm816x-evm:~# ethtool eth1

    Settings for eth1:

           Supported ports: [ TP AUI BNC MII FIBRE ]

           Supported link modes:   10baseT/Half 10baseT/Full

                                   100baseT/Half 100baseT/Full

                                   1000baseT/Half 1000baseT/Full

           Supports auto-negotiation: Yes

           Advertised link modes:  10baseT/Full

           Advertised pause frame use: No

           Advertised auto-negotiation: No

           Speed: 10Mb/s

           Duplex: Full

           Port: MII

           PHYAD: 1

           Transceiver: external

           Auto-negotiation: off

           Link detected: yes

    root@dm816x-evm:~# ping 192.168.1.187

    PING 192.168.1.187 (192.168.1.187): 56 data bytes

    64 bytes from 192.168.1.187: seq=0 ttl=128 time=0.397 ms

    64 bytes from 192.168.1.187: seq=1 ttl=128 time=0.323 ms

    64 bytes from 192.168.1.187: seq=2 ttl=128 time=0.306 ms

    --- 192.168.1.187 ping statistics ---

    3 packets transmitted, 3 packets received, 0% packet loss

    round-trip min/avg/max = 0.306/0.342/0.397 ms

    And now second part with your sequences:

    root@dm816x-evm:~# ethtool -s eth1 speed 1000 duplex full autoneg on

    root@dm816x-evm:~# PHY: 0:01 - Link is Down

    PHY: 0:01 - Link is Up - 1000/Full

    root@dm816x-evm:~# ethtool eth1

    Settings for eth1:

           Supported ports: [ TP AUI BNC MII FIBRE ]

           Supported link modes:   10baseT/Half 10baseT/Full

                                   100baseT/Half 100baseT/Full

                                   1000baseT/Half 1000baseT/Full

           Supports auto-negotiation: Yes

           Advertised link modes:  1000baseT/Full

           Advertised pause frame use: No

           Advertised auto-negotiation: Yes

           Speed: 1000Mb/s

           Duplex: Full

           Port: MII

           PHYAD: 1

           Transceiver: external

           Auto-negotiation: on

           Link detected: yes

    root@dm816x-evm:~# ping 192.168.1.187

    PING 192.168.1.187 (192.168.1.187): 56 data bytes

    --- 192.168.1.187 ping statistics ---

    3 packets transmitted, 0 packets received, 100% packet loss

    root@dm816x-evm:~# ethtool -s eth1 speed 10 duplex full autoneg off

    root@dm816x-evm:~# PHY: 0:01 - Link is Down

    PHY: 0:01 - Link is Up - 10/Full

    root@dm816x-evm:~# ethtool eth1

    Settings for eth1:

           Supported ports: [ TP AUI BNC MII FIBRE ]

           Supported link modes:   10baseT/Half 10baseT/Full

                                   100baseT/Half 100baseT/Full

                                   1000baseT/Half 1000baseT/Full

           Supports auto-negotiation: Yes

           Advertised link modes:  1000baseT/Full

           Advertised pause frame use: No

           Advertised auto-negotiation: No

           Speed: 10Mb/s

           Duplex: Full

           Port: MII

           PHYAD: 1

           Transceiver: external

           Auto-negotiation: off

           Link detected: yes

    root@dm816x-evm:~# ping 192.168.1.187

    PING 192.168.1.187 (192.168.1.187): 56 data bytes

    64 bytes from 192.168.1.187: seq=0 ttl=128 time=0.421 ms

    64 bytes from 192.168.1.187: seq=1 ttl=128 time=0.323 ms

    64 bytes from 192.168.1.187: seq=2 ttl=128 time=0.307 ms

    --- 192.168.1.187 ping statistics ---

    3 packets transmitted, 3 packets received, 0% packet loss

    round-trip min/avg/max = 0.307/0.350/0.421 ms

    root@dm816x-evm:~# ethtool -s eth1 speed 1000 duplex full autoneg on

    root@dm816x-evm:~# PHY: 0:01 - Link is Down

    PHY: 0:01 - Link is Up - 1000/Full

    root@dm816x-evm:~# ethtool eth1

    Settings for eth1:

           Supported ports: [ TP AUI BNC MII FIBRE ]

           Supported link modes:   10baseT/Half 10baseT/Full

                                   100baseT/Half 100baseT/Full

                                   1000baseT/Half 1000baseT/Full

           Supports auto-negotiation: Yes

           Advertised link modes:  1000baseT/Full

           Advertised pause frame use: No

           Advertised auto-negotiation: Yes

           Speed: 1000Mb/s

           Duplex: Full

           Port: MII

           PHYAD: 1

           Transceiver: external

           Auto-negotiation: on

           Link detected: yes

    root@dm816x-evm:~# ping 192.168.1.187

    PING 192.168.1.187 (192.168.1.187): 56 data bytes

    --- 192.168.1.187 ping statistics ---

    4 packets transmitted, 0 packets received, 100% packet loss

    root@dm816x-evm:~#

      Best regards,

       Dmitry

  • hi Dmitry,

    please try to ping yourself (192.168.1.185) in case of failure in ping remote side(192.168.1.187). And show the result.
    After checking in active mode, let's change it to passive mode.
    Do the operation in the above post in remote PC (Note: make sure the 8168 is in the state of auto negotiation on without speed limit) and show the result.
  • Hello.
    Look at the sequences below, please



    dm816x-evm login: root
    root@dm816x-evm:~# ethtool eth1
    Settings for eth1:
    Link detected: yes
    root@dm816x-evm:~# ifconfig eth1 192.168.1.185
    davinci_mdio davinci_mdio.0: resetting idled controller
    net eth1: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01, id=221612)
    ADDRCONF(NETDEV_UP): eth1: link is not ready
    root@dm816x-evm:~# PHY: 0:01 - Link is Up - 1000/Full
    ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready

    root@dm816x-evm:~# ethtool eth1
    Settings for eth1:
    Supported ports: [ TP AUI BNC MII FIBRE ]
    Supported link modes: 10baseT/Half 10baseT/Full
    100baseT/Half 100baseT/Full
    1000baseT/Half 1000baseT/Full
    Supports auto-negotiation: Yes
    Advertised link modes: 10baseT/Half 10baseT/Full
    100baseT/Half 100baseT/Full
    1000baseT/Half 1000baseT/Full
    Advertised pause frame use: No
    Advertised auto-negotiation: Yes
    Speed: 1000Mb/s
    Duplex: Full
    Port: MII
    PHYAD: 1
    Transceiver: external
    Auto-negotiation: on
    Link detected: yes
    root@dm816x-evm:~# ping 192.168.1.187
    PING 192.168.1.187 (192.168.1.187): 56 data bytes

    --- 192.168.1.187 ping statistics ---
    2 packets transmitted, 0 packets received, 100% packet loss
    root@dm816x-evm:~# ping 192.168.1.185
    PING 192.168.1.185 (192.168.1.185): 56 data bytes
    64 bytes from 192.168.1.185: seq=0 ttl=64 time=0.264 ms
    64 bytes from 192.168.1.185: seq=1 ttl=64 time=0.145 ms
    64 bytes from 192.168.1.185: seq=2 ttl=64 time=0.125 ms

    --- 192.168.1.185 ping statistics ---
    3 packets transmitted, 3 packets received, 0% packet loss
    round-trip min/avg/max = 0.125/0.178/0.264 ms
    root@dm816x-evm:~#
    root@dm816x-evm:~# ethtool -s eth1 speed 100 duplex full autoneg on
    root@dm816x-evm:~# PHY: 0:01 - Link is Down
    PHY: 0:01 - Link is Up - 100/Full

    root@dm816x-evm:~# ethtool eth1
    Settings for eth1:
    Supported ports: [ TP AUI BNC MII FIBRE ]
    Supported link modes: 10baseT/Half 10baseT/Full
    100baseT/Half 100baseT/Full
    1000baseT/Half 1000baseT/Full
    Supports auto-negotiation: Yes
    Advertised link modes: 100baseT/Full
    Advertised pause frame use: No
    Advertised auto-negotiation: Yes
    Speed: 100Mb/s
    Duplex: Full
    Port: MII
    PHYAD: 1
    Transceiver: external
    Auto-negotiation: on
    Link detected: yes
    root@dm816x-evm:~# ping 192.168.1.187
    PING 192.168.1.187 (192.168.1.187): 56 data bytes

    --- 192.168.1.187 ping statistics ---
    3 packets transmitted, 0 packets received, 100% packet loss
    root@dm816x-evm:~# ping 192.168.1.185
    PING 192.168.1.185 (192.168.1.185): 56 data bytes
    64 bytes from 192.168.1.185: seq=0 ttl=64 time=0.243 ms
    64 bytes from 192.168.1.185: seq=1 ttl=64 time=0.167 ms
    64 bytes from 192.168.1.185: seq=2 ttl=64 time=0.095 ms

    --- 192.168.1.185 ping statistics ---
    3 packets transmitted, 3 packets received, 0% packet loss
    round-trip min/avg/max = 0.095/0.168/0.243 ms
    root@dm816x-evm:~# ethtool -s eth1 speed 10 duplex full autoneg on
    root@dm816x-evm:~# PHY: 0:01 - Link is Down
    PHY: 0:01 - Link is Up - 10/Full

    root@dm816x-evm:~# ethtool eth1
    Settings for eth1:
    Supported ports: [ TP AUI BNC MII FIBRE ]
    Supported link modes: 10baseT/Half 10baseT/Full
    100baseT/Half 100baseT/Full
    1000baseT/Half 1000baseT/Full
    Supports auto-negotiation: Yes
    Advertised link modes: 10baseT/Full
    Advertised pause frame use: No
    Advertised auto-negotiation: Yes
    Speed: 10Mb/s
    Duplex: Full
    Port: MII
    PHYAD: 1
    Transceiver: external
    Auto-negotiation: on
    Link detected: yes
    root@dm816x-evm:~# ping 192.168.1.187
    PING 192.168.1.187 (192.168.1.187): 56 data bytes
    64 bytes from 192.168.1.187: seq=0 ttl=128 time=0.444 ms
    64 bytes from 192.168.1.187: seq=1 ttl=128 time=0.323 ms
    64 bytes from 192.168.1.187: seq=2 ttl=128 time=0.318 ms

    --- 192.168.1.187 ping statistics ---
    3 packets transmitted, 3 packets received, 0% packet loss
    round-trip min/avg/max = 0.318/0.361/0.444 ms
    root@dm816x-evm:~# ping 192.168.1.185
    PING 192.168.1.185 (192.168.1.185): 56 data bytes
    64 bytes from 192.168.1.185: seq=0 ttl=64 time=0.233 ms
    64 bytes from 192.168.1.185: seq=1 ttl=64 time=0.119 ms
    64 bytes from 192.168.1.185: seq=2 ttl=64 time=0.096 ms

    --- 192.168.1.185 ping statistics ---
    3 packets transmitted, 3 packets received, 0% packet loss
    round-trip min/avg/max = 0.096/0.149/0.233 ms
    root@dm816x-evm:~# ethtool -s eth1 speed 10 duplex full autoneg off
    root@dm816x-evm:~#
    root@dm816x-evm:~# ethtool eth1
    Settings for eth1:
    Supported ports: [ TP AUI BNC MII FIBRE ]
    Supported link modes: 10baseT/Half 10baseT/Full
    100baseT/Half 100baseT/Full
    1000baseT/Half 1000baseT/Full
    Supports auto-negotiation: Yes
    Advertised link modes: 10baseT/Full
    Advertised pause frame use: No
    Advertised auto-negotiation: No
    Speed: 10Mb/s
    Duplex: Full
    Port: MII
    PHYAD: 1
    Transceiver: external
    Auto-negotiation: off
    Link detected: yes
    root@dm816x-evm:~# ping 192.168.1.187
    PING 192.168.1.187 (192.168.1.187): 56 data bytes
    64 bytes from 192.168.1.187: seq=0 ttl=128 time=0.568 ms
    64 bytes from 192.168.1.187: seq=1 ttl=128 time=0.332 ms
    64 bytes from 192.168.1.187: seq=2 ttl=128 time=0.338 ms

    --- 192.168.1.187 ping statistics ---
    3 packets transmitted, 3 packets received, 0% packet loss
    round-trip min/avg/max = 0.332/0.412/0.568 ms
    root@dm816x-evm:~# ping 192.168.1.185
    PING 192.168.1.185 (192.168.1.185): 56 data bytes
    64 bytes from 192.168.1.185: seq=0 ttl=64 time=0.194 ms
    64 bytes from 192.168.1.185: seq=1 ttl=64 time=0.127 ms
    64 bytes from 192.168.1.185: seq=2 ttl=64 time=0.117 ms

    --- 192.168.1.185 ping statistics ---
    3 packets transmitted, 3 packets received, 0% packet loss
    round-trip min/avg/max = 0.117/0.146/0.194 ms
    root@dm816x-evm:~# ethtool -s eth1 speed 100 duplex full autoneg off
    root@dm816x-evm:~# PHY: 0:01 - Link is Down
    PHY: 0:01 - Link is Up - 100/Full

    root@dm816x-evm:~# ethtool eth1
    Settings for eth1:
    Supported ports: [ TP AUI BNC MII FIBRE ]
    Supported link modes: 10baseT/Half 10baseT/Full
    100baseT/Half 100baseT/Full
    1000baseT/Half 1000baseT/Full
    Supports auto-negotiation: Yes
    Advertised link modes: 10baseT/Full
    Advertised pause frame use: No
    Advertised auto-negotiation: No
    Speed: 100Mb/s
    Duplex: Full
    Port: MII
    PHYAD: 1
    Transceiver: external
    Auto-negotiation: off
    Link detected: yes
    root@dm816x-evm:~# ping 192.168.1.187
    PING 192.168.1.187 (192.168.1.187): 56 data bytes

    --- 192.168.1.187 ping statistics ---
    2 packets transmitted, 0 packets received, 100% packet loss
    root@dm816x-evm:~# ping 192.168.1.185
    PING 192.168.1.185 (192.168.1.185): 56 data bytes
    64 bytes from 192.168.1.185: seq=0 ttl=64 time=0.230 ms
    64 bytes from 192.168.1.185: seq=1 ttl=64 time=0.116 ms
    64 bytes from 192.168.1.185: seq=2 ttl=64 time=0.142 ms

    --- 192.168.1.185 ping statistics ---
    3 packets transmitted, 3 packets received, 0% packet loss
    round-trip min/avg/max = 0.116/0.162/0.230 ms
    root@dm816x-evm:~# ethtool -s eth1 speed 1000 duplex full autoneg off
    root@dm816x-evm:~# PHY: 0:01 - Link is Down
    Trying 1000/HALF
    Trying 100/FULL
    PHY: 0:01 - Link is Up - 100/Full

    root@dm816x-evm:~# ethtool eth1
    Settings for eth1:
    Supported ports: [ TP AUI BNC MII FIBRE ]
    Supported link modes: 10baseT/Half 10baseT/Full
    100baseT/Half 100baseT/Full
    1000baseT/Half 1000baseT/Full
    Supports auto-negotiation: Yes
    Advertised link modes: 10baseT/Full
    Advertised pause frame use: No
    Advertised auto-negotiation: No
    Speed: 100Mb/s
    Duplex: Full
    Port: MII
    PHYAD: 1
    Transceiver: external
    Auto-negotiation: off
    Link detected: yes
    root@dm816x-evm:~# ping 192.168.1.187
    PING 192.168.1.187 (192.168.1.187): 56 data bytes

    --- 192.168.1.187 ping statistics ---
    2 packets transmitted, 0 packets received, 100% packet loss
    root@dm816x-evm:~# ping 192.168.1.185
    PING 192.168.1.185 (192.168.1.185): 56 data bytes
    64 bytes from 192.168.1.185: seq=0 ttl=64 time=0.230 ms
    64 bytes from 192.168.1.185: seq=1 ttl=64 time=0.158 ms
    64 bytes from 192.168.1.185: seq=2 ttl=64 time=0.096 ms

    --- 192.168.1.185 ping statistics ---
    3 packets transmitted, 3 packets received, 0% packet loss
    round-trip min/avg/max = 0.096/0.161/0.230 ms
    root@dm816x-evm:~# ethtool -s eth1 speed 1000 duplex full autoneg on
    root@dm816x-evm:~# PHY: 0:01 - Link is Down
    PHY: 0:01 - Link is Up - 1000/Full

    root@dm816x-evm:~# ethtool eth1
    Settings for eth1:
    Supported ports: [ TP AUI BNC MII FIBRE ]
    Supported link modes: 10baseT/Half 10baseT/Full
    100baseT/Half 100baseT/Full
    1000baseT/Half 1000baseT/Full
    Supports auto-negotiation: Yes
    Advertised link modes: 1000baseT/Full
    Advertised pause frame use: No
    Advertised auto-negotiation: Yes
    Speed: 1000Mb/s
    Duplex: Full
    Port: MII
    PHYAD: 1
    Transceiver: external
    Auto-negotiation: on
    Link detected: yes
    root@dm816x-evm:~# ping 192.168.1.187
    PING 192.168.1.187 (192.168.1.187): 56 data bytes

    --- 192.168.1.187 ping statistics ---
    3 packets transmitted, 0 packets received, 100% packet loss
    root@dm816x-evm:~# ping 192.168.1.185
    PING 192.168.1.185 (192.168.1.185): 56 data bytes
    64 bytes from 192.168.1.185: seq=0 ttl=64 time=0.231 ms
    64 bytes from 192.168.1.185: seq=1 ttl=64 time=0.116 ms
    64 bytes from 192.168.1.185: seq=2 ttl=64 time=0.096 ms

    --- 192.168.1.185 ping statistics ---
    3 packets transmitted, 3 packets received, 0% packet loss
    round-trip min/avg/max = 0.096/0.147/0.231 ms
    root@dm816x-evm:~#

    Best regards,
    Dmitry