Adding more SFP/SFP+ modules (optical)

So, the complete re-flash from the recovery mode and rewriting the bl2_qspi_xg1_1g.pbl as you told me helped on the kernel side. There’s no error anymore, yet there seem to be quirks, probably on the software side.

According to the docs, the modules should be enabled on OpenWRT, but they aren’t sending data, even if they’re now recognized by Ten64.

I’ve tried to enable them manually according to the doc, and that fails.

root@OpenWrt:~# echo 369 > /sys/class/gpio/export
ash: write error: Resource busy
root@OpenWrt:~# echo out > /sys/class/gpio/gpio369/direction
-ash: can't create /sys/class/gpio/gpio369/direction: nonexistent directory
root@OpenWrt:~# 
root@OpenWrt:~# echo 0 > /sys/class/gpio/gpio369/value
-ash: can't create /sys/class/gpio/gpio369/value: nonexistent directory

Things in the log seem to be going correctly for the modules the provider recommends.

Tue Aug  6 08:21:56 2024 kern.info kernel: [ 1917.178783] sfp dpmac1_sfp: module CTS INC.         SFP-31W2BahSM-10 rev A    sn 4EA9207F2274070  dc 231218
Tue Aug  6 08:21:56 2024 kern.info kernel: [ 1917.228338] hwmon hwmon2: temp1_input not attached to any thermal zone
...
Tue Aug  6 08:22:05 2024 kern.info kernel: [ 1926.468614] sfp dpmac2_sfp: module CTS INC.         SFP-31W2BahSM-10 rev A    sn 4EA9207F2274073  dc 231218
Tue Aug  6 08:22:05 2024 kern.info kernel: [ 1926.507924] hwmon hwmon3: temp1_input not attached to any thermal zone

Now I am conducting tests on laptop Ethernet with a simple media converter and a couple module pair types.

First, if I connect the 2nd media converter to the Ethernet, things are good: 923.64 Mbps download and 102.08 Mbps upload.

Next, I move the SFP module to a Ten64 SFP module port and leave one media converter at the laptop. Sadly, there’s no connection without WiFi.

