Hi @adron ,
I'm cross posting from Another thread on the RB2011 series
I got SFP working with the proposed fix
- The device needs a power cycle for the switch to apply new settings to the LED control register - a simple system reboot didn't do it - ( page 58 : http://microchip.ho.ua/data/AR8327.pdf )
swconfig still reports that the link is down, but there is traffic on the port as per the Iperf tests below - SFP-LOS GPIO stays high - maybe the wrong GPIO is being used ?
Iperf results between devices on either side of the SFP connection ( VLAN tagging and untagging is also involved ) :
Connecting to host 10.0.0.117, port 5201
[ 4] local 10.0.0.180 port 11188 connected to 10.0.0.117 port 5201
[ ID] Interval Transfer Bandwidth
[ 4] 0.00-1.00 sec 104 MBytes 876 Mbits/sec
[ 4] 1.00-2.00 sec 111 MBytes 929 Mbits/sec
[ 4] 2.00-3.00 sec 110 MBytes 924 Mbits/sec
[ 4] 3.00-4.00 sec 112 MBytes 940 Mbits/sec
[ 4] 4.00-5.00 sec 110 MBytes 925 Mbits/sec
[ 4] 5.00-6.00 sec 110 MBytes 918 Mbits/sec
[ 4] 6.00-7.00 sec 108 MBytes 904 Mbits/sec
[ 4] 7.00-8.00 sec 107 MBytes 897 Mbits/sec
[ 4] 8.00-9.00 sec 105 MBytes 880 Mbits/sec
[ 4] 9.00-10.00 sec 112 MBytes 935 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bandwidth
[ 4] 0.00-10.00 sec 1.06 GBytes 913 Mbits/sec sender
[ 4] 0.00-10.00 sec 1.06 GBytes 913 Mbits/sec receiver
Edit: it also looks like the LOS gpio is GPIO17 ( not 21 as the rb2011.c has )
SFP connected and fibre insterted
gpio-17 ( |SFP LOS ) in lo
SFP connected and fibre removed
gpio-17 ( |SFP LOS ) in hi
swconfig reports link up correctly when its up ( expected this ) link: port:6 link:up speed:1000baseT full-duplex