Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A20 => Topic started by: gilmour on February 05, 2024, 03:50:12 PM

Title: A20-SOM-EVB gigabit ethernet question
Post by: gilmour on February 05, 2024, 03:50:12 PM
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
Title: Re: A20-SOM-EVB gigabit ethernet question
Post by: LubOlimex on February 06, 2024, 10:36:28 AM
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.
Title: Re: A20-SOM-EVB gigabit ethernet question
Post by: gilmour on February 06, 2024, 04:53:21 PM
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
Title: Re: A20-SOM-EVB gigabit ethernet question
Post by: LubOlimex on February 07, 2024, 08:13:38 AM
Can you give me the full boot log? From the start.
Title: Re: A20-SOM-EVB gigabit ethernet question
Post by: gilmour on February 07, 2024, 08:32:40 AM
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!!!
Title: Re: A20-SOM-EVB gigabit ethernet question
Post by: LubOlimex on February 07, 2024, 08:55:03 AM
It doesn't work, it says it was deleted. Try some simple txt hosting site like https://justpaste.it/ or similar.
Title: Re: A20-SOM-EVB gigabit ethernet question
Post by: gilmour on February 07, 2024, 09:47:19 AM
Now?

https://justpaste.it/e1cp8
Title: Re: A20-SOM-EVB gigabit ethernet question
Post by: LubOlimex on February 07, 2024, 09:58:02 AM
That is better, yes.
Title: Re: A20-SOM-EVB gigabit ethernet question
Post by: LubOlimex on February 07, 2024, 03:02:19 PM
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?
Title: Re: A20-SOM-EVB gigabit ethernet question
Post by: gilmour on February 07, 2024, 04:46:02 PM
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
Title: Re: A20-SOM-EVB gigabit ethernet question
Post by: LubOlimex on February 07, 2024, 04:53:16 PM
Thank you for update, glad to help.
Title: Re: A20-SOM-EVB gigabit ethernet question
Post by: gilmour on February 07, 2024, 04:57:37 PM
The rate is low.... ~1MiB/sec
Title: Re: A20-SOM-EVB gigabit ethernet question
Post by: LubOlimex on February 08, 2024, 10:51:07 AM
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