A20-SOM-EVB gigabit ethernet question

Started by gilmour, February 05, 2024, 03:50:12 PM

Previous topic - Next topic

gilmour

Hello team, it might be that the answer has already given to another post but I haven't find it yet.

So, my question is regarding the gigabit ethernet for the Olimex A20-SOM-EVB. Is it possible that we can get ethernet working at 1Gigabit? Is there any specific version of uboot or Kernel I should use?

Thank you in advance.

Kind regards,
gilmour

LubOlimex

The expected throughput of A20 boards with GbE is around 500Mbit/s. The exact numbers vary depending on the hardware setup. Most of the boards I've tested myself go up to 700Mbit/s when connected to a personal computer.

I use the Olimage Linux in my tests:

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

Notice that we test each board with a network throughput test after manufacturing, each board is required to have at least 300Mbit/s throughput. If less is detected - the board gets discarded or repaired.
Technical support and documentation manager at Olimex

gilmour

Hello, thank you very much for your reply.
My question has mostly to do with the following boot log where you can see
at the bottom that "Link is Up - 100Mbps/Full".

Is there something I should take care? Specific kernel version or uboot version?

[    1.370449] sun7i-dwmac 1c50000.ethernet: IRQ eth_wake_irq not found
[    1.376856] sun7i-dwmac 1c50000.ethernet: IRQ eth_lpi not found
[    1.382943] sun7i-dwmac 1c50000.ethernet: PTP uses main clock
[    1.388726] sun7i-dwmac 1c50000.ethernet: no reset control found
[    1.394785] sun7i-dwmac 1c50000.ethernet: no regulator found
[    1.401000] sun7i-dwmac 1c50000.ethernet: Version ID not available
[    1.407274] sun7i-dwmac 1c50000.ethernet:    DWMAC1000
[    1.412299] sun7i-dwmac 1c50000.ethernet: No HW DMA feature register supported
[    1.419541] sun7i-dwmac 1c50000.ethernet: TX Checksum insertion supported
[    1.426350] sun7i-dwmac 1c50000.ethernet: Normal descriptors
[    1.432024] sun7i-dwmac 1c50000.ethernet: Ring mode enabled
[  11.597572] sun7i-dwmac 1c50000.ethernet end0: renamed from eth0
[  20.094355] sun7i-dwmac 1c50000.ethernet end0: PHY [stmmac-0:01] driver [Generic PHY] (irq=POLL)
[  20.116104] sun7i-dwmac 1c50000.ethernet end0: No Safety Features support found
[  20.123683] sun7i-dwmac 1c50000.ethernet end0: RX IPC Checksum Offload disabled
[  20.131116] sun7i-dwmac 1c50000.ethernet end0: No MAC Management Counters available
[  20.138892] sun7i-dwmac 1c50000.ethernet end0: PTP not supported by HW
[  20.194347] sun7i-dwmac 1c50000.ethernet end0: configuring for phy/rgmii link mode
[  33.515188] sun7i-dwmac 1c50000.ethernet end0: Link is Up - 100Mbps/Full - flow control rx/tx

LubOlimex

Can you give me the full boot log? From the start.
Technical support and documentation manager at Olimex

gilmour

Here you are. I hope it is working, I didn't know where to upload it.


https://file.io/KdRTXu8An6At

Thank you for your support!!!

LubOlimex

It doesn't work, it says it was deleted. Try some simple txt hosting site like https://justpaste.it/ or similar.
Technical support and documentation manager at Olimex


LubOlimex

Technical support and documentation manager at Olimex

LubOlimex

It looks to me like the board switches to 100Mb/s interface due to the network equipment being 100Mb.

Is this a 100Mb/s network that you connected to the board? Or maybe the cable?

Can you confirm this is GbE network and cable?

Do you have just one A20-SOM-EVB? Maybe if you have two at least connect them together and see what they say?
Technical support and documentation manager at Olimex

gilmour

#9
Thank you very much for your help and support!!!
Indeed it was a cable issue...
Although it hase a printing "Cat5e" it seems that it can't support GbE.
Below you can see what happened when I replaced the cable.

But the transfer rate is low 1MiB/sec.

[    1.370909] sun7i-dwmac 1c50000.ethernet: IRQ eth_wake_irq not found
[    1.377321] sun7i-dwmac 1c50000.ethernet: IRQ eth_lpi not found
[    1.383405] sun7i-dwmac 1c50000.ethernet: PTP uses main clock
[    1.389188] sun7i-dwmac 1c50000.ethernet: no reset control found
[    1.395248] sun7i-dwmac 1c50000.ethernet: no regulator found
[    1.401457] sun7i-dwmac 1c50000.ethernet: Version ID not available
[    1.407733] sun7i-dwmac 1c50000.ethernet:    DWMAC1000
[    1.412728] sun7i-dwmac 1c50000.ethernet: No HW DMA feature register supported
[    1.419961] sun7i-dwmac 1c50000.ethernet: TX Checksum insertion supported
[    1.426768] sun7i-dwmac 1c50000.ethernet: Normal descriptors
[    1.432440] sun7i-dwmac 1c50000.ethernet: Ring mode enabled
[   10.153905] sun7i-dwmac 1c50000.ethernet end0: renamed from eth0
[   18.469272] sun7i-dwmac 1c50000.ethernet end0: PHY [stmmac-0:01] driver [Generic PHY] (irq=POLL)
[   18.480928] sun7i-dwmac 1c50000.ethernet end0: No Safety Features support found
[   18.488416] sun7i-dwmac 1c50000.ethernet end0: RX IPC Checksum Offload disabled
[   18.495837] sun7i-dwmac 1c50000.ethernet end0: No MAC Management Counters available
[   18.503615] sun7i-dwmac 1c50000.ethernet end0: PTP not supported by HW
[   18.515159] sun7i-dwmac 1c50000.ethernet end0: configuring for phy/rgmii link mode
[   31.847491] sun7i-dwmac 1c50000.ethernet end0: Link is Up - 100Mbps/Full - flow control rx/tx
[13637.484779] sun7i-dwmac 1c50000.ethernet end0: Link is Down
[13703.019780] sun7i-dwmac 1c50000.ethernet end0: Link is Up - 1Gbps/Full - flow control rx/tx

LubOlimex

Technical support and documentation manager at Olimex

gilmour


LubOlimex

Well, you need to use Olimage Linux for initial tests. Download and check this document for instructions and links:

https://github.com/OLIMEX/OLINUXINO/blob/master/DOCUMENTS/OLIMAGE/Olimage-guide.pdf
Technical support and documentation manager at Olimex