TurrisOS 6.4.4 with WTD RTXM166-401-C1 stick not working

Hello,

I’ve bought myself an awesome Turris Omnia for Chistmas and trying to set it up now. However, when using the SFP module I already have for my ISP-provided router, it doesn’t work. I have no clue what I am doing wrong as it’s the first time I need to deal with Fiber.

Following the same pattern as [HBL] TurrisOS 6.0-alpha2 Halny HL-GSFP SFP GPON Stick problems, here is what I get from module:

root@turris:~# dmesg | grep sfp
[    8.001928] sfp sfp: Host maximum power 3.0W
[    8.337824] sfp sfp: module WTD              RTXM166-401-C11  rev 1.1  sn EB203100272698   dc 200814
root@turris:~# dmesg | grep mvneta | grep eth2
[    1.849537] mvneta f1034000.ethernet eth2: Using device tree mac address d8:58:d7:01:fc:af
[    8.347190] mvneta f1034000.ethernet eth2: switched to inband/1000base-x link mode
[   11.453992] mvneta f1034000.ethernet eth2: configuring for inband/1000base-x link mode
root@turris:~# ethtool -m eth2
	Identifier                                : 0x03 (SFP)
	Extended identifier                       : 0x04 (GBIC/SFP defined by 2-wire interface ID)
	Connector                                 : 0x01 (SC)
	Transceiver codes                         : 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
	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                          : 1310nm
	Vendor name                               : WTD
	Vendor OUI                                : 00:1c:ad
	Vendor PN                                 : RTXM166-401-C11
	Vendor rev                                : 1.1
	Option values                             : 0x00 0x0a
	Option                                    : RX_LOS implemented
	Option                                    : TX_FAULT implemented
	BR margin, max                            : 0%
	BR margin, min                            : 0%
	Vendor SN                                 : EB203100272698
	Date code                                 : 200814
	Optical diagnostics support               : Yes
	Laser bias current                        : 13.260 mA
	Laser output power                        : 2.3018 mW / 3.62 dBm
	Receiver signal average optical power     : 0.0171 mW / -17.67 dBm
	Module temperature                        : 46.25 degrees C / 115.25 degrees F
	Module voltage                            : 3.2986 V
	Alarm/warning flags implemented           : Yes
	Laser bias current high alarm             : Off
	Laser bias current low alarm              : Off
	Laser bias current high warning           : Off
	Laser bias current low warning            : Off
	Laser output power high alarm             : Off
	Laser output power low alarm              : Off
	Laser output power high warning           : Off
	Laser output power low warning            : Off
	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   : 90.000 mA
	Laser bias current low alarm threshold    : 0.000 mA
	Laser bias current high warning threshold : 70.000 mA
	Laser bias current low warning threshold  : 0.000 mA
	Laser output power high alarm threshold   : 4.5920 mW / 6.62 dBm
	Laser output power low alarm threshold    : 0.8954 mW / -0.48 dBm
	Laser output power high warning threshold : 3.6475 mW / 5.62 dBm
	Laser output power low warning threshold  : 1.1535 mW / 0.62 dBm
	Module temperature high alarm threshold   : 80.00 degrees C / 176.00 degrees F
	Module temperature low alarm threshold    : -13.00 degrees C / 8.60 degrees F
	Module temperature high warning threshold : 75.00 degrees C / 167.00 degrees F
	Module temperature low warning threshold  : -8.00 degrees C / 17.60 degrees F
	Module voltage high alarm threshold       : 3.6000 V
	Module voltage low alarm threshold        : 2.9951 V
	Module voltage high warning threshold     : 3.5000 V
	Module voltage low warning threshold      : 3.0975 V
	Laser rx power high alarm threshold       : 0.1995 mW / -7.00 dBm
	Laser rx power low alarm threshold        : 0.0011 mW / -29.59 dBm
	Laser rx power high warning threshold     : 0.1585 mW / -8.00 dBm
	Laser rx power low warning threshold      : 0.0014 mW / -28.54 dBm
root@turris:~# ethtool -m eth2 raw on | hexdump -C
00000000  03 04 01 00 00 00 00 00  00 00 00 01 0d 00 14 c8  |................|
00000010  00 00 00 00 57 54 44 20  20 20 20 20 20 20 20 20  |....WTD         |
00000020  20 20 20 20 00 00 1c ad  52 54 58 4d 31 36 36 2d  |    ....RTXM166-|
00000030  34 30 31 2d 43 31 31 20  31 2e 31 20 05 1e 00 b9  |401-C11 1.1 ....|
00000040  00 0a 00 00 45 42 32 30  33 31 30 30 32 37 32 36  |....EB2031002726|
00000050  39 38 20 20 32 30 30 38  31 34 20 20 68 f0 02 02  |98  200814  h...|
00000060  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
*
00000100  50 00 f3 00 4b 00 f8 00  8c a0 74 ff 88 b8 78 ff  |P...K.....t...x.|
00000110  af c8 00 00 88 b8 00 00  b3 60 22 fa 8e 7b 2d 0f  |.........`"..{-.|
00000120  07 cb 00 0b 06 31 00 0e  00 00 00 00 00 00 00 00  |.....1..........|
00000130  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000140  00 00 00 00 3f 80 00 00  00 00 00 00 01 00 00 00  |....?...........|
00000150  01 00 00 00 01 00 00 00  01 00 00 00 00 00 00 ec  |................|
00000160  2e 40 80 7b 1a 90 4f ec  00 ab 53 eb 00 00 11 c5  |.@.{..O...S.....|
00000170  00 00 01 69 00 00 00 00  e3 00 00 00 00 00 00 00  |...i............|
00000180  03 ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
00000190  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
*
000001b0  ff ff ff ff ff ff ff ff  ff ff ff ff 60 ff ff ff  |............`...|
000001c0  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
*
00000200
root@turris:~# uname -a
Linux turris 5.15.135 #0 SMP Mon Oct 16 11:41:56 2023 armv7l GNU/Linux

