starfive-tech / VisionFive2

445 stars 79 forks source link

1G network jack not working, 100M network jack does #24

Open Electron752 opened 1 year ago

Electron752 commented 1 year ago

I can't get the 1G networking to work with either the precompiled debian image or using the linux kernel for the VisionFive2 off the starfive-tech github. The 100M jack works fine.

Does the 1G network work? I can get the interface to go up and see the cable is up on my switch, but nothing works.

cwt commented 1 year ago

I build my custom kernel based on v2.8.0, my results may related to your issue.

I tested using an old Cisco Catalyst 2950 switch. It is connected via a 1 Gbps SFP fiber uplink, and all of its UTP ports are 10/100. Here are the results:

I believe the changes in the driver between v2.6.0 and v2.8.0 may be the cause of this problem.

strlcat commented 1 year ago

Same here. Is your VF2 is v1.2a revision? Mine is, and I never been able to get 1GbE port working on it since shipping it to me in December. So far, what I've got:

Test setup:

So far, I observed the following:

Conclusion: Linux driver is broken, U-Boot is fine, hardware is also fine.

HTH

jimmystewpot commented 1 year ago

I think that this might be fixed, in the most recent firmware/armbian builds I have both networks now working without error.

[   16.694079] starfive-eth-plat 16040000.ethernet eth1: Link is Up - 1Gbps/Full - flow control off
[   16.694112] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[   34.452364] mipi_0p9: disabling
[   70.772475] starfive-eth-plat 16040000.ethernet eth1: Link is Down
[   73.894947] starfive-eth-plat 16030000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[   73.895007] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

This previously didn't work for me, only started working from 3.0.3 release and the most recent kernels in armbian.

 5.15.0-starfive2 #1 SMP Mon Mar 20 17:53:42 UTC 2023 riscv64 riscv64 riscv64 GNU/Linux