Ma5671A SFP issues on turris os 5.0.3

Thanks for feedback and also further test of MA5671A with the stock firmware.

ethtool show this

root@turris:~# ethtool eth2
Settings for eth2:
        Supported ports: [ MII ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Supported pause frame use: Symmetric
        Supports auto-negotiation: Yes
        Supported FEC modes: Not reported
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Advertised pause frame use: Symmetric
        Advertised auto-negotiation: Yes
        Advertised FEC modes: Not reported
        Speed: 10Mb/s
        Duplex: Half
        Port: MII
        PHYAD: 0
        Transceiver: internal
        Auto-negotiation: on
        Supports Wake-on: d
        Wake-on: d
        Link detected: no

And MA5671A with stock firmware?

no working with ma5671a with stock firmware because says a error form SFP eeprom and gets stuck

[ 68.242013] sfp sfp: failed to read EEPROM: -6

1 Like

Thanks. It’s my experience with TOS 3 and kernel 4.4.

Does

produce some output?

The same experience as Turris OS 5.03 and Turris HBD

I was afraid of this.

Nothing only shows

Cannot get module EEPROM information: No such device

Im going to test in a turris mox too but shows the same behavior

probably wrong syntax, try instead (mind that eth2 is the WAN port on the O, no clue about the M)

  • ethtool -m eth2
  • ethtool -m eth2 raw on | hexdump -C

Stock MA5671A doesnt show anything

from the other sfp here are the logs
MA5671A with HL23346 Firmware

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                                  : 0x03 (NRZ)
        BR, Nominal                               : 1000MBd
        Rate identifier                           : 0x00 (unspecified)
        Length (SMF,km)                           : 40km
        Length (SMF)                              : 25500m
        Length (50um)                             : 0m
        Length (62.5um)                           : 0m
        Length (Copper)                           : 0m
        Length (OM3)                              : 0m
        Laser wavelength                          : 1310nm
        Vendor name                               : HUAWEI
        Vendor OUI                                : ac:9a:96
        Vendor PN                                 : MA5671A
        Vendor rev                                : 0001
        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                                 : 032WDY10J008153
        Date code                                 : 200723
        Optical diagnostics support               : Yes
        Laser bias current                        : 5.750 mA
        Laser output power                        : 0.0000 mW / -inf dBm
        Receiver signal average optical power     : 0.0991 mW / -10.04 dBm
        Module temperature                        : 26.85 degrees C / 80.33 degrees F
        Module voltage                            : 3.2822 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              : 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   : 60.000 mA
        Laser bias current low alarm threshold    : 0.000 mA
        Laser bias current high warning threshold : 50.000 mA
        Laser bias current low warning threshold  : 0.000 mA
        Laser output power high alarm threshold   : 2.0000 mW / 3.01 dBm
        Laser output power low alarm threshold    : 0.5000 mW / -3.01 dBm
        Laser output power high warning threshold : 2.0000 mW / 3.01 dBm
        Laser output power low warning threshold  : 0.5000 mW / -3.01 dBm
        Module temperature high alarm threshold   : 85.00 degrees C / 185.00 degrees F
        Module temperature low alarm threshold    : -40.00 degrees C / -40.00 degrees F
        Module temperature high warning threshold : 75.00 degrees C / 167.00 degrees F
        Module temperature low warning threshold  : -20.00 degrees C / -4.00 degrees F
        Module voltage high alarm threshold       : 3.6300 V
        Module voltage low alarm threshold        : 2.9700 V
        Module voltage high warning threshold     : 3.4650 V
        Module voltage low warning threshold      : 3.1350 V
        Laser rx power high alarm threshold       : 0.1995 mW / -7.00 dBm
        Laser rx power low alarm threshold        : 0.0010 mW / -30.00 dBm
        Laser rx power high warning threshold     : 0.1000 mW / -10.00 dBm
        Laser rx power low warning threshold      : 0.0020 mW / -26.99 dBm
root@turris:~# ethtool -m eth2 raw on | hexdump -C
00000000  03 04 01 00 00 00 00 00  00 00 00 03 0a 00 28 ff  |..............(.|
00000010  00 00 00 00 48 55 41 57  45 49 20 20 20 20 20 20  |....HUAWEI      |
00000020  20 20 20 20 00 ac 9a 96  4d 41 35 36 37 31 41 20  |    ....MA5671A |
00000030  20 20 20 20 20 20 20 20  30 30 30 31 05 1e ff c0  |        0001....|
00000040  00 1a 00 00 30 33 32 57  44 59 31 30 4a 30 30 38  |....032WDY10J008|
00000050  31 35 33 20 32 30 30 37  32 33 20 20 6c f0 05 6e  |153 200723  l..n|
00000060  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
00000080  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000100  55 00 d8 00 4b 00 ec 00  8d cc 74 04 87 5a 7a 76  |U...K.....t..Zzv|
00000110  75 30 00 00 61 a8 00 00  4e 20 13 88 4e 20 13 88  |u0..a...N ..N ..|
00000120  07 cb 00 0a 03 e8 00 14  00 00 00 00 00 00 00 00  |................|
00000130  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000150  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 a1  |................|
00000160  1b d9 80 31 0b 3b 00 00  04 05 00 00 00 00 00 00  |...1.;..........|
00000170  01 00 00 00 01 80 00 00  00 00 00 00 00 00 00 00  |................|
00000180  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000200

ZISA OP151S

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 0x02 0x00 0x00 0x00 0x00 0x00
    Transceiver type                          : Ethernet: 1000BASE-LX
    Encoding                                  : 0x03 (NRZ)
    BR, Nominal                               : 1200MBd
    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                               : T&W_____________
    Vendor OUI                                : 00:00:00
    Vendor PN                                 : TW2362H-CDEL-TW_
    Vendor rev                                : V1.0
    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                                 : 414C434CF8583520
    Date code                                 : 20150525
    Optical diagnostics support               : Yes
    Laser bias current                        : 4.914 mA
    Laser output power                        : 2.0000 mW / 3.01 dBm
    Receiver signal average optical power     : 0.0000 mW / -inf dBm
    Module temperature                        : 26.85 degrees C / 80.33 degrees F
    Module voltage                            : 3.3000 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              : 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                  : On
    Laser rx power high warning               : Off
    Laser rx power low warning                : On
    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  : 3.000 mA
    Laser output power high alarm threshold   : 3.1622 mW / 5.00 dBm
    Laser output power low alarm threshold    : 1.0000 mW / 0.00 dBm
    Laser output power high warning threshold : 2.8183 mW / 4.50 dBm
    Laser output power low warning threshold  : 1.1220 mW / 0.50 dBm
    Module temperature high alarm threshold   : 100.00 degrees C / 212.00 degrees F
    Module temperature low alarm threshold    : -78.00 degrees C / -108.40 degrees F
    Module temperature high warning threshold : 85.00 degrees C / 185.00 degrees F
    Module temperature low warning threshold  : -88.00 degrees C / -126.40 degrees F
    Module voltage high alarm threshold       : 3.6000 V
    Module voltage low alarm threshold        : 3.0000 V
    Module voltage high warning threshold     : 3.5000 V
    Module voltage low warning threshold      : 3.1000 V
    Laser rx power high alarm threshold       : 0.1995 mW / -7.00 dBm
    Laser rx power low alarm threshold        : 0.0015 mW / -28.24 dBm
    Laser rx power high warning threshold     : 0.1584 mW / -8.00 dBm
    Laser rx power low warning threshold      : 0.0020 mW / -26.99 dBm


root@turris:~# ethtool -m eth2 raw on | hexdump -C
00000000  03 04 01 00 00 00 02 00  00 00 00 03 0c 00 14 c8  |................|
00000010  00 00 00 00 54 26 57 00  00 00 00 00 00 00 00 00  |....T&W.........|
00000020  00 00 00 00 00 00 00 00  54 57 32 33 36 32 48 2d  |........TW2362H-|
00000030  43 44 45 4c 2d 54 57 00  56 31 2e 30 05 1e 00 ab  |CDEL-TW.V1.0....|
00000040  00 1a 00 00 34 31 34 43  34 33 34 43 46 38 35 38  |....414C434CF858|
00000050  33 35 32 30 32 30 31 35  30 35 32 35 68 f0 01 76  |352020150525h..v|
00000060  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000100  64 00 b2 00 55 00 a8 00  8c a0 75 30 88 b8 79 18  |d...U.....u0..y.|
00000110  af c8 00 00 88 b8 05 dc  7b 86 27 10 6e 17 2b d4  |........{.'.n.+.|
00000120  07 cb 00 0f 06 30 00 14  00 00 00 00 00 00 00 00  |.....0..........|
00000130  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000150  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 34  |...............4|
00000160  1b d9 80 e8 09 99 4e 20  00 00 00 00 00 00 0b 00  |......N ........|
00000170  01 40 00 00 01 40 00 00  00 00 00 00 00 00 00 00  |.@...@..........|
00000180  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
000001b0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 31  |...............1|
000001c0  32 33 34 35 36 37 38 39  00 00 00 00 00 00 00 00  |23456789........|
000001d0  00 00 00 00 00 00 00 31  32 33 34 35 36 00 00 00  |.......123456...|
000001e0  00 00 00 00 02 00 00 00  00 00 00 00 00 00 00 00  |................|
000001f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000200

G-010S-A

 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 0x02 0x00 0x00 0x00 0x00 0x20
        Transceiver type                          : Ethernet: 1000BASE-LX
        Encoding                                  : 0x03 (NRZ)
        BR, Nominal                               : 3200MBd
        Rate identifier                           : 0x00 (unspecified)
        Length (SMF,km)                           : 40km
        Length (SMF)                              : 25500m
        Length (50um)                             : 0m
        Length (62.5um)                           : 0m
        Length (Copper)                           : 0m
        Length (OM3)                              : 0m
        Laser wavelength                          : 1310nm
        Vendor name                               : ALCATELLUCENT
        Vendor OUI                                : 20:20:20
        Vendor PN                                 : 3FE46541AA
        Vendor rev                                : 0001
        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                                 : ALCLF84EF9C1_pro
        Date code                                 : 170418_p

 ethtool -m eth2 raw on | hexdump -C
00000000  03 04 01 00 00 00 02 00  00 00 00 03 20 00 28 ff  |............ .(.|
00000010  00 00 00 00 41 4c 43 41  54 45 4c 4c 55 43 45 4e  |....ALCATELLUCEN|
00000020  54 20 20 20 20 20 20 20  33 46 45 34 36 35 34 31  |T       3FE46541|
00000030  41 41 20 20 20 20 20 20  30 30 30 31 05 1e ff dc  |AA      0001....|
00000040  00 1a 00 00 41 4c 43 4c  46 38 34 45 46 39 43 31  |....ALCLF84EF9C1|
00000050  00 70 72 6f 31 37 30 34  31 38 00 70 68 f0 05 73  |.pro170418.ph..s|
00000060  41 4c 43 41 54 45 4c 20  33 46 45 34 36 35 34 31  |ALCATEL 3FE46541|
00000070  41 41 30 31 32 42 56 4c  33 41 38 4a 4e 41 41 97  |AA012BVL3A8JNAA.|
00000080  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000100

Carlitoxpro CPOGS03-0490 V2 (realtek)

     ethtool -m eth2
            Identifier                                : 0x03 (SFP)
     ethtool -m eth2 raw on | hexdump -C
    00000000  03 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
    00000010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
    00000020  20 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  | ...............|
    *
    00000040  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
    00000050  38 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |8...............|
    00000060  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
    *
    00000080  ff 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
    *
    00000100

There is basically nothing in the eprom that would make the module work.


For the other modules it is insofar promising that the eprom is accessible and contains operational data.

You would have to look into the kernel log what each modules produces, reckon that

could be an issue if such is required on the subscriber line.

hello

i made some test on another router (mikrotilk) the module works well but need to set manually the interface speed.

How i can force the speed and the autoneg off? i tried with ethtool -s eth2 1000 autoneg off duplex full but still goes a 10mbps halfduplex.

My ISP also confirmed work MA5671A with MikroTik.

Any changes on HBS o HBT branch for improve SFP support? i tested the modified MA5671a on a Mikrotik router and works well

Hello

I have tested on turris 5.1.3 G-010S-P module too but doesnt works @Pepe what is the stable version that includes 5.4 kernel to test it ? only can be tested it on the HBD branch?

Anonym, who deleted his account is right. SFP modules that are using chipsets from Realtek RTL8672 or RTL9601 has broken the EEPROM emulator, which returns zeroes instead of EEPROM content. There is no way to get fix the emulator, however, we have two SFP modules based on these chipsets in our offices.

Our kernel developers are right now looking if there is a possibility to have these modules working in Turris OS and in the upstream kernel. I don’t want to promise anything. Because there is a going be a big chance that the patch will break others SFP as well. We will see about a response in kernel soon!

2 Likes

For reference, here goes patch series which was sent to kernel.

It was decided there, these SFP modules are not going to be supported.

1 Like

i have datasheet pdf for the carlitoxx v2 based on chip rtl if help something but doesnt matter to me because i prefer to test other SFP module like the g-010s-p or ma5671a,

about the kernel you have any image to test it if works on the turris with MA5671a and g-010s-p modules? because i can test it

here is the PDF with eeprom table if helps that i found in internet