I know the SFP module works as it all works when using with the router provided by my ISP.

It’s the first time I have to deal with Fiber so happy to provide any other information but I’m quite lost on what I would need to look into next to verify what works and what doesn’t.

I am on kernel 5.15.62

Thank you!!

Post the output of:

ethtool eth2

or

dmesg | grep "eth2:"

Your module is detected now we need to check if it gets link

Hi @AreYouLoco,

Here is the output:

root@turris:~# ethtool eth2
Settings for eth2:
	Supported ports: [ FIBRE ]
	Supported link modes:   1000baseX/Full
	Supported pause frame use: Symmetric
	Supports auto-negotiation: Yes
	Supported FEC modes: Not reported
	Advertised link modes:  1000baseX/Full
	Advertised pause frame use: Symmetric
	Advertised auto-negotiation: Yes
	Advertised FEC modes: Not reported
	Speed: 1000Mb/s
	Duplex: Full
	Port: FIBRE
	PHYAD: 0
	Transceiver: internal
	Auto-negotiation: on
	Supports Wake-on: d
	Wake-on: d
	Link detected: no
root@turris:~# dmesg | grep "eth2:"
[    1.837818] mvneta f1034000.ethernet eth2: Using device tree mac address d8:58:d7:01:fc:af
[    8.377210] mvneta f1034000.ethernet eth2: switched to inband/1000base-x link mode
[   11.371343] mvneta f1034000.ethernet eth2: configuring for inband/1000base-x link mode

Thanks for the help!

Is your fiber connected? :slight_smile:

What do you mean by connected? If you mean, plugged into the router and the other end of the fiber as well, then yes. It works if I unplug the fiber from my Turris router and plug it into my ISP-provided router (with a reboot of the routers each time).

Ok post the output of:

cat /sys/kernel/debug/gpio

And

cat /sys/kernel/debug/sfp/state

While the fiber is physically connected to Omnia

root@turris:~# cat /sys/kernel/debug/gpio
gpiochip0: GPIOs 0-31, parent: platform/f1018100.gpio, f1018100.gpio:

gpiochip1: GPIOs 32-59, parent: platform/f1018140.gpio, f1018140.gpio:

gpiochip3: GPIOs 494-503, parent: pci/0000:01:00.0, ath9k-phy1:
 gpio-502 (                    |ath9k-phy1          ) out lo

gpiochip2: GPIOs 504-511, parent: i2c/8-0071, 8-0071, can sleep:
 gpio-504 (                    |tx-fault            ) in  lo IRQ
 gpio-505 (                    |tx-disable          ) out lo
 gpio-506 (                    |rate-select0        ) in  hi
 gpio-507 (                    |los                 ) in  hi IRQ
 gpio-508 (                    |mod-def0            ) in  lo IRQ ACTIVE LOW
root@turris:~# cat /sys/kernel/debug/sfp/state
Module state: present
Module probe attempts: 0 0
Device state: up
Main state: wait_los
Fault recovery remaining retries: 5
PHY probe remaining retries: 12
moddef0: 1
rx_los: 1
tx_fault: 0
tx_disable: 0

So your LOS signal is in high. That might mean that you didn’t connect the fiber or it is inverted as with my SFP. Kernel patch might be needed. I did build kernel for myself lately so I might build it for you in free time. Just to test that hipothesis out. And if it works then ask Turris guys to include it in TurrisOS.

Is there any other SFP stick that would fit the requirement of my ISP and still would be compatible with the Turris? (Remember I know nothing about Fiber. All I could gather it’s the cable is SC.)

Ask your ISP. Mine sold me a preconfigured stick.

https://wiki.turris.cz/en/public/sfp

Edit: @luhenry but wait did you take the SFP module out of ISP router or ISP router has already SC connector and its some random SFP module that you just happen to have. I ask because there are different SFP technologies GPON/EPON AON etc. And your ISP has to provision that stick on their OLT. Configure PLOAM password or provision it based on vendor and serial number. Depends on ISP.

And you are on 5.15.135 :wink:

And you are on 5.15.135 :wink:

Yep, bad copy/pasting, sorry about that.

but wait did you take the SFP module out of ISP router or ISP router has already SC connector and its some random SFP module that you just happen to have.

It’s the SFP module that’s in my ISP-provided router. My ISP is Free in France, and I have the Freebox Pop Fibre model (looking for a technical spec of the router itself)