Ma5671A SFP issues on turris os 5.0.3

Im having issues with this module. the turris is on verion 5.0.3 and reconigzes it but doesnt wake up eth2 interface. My sfp module have unlocked Uboot and seted on sgmII 1gbit . the module works without issues on a unmanaged switch and connected via lan to turris.

here is the log

596.872463] sfp sfp: module HUAWEI MA5671A rev 0001 sn J472004773 dc 23-07-20 [ 596.881832] sfp sfp: SC connector, encoding NRZ, nominal bitrate 1.0Gbps +0% -0% [ 596.889420] sfp sfp: 1000BaseSX- 1000BaseLX- 1000BaseCX- 1000BaseT- 100BaseTLX- 1000BaseFX- BaseBX10- BasePX- [ 596.899558] sfp sfp: 10GBaseSR- 10GBaseLR- 10GBaseLRM- 10GBaseER- [ 596.905891] sfp sfp: Wavelength 1310nm, fiber lengths: [ 596.911215] sfp sfp: 9µm SM : 40km [ 596.915330] sfp sfp: 62.5µm MM OM1: unsupported/unspecified [ 596.921103] sfp sfp: 50µm MM OM2: unsupported/unspecified [ 596.926867] sfp sfp: 50µm MM OM3: unsupported/unspecified [ 596.932649] sfp sfp: 50µm MM OM4: unsupported/unspecified [ 596.938409] sfp sfp: Options: txdisable, txfault, los+ [ 596.943752] sfp sfp: Diagnostics: ddm, intcal, rxpwravg [ 596.949165] sfp sfp: SFP module encoding does not support 8b10b nor 64b66b [ 644.038670] IPv6: ADDRCONF(NETDEV_UP): eth2.24: link is not ready [ 644.093506] mvneta f1034000.ethernet eth2: configuring for SGMII/sgmii link mode [ 644.101051] IPv6: ADDRCONF(NETDEV_UP): eth2: link is not ready

Would you please use HBD branch in your case? In the HBD, there is kernel 5.4, which includes SFP support for module quirks.

I would like also use MA5671A SFP. If you try HBD please for feedback.

i updated to HBD branch

I tested several GPON SFP modules

Doesnt Work

ZISA op151s

[ 241.073169] sfp sfp: module T&W TW2362H-CDEL-TW rev V1.0 sn 414C434CF8583520 dc 20150525 [ 241.081295] mvneta f1034000.ethernet eth2: switched to inband/1000base-x link mode [ 386.455415] mvneta f1034000.ethernet eth2: configuring for inband/1000base-x link mode

MA5671a (Unlocked Modified with HL23446 Firmware)

[ 1002.333169] sfp sfp: module HUAWEI MA5671A rev 0001 sn 032WDY10J008153 dc 200723 [ 1002.342512] sfp sfp: module address swap to access page 0xA2 is not supported. [ 1002.349760] mvneta f1034000.ethernet eth2: switched to inband/2500base-x link mode [ 1002.444654] sfp sfp: module transmit fault indicated

CPG0S03-0490 V2.0 (realtek chip based) need to generate eeprom

` 1170.813170] sfp sfp: EEPROM base structure checksum failure: 0x43 != 0x00

[ 1170.819979] sfp EE: 00000000: 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 …
[ 1170.828711] sfp EE: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 …
[ 1170.837434] sfp EE: 00000020: 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 …
[ 1170.846155] sfp EE: 00000030: 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 …
[ 1170.854876] sfp EE: 00000040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 …
[ 1170.863600] sfp EE: 00000050: 38 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 8…`

Nokia Alcatel G-010S-A

[  106.096123] sfp sfp: module ALCATELLUCENT    3FE46541AA       rev 0001 sn ALCLF84EF9C1 dc 170418
[  106.104966] sfp sfp: Unknown/unsupported extended compliance code: 0x20
[  106.111604] mvneta f1034000.ethernet eth2: switched to inband/2500base-x link mode

This module works

DFP-34G-2C2 (zte chip based)

    `Jul 23 19:04:51 turris kernel: [  553.453173] sfp sfp: module OEM              DFP-34G-2C2      rev 000 sn 181002000106   dc 181016
Jul 23 17:04:51 turris netifd: Network device 'eth2' link is up
Jul 23 17:04:51 turris netifd: Network alias 'eth2' link is up
Jul 23 17:04:51 turris netifd: Interface 'wan6' has link connectivity 
Jul 23 17:04:51 turris netifd: Interface 'wan6' is setting up now
Jul 23 17:04:51 turris netifd: Interface 'wan6' is now up
Jul 23 17:04:51 turris netifd: Interface 'wan' has link connectivity 
Jul 23 19:04:51 turris kernel: [  553.521900] mvneta f1034000.ethernet eth2: Link is Up - 1Gbps/Full - flow control rx/tx`

I can test more modules (i got too G-010s-a and a G-010s-b) and the next week im going to test in the MA5671a with stock firmware

1 Like

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?