Ethernet problem A20-OLinuXino-Lime2 Rev.K

Started by valt, October 26, 2024, 06:57:19 PM

Previous topic - Next topic

valt

Hello everyone,

I've owned an Olimex A20 Lime2 Rev.K for a few months and a problem related to the ethernet remains unresolved despite my numerous searches on the Internet and various forums. My box is connected directly via an ethernet cable to my ISP's box. Trying to use this famous ethernet cable from my personal PC, a speed test gives me a downstream speed of around ~900 Mbps. However, when I connect this cable to my olimex, the speed suddenly becomes very low, trying an iperf on a public server with a speed of 100 Gbit/s I get about 30 Mbps:
root@olimex:~# iperf3 -c ping.online.net
Connecting to host ping.online.net, port 5201
[  5] local xx.xx.xx.xx port 58542 connected to 51.158.1.21 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  3.44 MBytes  28.8 Mbits/sec    0    244 KBytes      
[  5]   1.00-2.02   sec  4.25 MBytes  35.1 Mbits/sec    0    430 KBytes      
[  5]   2.02-3.00   sec  4.07 MBytes  34.6 Mbits/sec    0    619 KBytes      
[  5]   3.00-4.00   sec  3.70 MBytes  31.0 Mbits/sec    6    410 KBytes      
[  5]   4.00-5.00   sec  2.96 MBytes  24.8 Mbits/sec    1    258 KBytes      
[  5]   5.00-6.00   sec  2.22 MBytes  18.6 Mbits/sec    0    279 KBytes      
[  5]   6.00-7.00   sec  2.96 MBytes  24.8 Mbits/sec    0    288 KBytes      
[  5]   7.00-8.00   sec  2.22 MBytes  18.6 Mbits/sec    0    290 KBytes      
[  5]   8.00-9.00   sec  3.02 MBytes  25.3 Mbits/sec    0    290 KBytes      
[  5]   9.00-10.00  sec  1.48 MBytes  12.4 Mbits/sec    0    290 KBytes      
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec  30.3 MBytes  25.4 Mbits/sec    7             sender
[  5]   0.00-10.31  sec  28.6 MBytes  23.3 Mbits/sec                  receiver

iperf Done.

However, if I look at my network card, I'm supposed to be able to receive at least 1000 Mbp/s :
root@olimex:~# ethtool eth0
Settings for eth0:
    Supported ports: [ TP     MII ]
    Supported link modes:   10baseT/Half 10baseT/Full
                            100baseT/Half 100baseT/Full
                            1000baseT/Half 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/Half 1000baseT/Full
    Advertised pause frame use: Symmetric
    Advertised auto-negotiation: Yes
    Advertised FEC modes: Not reported
    Link partner advertised link modes:  1000baseT/Full
    Link partner advertised pause frame use: Symmetric
    Link partner advertised auto-negotiation: Yes
    Link partner advertised FEC modes: Not reported
    Speed: 1000Mb/s
    Duplex: Full
    Auto-negotiation: on
    master-slave cfg: preferred slave
    master-slave status: slave
    Port: Twisted Pair
    PHYAD: 1
    Transceiver: external
    MDI-X: Unknown
    Supports Wake-on: d
    Wake-on: d
        Current message level: 0x0000003f (63)
                               drv probe link timer ifdown ifup
    Link detected: yes

Do you know of a similar problem with anyone else? Do you have any advice on how to fix it?

PS: if my message isn't very clear, please excuse me for my broken English.

Thank you in advance and have a nice day

LubOlimex

Each board gets a network throughput test after manufacturing, each board is required to have at least 300Mbit/s throughput.

Are you testing with Olimage Linux? If not, please test with Olimage and report back. Refer to this document:

https://github.com/OLIMEX/OLINUXINO/blob/master/DOCUMENTS/OLIMAGE/Olimage-guide.pdf

Technical support and documentation manager at Olimex