Open Electron752 opened 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:
When I plug the right port on VF2 (1 Gbps) into this switch, the kernel reports that the link is up with 100 Mbps/Full, but I cannot obtain an IP address.
When I plug the left port on VF2 (100 Mbps) into this switch, the kernel reports that the link is up with 100 Mbps/Full and I successfully obtain an IP address.
However, when I plug either port on VF2 into another 10/100/1000 switch, both ports can successfully obtain an IP address.
I believe the changes in the driver between v2.6.0 and v2.8.0 may be the cause of this problem.
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:
192.168.5.10/24
on 1GbE port on V1.2A side and SECOND 1GbE port on "host" V1.3B side as 192.168.5.1/24
, ports are connected by full blown 4 twisted pair cable, V1.3B lights up orange port led together with green one (see below why)Link is Up - 1Gbps/Full - flow control rx/tx
192.168.5.1
from V1.2A does NOT work. There is ARP lookup error, and tcpdump
on V1.3B side shows NOTHING when V1.2A tries to communicate with it.192.168.5.10
(V1.2A side), but now on V1.2A's tcpdump I do see ARP lookup attempts sent by V1.3B. V1.2A tries to reply, but replies never reach V1.3B.100Mbps/Full - flow control rx/tx
tcpdump
s are fine, there's even ipv6 autoconf stuff goes inLink is Up - 1Gbps/Full - flow control off
, and I can even transfer a file to V1.2A RAM with tftpboot
.dmesg
were observed on both sides.Conclusion: Linux driver is broken, U-Boot is fine, hardware is also fine.
HTH
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
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.