BPi-R4 SFP+ WAN Port with Huawei MA5671A GPON SFP

I use upstream OpenWrt 25.12.0-rc1

Thanks for patch, will check it on archlinux from sd card

The linux package is rebuild with Frank’s latest changes

1 Like

I’ve tested it, unfortunately, it doesn’t work, looks like sfp_quirk_2500basex quirk doesn’t work

[   30.307951] sfp sfp1: Detected broken RTL8672/RTL9601C emulated EEPROM
[   30.314506] sfp sfp1: Switching to reading EEPROM to one byte at a time
[   30.465294] sfp sfp1: module HUAWEI           MA5671A          rev 0000 sn 48575443DAB849AA dc 180720
[   30.474729] mtk_soc_eth 15100000.ethernet end2: autoneg setting not compatible with PCS
[   30.499919] sfp sfp1: skipping hwmon device registration
[   30.505235] sfp sfp1: diagnostic EEPROM area cannot be read atomically to guarantee data coherency

ethtool -m end2
	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)                              : 20km
	Length (OM2)                              : 0m
	Length (OM1)                              : 0m
	Length (Copper or Active cable)           : 0m
	Length (OM3)                              : 0m
	Laser wavelength                          : 1310nm
	Vendor name                               : HUAWEI
	Vendor OUI                                : 00:00:00
	Vendor PN                                 : MA5671A
	Vendor rev                                : 0000
	Option values                             : 0x00 0x1a
	Option                                    : TX_DISABLE implemented
	BR margin max                             : 0%
	BR margin min                             : 0%
	Vendor SN                                 : 48575443DAB849AA
	Date code                                 : 180720
	Optical diagnostics support               : Yes
	Laser bias current                        : 0.000 mA
	Laser output power                        : 0.0001 mW / -40.00 dBm
	Receiver signal average optical power     : 0.0331 mW / -14.80 dBm
	Module temperature                        : 58.24 degrees C / 136.83 degrees F
	Module voltage                            : 3.3070 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             : On
	Laser output power low alarm              : Off
	Laser output power high warning           : On
	Laser output power low warning            : Off
	Module temperature high alarm             : On
	Module temperature low alarm              : Off
	Module temperature high warning           : On
	Module temperature low warning            : Off
	Module voltage high alarm                 : On
	Module voltage low alarm                  : Off
	Module voltage high warning               : On
	Module voltage low warning                : Off
	Laser rx power high alarm                 : On
	Laser rx power low alarm                  : Off
	Laser rx power high warning               : On
	Laser rx power low warning                : Off
	Laser bias current high alarm threshold   : 0.000 mA
	Laser bias current low alarm threshold    : 0.000 mA
	Laser bias current high warning threshold : 0.000 mA
	Laser bias current low warning threshold  : 0.000 mA
	Laser output power high alarm threshold   : 0.0000 mW / -inf dBm
	Laser output power low alarm threshold    : 0.0000 mW / -inf dBm
	Laser output power high warning threshold : 0.0000 mW / -inf dBm
	Laser output power low warning threshold  : 0.0000 mW / -inf dBm
	Module temperature high alarm threshold   : 0.00 degrees C / 32.00 degrees F
	Module temperature low alarm threshold    : 0.00 degrees C / 32.00 degrees F
	Module temperature high warning threshold : 0.00 degrees C / 32.00 degrees F
	Module temperature low warning threshold  : 0.00 degrees C / 32.00 degrees F
	Module voltage high alarm threshold       : 0.0000 V
	Module voltage low alarm threshold        : 0.0000 V
	Module voltage high warning threshold     : 0.0000 V
	Module voltage low warning threshold      : 0.0000 V
	Laser rx power high alarm threshold       : 0.0000 mW / -inf dBm
	Laser rx power low alarm threshold        : 0.0000 mW / -inf dBm
	Laser rx power high warning threshold     : 0.0000 mW / -inf dBm
	Laser rx power low warning threshold      : 0.0000 mW / -inf dBm

Then try dropping it by changing to SFP_QUIRK_F and drop the param. I do not have this device so cannot test it.

I guess it works in openwrt because some newer patches in phylink are missing which may break…also noticed that the 2500baseX for my 2.5g copper sfp did not worked on last try.