Tue Aug  6 08:57:22 2024 kern.info kernel: [ 4043.394321] sfp dpmac1_sfp: module OEM              SFP-BX-D20D      rev      sn 202312220201     dc 231222
Tue Aug  6 08:57:22 2024 kern.info kernel: [ 4043.433674] hwmon hwmon2: temp1_input not attached to any thermal zone
root@OpenWrt:~# ethtool -m eth9
	Identifier                                : 0x03 (SFP)
	Extended identifier                       : 0x04 (GBIC/SFP defined by 2-wire interface ID)
	Connector                                 : 0x01 (SC)
	Transceiver codes                         : 0x00 0x00 0x00 0x00 0x12 0x00 0x01 0x01 0x00
	Transceiver type                          : FC: long distance (L)
	Transceiver type                          : FC: Longwave laser (LC)
	Transceiver type                          : FC: Single Mode (SM)
	Transceiver type                          : FC: 100 MBytes/sec
	Encoding                                  : 0x01 (8B/10B)
	BR, Nominal                               : 1300MBd
	Rate identifier                           : 0x00 (unspecified)
	Length (SMF,km)                           : 20km
	Length (SMF)                              : 20000m
	Length (50um)                             : 0m
	Length (62.5um)                           : 0m
	Length (Copper)                           : 0m
	Length (OM3)                              : 0m
	Laser wavelength                          : 1550nm
	Vendor name                               : OEM
	Vendor OUI                                : 00:00:00
	Vendor PN                                 : SFP-BX-D20D
	Vendor rev                                : 
	Option values                             : 0x00 0x1a
	Option                                    : RX_LOS implemented
	Option                                    : TX_FAULT implemented
	Option                                    : TX_DISABLE implemented
	BR margin, max                            : 0%
	BR margin, min                            : 0%
	Vendor SN                                 : 202312220201
	Date code                                 : 231222
	Optical diagnostics support               : Yes
	Laser bias current                        : 0.000 mA
	Laser output power                        : 0.0073 mW / -21.37 dBm
	Receiver signal average optical power     : 0.1980 mW / -7.03 dBm
	Module temperature                        : 27.82 degrees C / 82.08 degrees F
	Module voltage                            : 3.2863 V
	Alarm/warning flags implemented           : Yes
	Laser bias current high alarm             : Off
	Laser bias current low alarm              : On
	Laser bias current high warning           : Off
	Laser bias current low warning            : On
	Laser output power high alarm             : Off
	Laser output power low alarm              : On
	Laser output power high warning           : Off
	Laser output power low warning            : On
	Module temperature high alarm             : Off
	Module temperature low alarm              : Off
	Module temperature high warning           : Off
	Module temperature low warning            : Off
	Module voltage high alarm                 : Off
	Module voltage low alarm                  : Off
	Module voltage high warning               : Off
	Module voltage low warning                : Off
	Laser rx power high alarm                 : Off
	Laser rx power low alarm                  : Off
	Laser rx power high warning               : Off
	Laser rx power low warning                : Off
	Laser bias current high alarm threshold   : 100.000 mA
	Laser bias current low alarm threshold    : 1.000 mA
	Laser bias current high warning threshold : 80.000 mA
	Laser bias current low warning threshold  : 2.000 mA
	Laser output power high alarm threshold   : 0.6310 mW / -2.00 dBm
	Laser output power low alarm threshold    : 0.1259 mW / -9.00 dBm
	Laser output power high warning threshold : 0.5012 mW / -3.00 dBm
	Laser output power low warning threshold  : 0.1585 mW / -8.00 dBm
	Module temperature high alarm threshold   : 80.00 degrees C / 176.00 degrees F
	Module temperature low alarm threshold    : -10.00 degrees C / 14.00 degrees F
	Module temperature high warning threshold : 70.00 degrees C / 158.00 degrees F
	Module temperature low warning threshold  : 0.00 degrees C / 32.00 degrees F
	Module voltage high alarm threshold       : 3.6000 V
	Module voltage low alarm threshold        : 3.0000 V
	Module voltage high warning threshold     : 3.4500 V
	Module voltage low warning threshold      : 3.1500 V
	Laser rx power high alarm threshold       : 0.6310 mW / -2.00 dBm
	Laser rx power low alarm threshold        : 0.0016 mW / -27.96 dBm
	Laser rx power high warning threshold     : 0.5012 mW / -3.00 dBm
	Laser rx power low warning threshold      : 0.0025 mW / -26.02 dBm

I switch the module.

Tue Aug  6 09:11:03 2024 kern.info kernel: [ 4864.412197] sfp dpmac2_sfp: module CISCO-JT         GLC-BX-U         rev V1.0 sn GLC2407051233    dc 20240705
Tue Aug  6 09:11:03 2024 kern.info kernel: [ 4864.451553] hwmon hwmon3: temp1_input not attached to any thermal zone

It is not Cisco, it’s JT-COM ones from the tray. There’s no connection on the port. Putting the SFP into the media converter, I see 915.87 Mbps download and 102.12 Mbps upload on speedtest.net.

I’m trying another one:

Tue Aug  6 09:30:24 2024 kern.info kernel: [ 6024.814531] sfp dpmac1_sfp: module OEM              SFP-OC24-20B-SC  rev A    sn XC2501240162     dc 240125
Tue Aug  6 09:30:24 2024 kern.info kernel: [ 6024.853905] hwmon hwmon2: temp1_input not attached to any thermal zone

No luck with Ten 64, but with an ONTi media converter it is 891.64 Mbps DL, 102.16 Mbps UP.

I’ll continue trying different modules in general, but for now, I’d like to know whether I can expect one of the FS.com modules (#75336, #37925, #11795) to be stable as I need one of them (or the CTS INC. SFP-31W2BahSM-10 rev A) to connect to the ISP.

As a small note, I think this is starting to remind me of another topic I’ve opened symptom-wise: 10G Ethernet modules: recognized, but not connecting. The module is recognized, but no Ethernet connection is being made.

(Knowing whether I can somehow enable the modules shown previously would be nice, too! They may have some incorrect marking, yet they are compatible with hardware I have, so there probably is an override.)

Again, thanks for a quick reply! :slight_smile: