Hello, I have a problem using the SFP port of a RB2011iILS-IN when using Openwrt, It does not link, although configuration for SFP port (port 6 - eth0.3) is shown in /etc/config/network, its physicall connection is correct and the patch cord and SFP modules have been tested using RouterOS and they´re operating perfectly. Does anybody know if SFP functionallity in RB2011 has been tested before and is there any other consideration i have to take into account to get the SFP fully operative. I will be thankfull to any suggestion.
The trick is that one of the LED outputs of the AR8327 switch chip actually controls the transistor which turns on the power to the SFP PHY !!!
Accordingly, to turn on the power to the PHY, you need to do something like this(value is 0x0230c300 instead of 0x0030c300 ):
static struct ar8327_led_cfg rb2011_ar8327_led_cfg = {
.led_ctrl0 = 0xc731c731,
.led_ctrl1 = 0x00000000,
.led_ctrl2 = 0x00000000,
.led_ctrl3 = 0x0230c300,
.open_drain = false,
};
And in the RB2011UiAS-RM. an I2C is connected to the SFP and through it you can read / write the EEPROM and get the DDM data:
insmod i2c-gpio-custom bus0=0,11,21
i2cdetect 0
i2cdump 0 0x50
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
Hello,
I need help to configure my sfp on my rb2011uias, I put flash 19.07, but my sfp does not work. I saw the messages on it but I didn't understand I2C? If I have to modify the code "0x0230c300" as Adron says, what file is it in? how to proceed ? Isn't there a flash sysupdate with this modification already made? thank you for your help. dsl for my very bad English.
Merci beaucoup.
Max