Hi!

I've got some issues bringing up copper SFPs in a BananaPi BPI-R4 runnig
the latest OpenWrt master. Using the original Firmware pre-installed on
the BPI-R4 makes the modules work as expected:

I've tested with a HPE J8177C 1GBASE-T module as well as with a FS
SFP-10G-T module.

Any ideas what could be wrong here?

Here are the debug log outputs:

HPE J8177C 1GBASE-T with original BPI-R4 firmware:
-----------------------------------------------------------------------------------------------------------------------
[  364.132844] sfp sfp@0: SM: enter empty:up:down event insert
[  364.138423] sfp sfp@0: SM: exit probe:up:down
[  364.451649] sfp sfp@0: SM: enter probe:up:down event timeout
[ 364.468195] sfp sfp@0: module DELTA LCP-1250RJ3SR-CV rev 0000 sn CN69HGQ0JR dc 160919
[  364.477669] sfp sfp@0: sfp: support mode 00,00000000,00006070
[  364.483408] sfp sfp@0: tx disable 1 -> 0
[  364.487340] sfp sfp@0: SM: exit present:up:wait
[  364.539645] sfp sfp@0: SM: enter present:up:wait event timeout
[ 364.545547] sfp sfp@0: probing phy device through the [MDIO_I2C_MARVELL_C22] protocol
[  364.559727] sfp sfp@0: CL22 PHY device [0x0141:0x0cc2] found!
[  364.565472] sfp sfp@0: CL22 PHY driver [Marvell 88E1111] found!
[  364.571385] sfp sfp@0: phy: support mode 00,00000000,000062ff
[ 364.577131] mtk_soc_eth 15100000.ethernet eth2: requesting link mode inband/sgmii with support 00,00000000,000062ea [ 364.587554] mtk_soc_eth 15100000.ethernet eth2: switched to inband/sgmii link mode [ 364.660187] mtk_soc_eth 15100000.ethernet eth2: PHY [i2c:sfp@0:16] driver [Marvell 88E1111]
[  364.669071] sfp sfp@0: SM: exit present:up:link_up
[ 364.669241] mtk_soc_eth 15100000.ethernet eth2: resolve link status: system iface=0, line iface=0 [ 364.682719] mtk_soc_eth 15100000.ethernet eth2: resolve link status: system iface=0, line iface=0
-----------------------------------------------------------------------------------------------------------------------


HPE J8177C 1GBASE-T with latest master:
-----------------------------------------------------------------------------------------------------------------------
[   81.112792] sfp sfp1: mod-def0 0 -> 1
[   81.116464] sfp sfp1: SM: enter empty:up:down event insert
[   81.121951] sfp sfp1: SM: exit probe:up:down
[   81.431914] sfp sfp1: SM: enter probe:up:down event timeout
[ 81.448776] sfp sfp1: module DELTA LCP-1250RJ3SR-CV rev 0000 sn CN69HGQ0JR dc 160919
[   81.458173] sfp sfp1: tx disable 1 -> 0
[   81.462023] sfp sfp1: SM: exit present:up:wait
[   81.471923] sfp sfp1: los 0 -> 1
[   81.475142] sfp sfp1: SM: enter present:up:wait event los_high
[   81.480964] sfp sfp1: SM: exit present:up:wait
[   81.521911] sfp sfp1: SM: enter present:up:wait event timeout
[ 81.554779] mtk_soc_eth 15100000.ethernet eth2: validation with support 00,00000000,00000000,00000000 failed: -EINVAL
[   81.565458] sfp sfp1: sfp_add_phy failed: -EINVAL
[   81.570155] sfp sfp1: SM: exit present:up:fail
-----------------------------------------------------------------------------------------------------------------------

FS SFP-10G-T with original BPI-R4 firmware:
-----------------------------------------------------------------------------------------------------------------------
[   82.898139] sfp sfp@0: SM: exit probe:up:down
[   83.207138] sfp sfp@0: SM: enter probe:up:down event timeout
[ 83.223695] sfp sfp@0: module FS SFP-10G-T rev sn F2030582912 dc 200803
[   83.233170] sfp sfp@0: sfp: support mode 00,00000800,00006040
[ 83.238917] mtk_soc_eth 15100000.ethernet eth2: requesting link mode inband/10gbase-kr with support 00,00000800,00006440
[   83.260742] sfp sfp@0: tx disable 1 -> 0
[   83.264671] sfp sfp@0: SM: exit present:up:wait
[   83.319136] sfp sfp@0: SM: enter present:up:wait event timeout
[ 83.324965] sfp sfp@0: probing phy device through the [MDIO_I2C_NONE] protocol
[   83.332182] sfp sfp@0: SM: exit present:up:link_up
[ 83.343148] mtk_soc_eth 15100000.ethernet eth2: resolve link status: system iface=0
[   83.363591] sfp sfp@0: SM: enter present:up:link_up event los_high
[   83.369771] sfp sfp@0: SM: exit present:up:wait_los
-----------------------------------------------------------------------------------------------------------------------

FS SFP-10G-T with latest master:
-----------------------------------------------------------------------------------------------------------------------
[  448.977154] sfp sfp1: tx-fault 1 -> 0
[  448.980834] sfp sfp1: SM: enter empty:up:down event tx_clear
[  448.986494] sfp sfp1: SM: exit empty:up:down
[  448.990769] sfp sfp1: mod-def0 0 -> 1
[  448.994426] sfp sfp1: SM: enter empty:up:down event insert
[  448.999901] sfp sfp1: SM: exit probe:up:down
[  449.301913] sfp sfp1: SM: enter probe:up:down event timeout
[ 449.318529] sfp sfp1: module FS SFP-10G-T rev sn F2030582912 dc 200803
[  449.327923] sfp sfp1: tx disable 1 -> 0
[  449.331770] sfp sfp1: SM: exit present:up:wait
[ 449.362827] hwmon hwmon2: temp1_input not attached to any thermal zone
[  453.351915] sfp sfp1: SM: enter present:up:wait event timeout
[  480.673948] sfp sfp1: SM: exit present:up:init_phy
[  480.731913] sfp sfp1: SM: enter present:up:init_phy event timeout
-----------------------------------------------------------------------------------------------------------------------

Thanks,
Martin

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to