[BPI-R3] Which GPON ONU is working?

Stange thing, as he did have correct eeprom reading before…

Try an image you tried earlier to see if that one does read the eeprom correctly. With the wrong eeprom reading we cannot continue…

There won’t be any quirk active, as they all check the vendor and model from eeprom.

lets try latest snapshot then…

What Frank said, even with last image, it first reads correctly, later it is scrambled.

with latest snapshot

root@OpenWrt:/# logread | grep 'sfp'
Fri Sep  1 10:43:15 2023 kern.info kernel: [   11.478703] sfp sfp-1: Host maximum power 3.0W
Fri Sep  1 10:43:15 2023 kern.info kernel: [   11.483826] sfp sfp-2: Host maximum power 3.0W
Fri Sep  1 10:43:15 2023 kern.info kernel: [   11.819888] sfp sfp-1: module ALCATELLUCENT    G010SP           rev 10   sn ALCLFAB44018     dc 161205
Fri Sep  1 10:43:17 2023 kern.info kernel: [   19.033990] mt7530-mdio mdio-bus:1f sfp2: configuring for inband/2500base-x link mode
Fri Sep  1 10:43:17 2023 kern.info kernel: [   19.043569] br-lan: port 5(sfp2) entered blocking state
Fri Sep  1 10:43:17 2023 kern.info kernel: [   19.048781] br-lan: port 5(sfp2) entered disabled state
Fri Sep  1 10:43:17 2023 kern.info kernel: [   19.056136] device sfp2 entered promiscuous mode

OMG no ethtool, i have to create an image with it…wait

root@OpenWrt:/# logread | grep 'sfp'
Fri Sep  1 10:43:15 2023 kern.info kernel: [   11.539818] sfp sfp-1: Host maximum power 3.0W
Fri Sep  1 10:43:15 2023 kern.info kernel: [   11.545045] sfp sfp-2: Host maximum power 3.0W
Fri Sep  1 10:43:15 2023 kern.info kernel: [   11.879820] sfp sfp-1: module ALCATELLUCENT    G010SP           rev 10   sn ALCLFAB44018     dc 161205
Fri Sep  1 10:43:19 2023 kern.info kernel: [   20.740767] mt7530-mdio mdio-bus:1f sfp2: configuring for inband/2500base-x link mode
Fri Sep  1 10:43:19 2023 kern.info kernel: [   20.750519] br-lan: port 5(sfp2) entered blocking state
Fri Sep  1 10:43:19 2023 kern.info kernel: [   20.755742] br-lan: port 5(sfp2) entered disabled state
Fri Sep  1 10:43:19 2023 kern.info kernel: [   20.763262] device sfp2 entered promiscuous mode



root@OpenWrt:/# ethtool -m eth1
Offset          Values
------          ------
0x0000:         03 04 01 00 00 00 00 00 00 00 00 03 19 00 00 c8
0x0010:         00 00 00 00 40 40 42 40 40 41 00 00 00 00 00 00
0x0020:         00 20 20 20 00 00 00 00 46 00 11 10 41 50 00 00
0x0030:         00 00 00 00 00 00 00 00 30 30 20 20 01 14 00 00
0x0040:         00 1a 00 00 40 4c 43 40 44 40 40 00 04 10 00 10
0x0050:         00 00 00 00 31 34 30 30 30 31 20 20 68 f0 05 00
0x0060:         00 00 00 00 00 00 00 20 20 00 00 20 20 20 20 20
0x0070:         00 00 20 20 20 00 00 00 20 00 20 00 00 00 00 00
0x0080:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0090:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x00a0:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x00b0:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x00c0:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x00d0:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x00e0:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x00f0:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0100:         64 00 ce 00 5f 00 d8 00 8c a0 75 30 88 b8 79 18
0x0110:         af c8 00 00 88 b8 00 00 7b 86 22 d0 6e 17 27 10
0x0120:         07 cb 00 0f 06 30 00 14 00 06 b5 03 43 22 00 00
0x0130:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0140:         00 00 00 00 3f 80 00 00 00 00 00 00 01 00 00 00
0x0150:         01 00 00 00 01 00 00 00 01 00 00 00 00 00 00 82
0x0160:         23 36 81 77 0f fd 00 01 00 01 ff ff ff ff 02 00
0x0170:         01 40 ff ff 01 40 00 00 70 00 00 00 00 00 00 00
0x0180:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0190:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x01a0:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x01b0:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46
0x01c0:         36 48 50 43 59 38 52 00 00 00 00 00 00 00 00 00
0x01d0:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x01e0:         00 00 00 00 00 00 00 ff 02 50 54 49 4e 91 5c 75
0x01f0:         74 00 00 00 00 00 00 00 00 00 00 00 00 41 41 31
root@OpenWrt:/#

why is it showing hex values ??

if i unplug/replug the module :

root@OpenWrt:/# [  469.530441] sfp sfp-1: module removed
[  477.139806] sfp sfp-1: module ALCATELLUCENT    G010SP           rev 10   sn ALCLFAB44018     dc 161205
[  477.214000] sfp sfp-1: module transmit fault indicated
[  482.620221] sfp sfp-1: module persistently indicates fault, disabling

Try this: https://easyupload.io/tkcbzo

I removed the halny quirk because it seems to be causing you more problems. and it will now print eveything, including debug prints

1 Like

Thanks @Dale

Bootlog : https://pastebin.com/QeevRE1q

root@OpenWrt:/# logread | grep 'sfp'
Fri Sep  1 21:45:53 2023 kern.info kernel: [   11.847351] sfp sfp-1: Host maximum power 3.0W
Fri Sep  1 21:45:53 2023 kern.info kernel: [   11.851830] sfp sfp-1: tx disable 1 -> 1
Fri Sep  1 21:45:53 2023 kern.info kernel: [   11.855755] sfp sfp-1: SM: enter empty:detached:down event insert
Fri Sep  1 21:45:53 2023 kern.info kernel: [   11.861834] sfp sfp-1: SM: exit probe:detached:down
Fri Sep  1 21:45:53 2023 kern.info kernel: [   11.866958] sfp sfp-1: SM: enter probe:detached:down event dev_attach
Fri Sep  1 21:45:53 2023 kern.info kernel: [   11.873396] sfp sfp-1: SM: exit probe:down:down
Fri Sep  1 21:45:53 2023 kern.info kernel: [   11.878306] sfp sfp-2: Host maximum power 3.0W
Fri Sep  1 21:45:53 2023 kern.info kernel: [   11.882762] sfp sfp-2: tx disable 1 -> 1
Fri Sep  1 21:45:53 2023 kern.info kernel: [   11.890305] sfp sfp-2: SM: enter empty:detached:down event dev_attach
Fri Sep  1 21:45:53 2023 kern.info kernel: [   11.896738] sfp sfp-2: SM: exit empty:down:down
Fri Sep  1 21:45:53 2023 kern.info kernel: [   12.169101] sfp sfp-1: SM: enter probe:down:down event timeout
Fri Sep  1 21:45:53 2023 kern.info kernel: [   12.204604] sfp sfp-1: module ALCATELLUCENT    G010SP           rev 10   sn ALCLFAB44018     dc 161205
Fri Sep  1 21:45:53 2023 kern.info kernel: [   12.214076] sfp sfp-1: SM: exit present:down:down
Fri Sep  1 21:45:58 2023 kern.info kernel: [   22.744560] mt7530-mdio mdio-bus:1f sfp2: configuring for inband/2500base-x link mode
Fri Sep  1 21:45:58 2023 kern.info kernel: [   22.754064] sfp sfp-2: SM: enter empty:down:down event dev_up
Fri Sep  1 21:45:58 2023 kern.info kernel: [   22.759879] sfp sfp-2: SM: exit empty:up:down
Fri Sep  1 21:45:58 2023 kern.info kernel: [   22.764716] br-lan: port 5(sfp2) entered blocking state
Fri Sep  1 21:45:58 2023 kern.info kernel: [   22.769986] br-lan: port 5(sfp2) entered disabled state
Fri Sep  1 21:45:58 2023 kern.info kernel: [   22.777570] device sfp2 entered promiscuous mode
Fri Sep  1 21:45:58 2023 kern.info kernel: [   22.795477] sfp sfp-1: SM: enter present:down:down event dev_up
Fri Sep  1 21:45:58 2023 kern.info kernel: [   22.801438] sfp sfp-1: tx disable 1 -> 0
Fri Sep  1 21:45:58 2023 kern.info kernel: [   22.805412] sfp sfp-1: SM: exit present:up:wait
Fri Sep  1 21:45:58 2023 kern.info kernel: [   22.875397] sfp sfp-1: SM: enter present:up:wait event timeout
Fri Sep  1 21:45:58 2023 kern.info kernel: [   22.881398] sfp sfp-1: SM: exit present:up:link_up
Fri Sep  1 21:46:18 2023 kern.info kernel: [   43.089666] sfp sfp-1: los 0 -> 1
Fri Sep  1 21:46:18 2023 kern.info kernel: [   43.092996] sfp sfp-1: SM: enter present:up:link_up event los_high
Fri Sep  1 21:46:18 2023 kern.info kernel: [   43.099182] sfp sfp-1: SM: exit present:up:wait_los
root@OpenWrt:/#




root@OpenWrt:/# logread | grep 'eth1'
Fri Sep  1 21:45:53 2023 kern.info kernel: [    1.120274] mtk_soc_eth 15100000.ethernet eth1: mediatek frame engine at 0xffffffc009680000, irq 136
Fri Sep  1 21:45:58 2023 kern.info kernel: [   22.786959] mtk_soc_eth 15100000.ethernet eth1: configuring for inband/2500base-x link mode
Fri Sep  1 21:45:58 2023 kern.info kernel: [   22.811682] br-wan: port 1(eth1) entered blocking state
Fri Sep  1 21:45:58 2023 kern.info kernel: [   22.816974] br-wan: port 1(eth1) entered disabled state
Fri Sep  1 21:45:58 2023 kern.info kernel: [   22.822759] device eth1 entered promiscuous mode
Fri Sep  1 21:45:58 2023 kern.info kernel: [   22.829352] br-wan: port 1(eth1) entered blocking state
Fri Sep  1 21:45:58 2023 kern.info kernel: [   22.834601] br-wan: port 1(eth1) entered forwarding state
Fri Sep  1 21:45:58 2023 kern.info kernel: [   23.586520] br-wan: port 1(eth1) entered disabled state


root@OpenWrt:/# ethtool eth1
Settings for eth1:
        Supported ports: [ FIBRE ]
        Supported link modes:   2500baseX/Full
                                1000baseX/Full
        Supported pause frame use: Symmetric Receive-only
        Supports auto-negotiation: Yes
        Supported FEC modes: Not reported
        Advertised link modes:  2500baseX/Full
        Advertised pause frame use: Symmetric Receive-only
        Advertised auto-negotiation: Yes
        Advertised FEC modes: Not reported
        Speed: 2500Mb/s
        Duplex: Full
        Auto-negotiation: on
        Port: FIBRE
        PHYAD: 0
        Transceiver: internal
        Current message level: 0x000000ff (255)
                               drv probe link timer ifdown ifup rx_err tx_err
        Link detected: no



root@OpenWrt:/# ethtool -m eth1
        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                               : 2500MBd
        Rate identifier                           : 0x00 (unspecified)
        Length (SMF,km)                           : 0km
        Length (SMF)                              : 20000m
        Length (50um)                             : 0m
        Length (62.5um)                           : 0m
        Length (Copper)                           : 0m
        Length (OM3)                              : 0m
        Laser wavelength                          : 276nm
        Vendor name                               : @@B@@A_______
        Vendor OUI                                : 00:00:00
        Vendor PN                                 : F___AP__________
        Vendor rev                                : 00
        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                                 : @LC@D@@_________
        Date code                                 : 140001
        Optical diagnostics support               : Yes
        Laser bias current                        : 6.246 mA
        Laser output power                        : 0.0001 mW / -40.00 dBm
        Receiver signal average optical power     : 0.0001 mW / -40.00 dBm
        Module temperature                        : 29.68 degrees C / 85.43 degrees F
        Module voltage                            : 3.3233 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  : 0.000 mA
        Laser output power high alarm threshold   : 3.1622 mW / 5.00 dBm
        Laser output power low alarm threshold    : 0.8912 mW / -0.50 dBm
        Laser output power high warning threshold : 2.8183 mW / 4.50 dBm
        Laser output power low warning threshold  : 1.0000 mW / 0.00 dBm
        Module temperature high alarm threshold   : 100.00 degrees C / 212.00 degrees F
        Module temperature low alarm threshold    : -50.00 degrees C / -58.00 degrees F
        Module temperature high warning threshold : 95.00 degrees C / 203.00 degrees F
        Module temperature low warning threshold  : -40.00 degrees C / -40.00 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@OpenWrt:/#
root@OpenWrt:/# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1504 qdisc mq state UP qlen 1000
    link/ether 8e:ed:11:03:87:5c brd ff:ff:ff:ff:ff:ff
    inet6 fe80::8ced:11ff:fe03:875c/64 scope link
       valid_lft forever preferred_lft forever
3: eth1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq master br-wan state DOWN qlen 1000
    link/ether 8e:ed:11:03:87:5d brd ff:ff:ff:ff:ff:ff
4: wan@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master br-wan state LOWERLAYERDOWN qlen 1000
    link/ether 8e:ed:11:03:87:5d brd ff:ff:ff:ff:ff:ff
5: lan1@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master br-lan state LOWERLAYERDOWN qlen 1000
    link/ether 8e:ed:11:03:87:5c brd ff:ff:ff:ff:ff:ff
6: lan2@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master br-lan state LOWERLAYERDOWN qlen 1000
    link/ether 8e:ed:11:03:87:5c brd ff:ff:ff:ff:ff:ff
7: lan3@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master br-lan state LOWERLAYERDOWN qlen 1000
    link/ether 8e:ed:11:03:87:5c brd ff:ff:ff:ff:ff:ff
8: lan4@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master br-lan state LOWERLAYERDOWN qlen 1000
    link/ether 8e:ed:11:03:87:5c brd ff:ff:ff:ff:ff:ff
9: sfp2@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master br-lan state LOWERLAYERDOWN qlen 1000
    link/ether 8e:ed:11:03:87:5c brd ff:ff:ff:ff:ff:ff
10: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether 00:0c:43:26:60:00 brd ff:ff:ff:ff:ff:ff
11: wlan1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether 8e:ed:11:03:87:5e brd ff:ff:ff:ff:ff:ff
17: br-lan: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN qlen 1000
    link/ether 8e:ed:11:03:87:5c brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.1/24 brd 192.168.1.255 scope global br-lan
       valid_lft forever preferred_lft forever
    inet6 fdee:7d2b:f512::1/60 scope global tentative noprefixroute
       valid_lft forever preferred_lft forever
18: br-wan: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN qlen 1000
    link/ether 8e:ed:11:03:87:5d brd ff:ff:ff:ff:ff:ff
    inet6 fe80::8ced:11ff:fe03:875d/64 scope link
       valid_lft forever preferred_lft forever
root@OpenWrt:/#

when i remove the G-010S-P and Plug the MA5671A

[  785.519036] sfp sfp-1: SM: enter present:up:wait_los event remove
[  785.525324] sfp sfp-1: module removed
[  785.528985] sfp sfp-1: tx disable 0 -> 1
[  785.532907] sfp sfp-1: SM: exit empty:up:down
[  806.891081] sfp sfp-1: mod-def0 0 -> 1
[  806.894847] sfp sfp-1: SM: enter empty:up:down event insert
[  806.900412] sfp sfp-1: SM: exit probe:up:down
[  807.201095] sfp sfp-1: SM: enter probe:up:down event timeout
[  807.208164] sfp sfp-1: SM: exit probe:up:down
[  807.313096] sfp sfp-1: SM: enter probe:up:down event timeout
[  807.320133] sfp sfp-1: SM: exit probe:up:down
[  807.425095] sfp sfp-1: SM: enter probe:up:down event timeout
[  807.432133] sfp sfp-1: SM: exit probe:up:down
[  807.445028] sfp sfp-1: los 1 -> 0
[  807.448335] sfp sfp-1: SM: enter probe:up:down event los_low
[  807.453980] sfp sfp-1: SM: exit probe:up:down
[  807.458358] sfp sfp-1: los 0 -> 1
[  807.461662] sfp sfp-1: SM: enter probe:up:down event los_high
[  807.467393] sfp sfp-1: SM: exit probe:up:down
[  807.537094] sfp sfp-1: SM: enter probe:up:down event timeout
[  807.544139] sfp sfp-1: SM: exit probe:up:down
[  807.649095] sfp sfp-1: SM: enter probe:up:down event timeout
[  807.656132] sfp sfp-1: SM: exit probe:up:down
[  807.761094] sfp sfp-1: SM: enter probe:up:down event timeout
[  807.768134] sfp sfp-1: SM: exit probe:up:down
[  807.873094] sfp sfp-1: SM: enter probe:up:down event timeout
[  807.880131] sfp sfp-1: SM: exit probe:up:down
[  807.985094] sfp sfp-1: SM: enter probe:up:down event timeout
[  807.992133] sfp sfp-1: SM: exit probe:up:down
[  808.097094] sfp sfp-1: SM: enter probe:up:down event timeout
[  808.104131] sfp sfp-1: SM: exit probe:up:down
[  808.209094] sfp sfp-1: SM: enter probe:up:down event timeout
[  808.216133] sfp sfp-1: please wait, module slow to respond
[  808.221603] sfp sfp-1: SM: exit probe:up:down
[  813.537096] sfp sfp-1: SM: enter probe:up:down event timeout
[  813.544143] sfp sfp-1: SM: exit probe:up:down
[  818.657100] sfp sfp-1: SM: enter probe:up:down event timeout
[  818.664162] sfp sfp-1: SM: exit probe:up:down
[  823.777094] sfp sfp-1: SM: enter probe:up:down event timeout
[  823.784144] sfp sfp-1: SM: exit probe:up:down
[  828.897097] sfp sfp-1: SM: enter probe:up:down event timeout
[  828.904140] sfp sfp-1: SM: exit probe:up:down
[  834.017111] sfp sfp-1: SM: enter probe:up:down event timeout
[  834.024154] sfp sfp-1: SM: exit probe:up:down
[  839.137103] sfp sfp-1: SM: enter probe:up:down event timeout
[  839.144186] sfp sfp-1: SM: exit probe:up:down
[  844.257095] sfp sfp-1: SM: enter probe:up:down event timeout
[  844.264142] sfp sfp-1: SM: exit probe:up:down
[  849.377094] sfp sfp-1: SM: enter probe:up:down event timeout
[  849.384142] sfp sfp-1: SM: exit probe:up:down
^C

root@OpenWrt:/# [  854.497099] sfp sfp-1: SM: enter probe:up:down event timeout
[  854.532411] sfp sfp-1: module Lantiq           Falcon SFP       rev 0    sn 032WDY10J8020978 dc 180607
[  854.541885] mtk_soc_eth 15100000.ethernet eth1: switched to inband/1000base-x link mode
[  854.550008] sfp sfp-1: tx disable 1 -> 0
[  854.553962] sfp sfp-1: SM: exit present:up:wait
[  854.578803] hwmon hwmon4: temp1_input not attached to any thermal zone
[  854.604100] sfp sfp-1: SM: enter present:up:wait event timeout
[  854.609924] sfp sfp-1: SM: exit present:up:wait_los
[  856.764159] sfp sfp-1: tx-fault 0 -> 1
[  856.767898] sfp sfp-1: SM: enter present:up:wait_los event tx_fault
[  856.774151] sfp sfp-1: module transmit fault indicated
[  856.779276] sfp sfp-1: SM: exit present:up:tx_fault
[  856.795864] sfp sfp-1: tx-fault 1 -> 0
[  856.799603] sfp sfp-1: SM: enter present:up:tx_fault event tx_clear
[  856.805854] sfp sfp-1: SM: exit present:up:tx_fault
[  856.810744] sfp sfp-1: tx-fault 0 -> 1
[  856.814482] sfp sfp-1: SM: enter present:up:tx_fault event tx_fault
[  856.820733] sfp sfp-1: SM: exit present:up:tx_fault
[  856.825624] sfp sfp-1: tx-fault 1 -> 0
[  856.829364] sfp sfp-1: SM: enter present:up:tx_fault event tx_clear
[  856.835616] sfp sfp-1: SM: exit present:up:tx_fault
[  856.840505] sfp sfp-1: tx-fault 0 -> 1
[  856.844245] sfp sfp-1: SM: enter present:up:tx_fault event tx_fault
[  856.850496] sfp sfp-1: SM: exit present:up:tx_fault
[  856.899274] sfp sfp-1: tx-fault 1 -> 0
[  856.903014] sfp sfp-1: SM: enter present:up:tx_fault event tx_clear
[  856.909265] sfp sfp-1: SM: exit present:up:tx_fault
[  856.914154] sfp sfp-1: tx-fault 0 -> 1
[  856.917893] sfp sfp-1: SM: enter present:up:tx_fault event tx_fault
[  856.924144] sfp sfp-1: SM: exit present:up:tx_fault
[  857.028196] sfp sfp-1: tx-fault 1 -> 0
[  857.031935] sfp sfp-1: SM: enter present:up:tx_fault event tx_clear
[  857.038186] sfp sfp-1: SM: exit present:up:tx_fault
[  857.043076] sfp sfp-1: tx-fault 0 -> 1
[  857.046815] sfp sfp-1: SM: enter present:up:tx_fault event tx_fault
[  857.053066] sfp sfp-1: SM: exit present:up:tx_fault
[  857.825093] sfp sfp-1: SM: enter present:up:tx_fault event timeout
[  857.831299] sfp sfp-1: SM: exit present:up:reinit
[  858.137095] sfp sfp-1: SM: enter present:up:reinit event timeout
[  858.143091] sfp sfp-1: SM: exit present:up:tx_fault
[  859.169095] sfp sfp-1: SM: enter present:up:tx_fault event timeout
[  859.175293] sfp sfp-1: SM: exit present:up:reinit
[  859.481095] sfp sfp-1: SM: enter present:up:reinit event timeout
[  859.487090] sfp sfp-1: SM: exit present:up:tx_fault
[  859.512352] sfp sfp-1: tx-fault 1 -> 0
[  859.516095] sfp sfp-1: SM: enter present:up:tx_fault event tx_clear
[  859.522347] sfp sfp-1: SM: exit present:up:tx_fault
[  859.527236] sfp sfp-1: tx-fault 0 -> 1
[  859.530976] sfp sfp-1: SM: enter present:up:tx_fault event tx_fault
[  859.537226] sfp sfp-1: SM: exit present:up:tx_fault
[  860.513095] sfp sfp-1: SM: enter present:up:tx_fault event timeout
[  860.519292] sfp sfp-1: SM: exit present:up:reinit
[  860.825095] sfp sfp-1: SM: enter present:up:reinit event timeout
[  860.831089] sfp sfp-1: SM: exit present:up:tx_fault
[  861.857094] sfp sfp-1: SM: enter present:up:tx_fault event timeout
[  861.863291] sfp sfp-1: SM: exit present:up:reinit
[  862.169094] sfp sfp-1: SM: enter present:up:reinit event timeout
[  862.175089] sfp sfp-1: module persistently indicates fault, disabling
[  862.181513] sfp sfp-1: SM: exit present:up:tx_disable
[  863.068057] sfp sfp-1: tx-fault 1 -> 0
[  863.071799] sfp sfp-1: SM: enter present:up:tx_disable event tx_clear
[  863.078224] sfp sfp-1: SM: exit present:up:tx_disable
[  863.083286] sfp sfp-1: tx-fault 0 -> 1
[  863.087025] sfp sfp-1: SM: enter present:up:tx_disable event tx_fault
[  863.093449] sfp sfp-1: SM: exit present:up:tx_disable
[  863.308874] sfp sfp-1: tx-fault 1 -> 0
[  863.312615] sfp sfp-1: SM: enter present:up:tx_disable event tx_clear
[  863.319040] sfp sfp-1: SM: exit present:up:tx_disable
[  863.324103] sfp sfp-1: tx-fault 0 -> 1
[  863.327839] sfp sfp-1: SM: enter present:up:tx_disable event tx_fault
[  863.334264] sfp sfp-1: SM: exit present:up:tx_disable
[  863.623551] sfp sfp-1: tx-fault 1 -> 0
[  863.627292] sfp sfp-1: SM: enter present:up:tx_disable event tx_clear
[  863.633716] sfp sfp-1: SM: exit present:up:tx_disable
[  863.638779] sfp sfp-1: tx-fault 0 -> 1
[  863.642518] sfp sfp-1: SM: enter present:up:tx_disable event tx_fault
[  863.648941] sfp sfp-1: SM: exit present:up:tx_disable
[  864.708849] sfp sfp-1: tx-fault 1 -> 0
[  864.712614] sfp sfp-1: SM: enter present:up:tx_disable event tx_clear
[  864.719045] sfp sfp-1: SM: exit present:up:tx_disable
[  864.724108] sfp sfp-1: tx-fault 0 -> 1
[  864.727845] sfp sfp-1: SM: enter present:up:tx_disable event tx_fault
[  864.734268] sfp sfp-1: SM: exit present:up:tx_disable
[  865.181673] sfp sfp-1: tx-fault 1 -> 0
[  865.185415] sfp sfp-1: SM: enter present:up:tx_disable event tx_clear
[  865.191841] sfp sfp-1: SM: exit present:up:tx_disable
[  865.196903] sfp sfp-1: tx-fault 0 -> 1
[  865.200642] sfp sfp-1: SM: enter present:up:tx_disable event tx_fault
[  865.207066] sfp sfp-1: SM: exit present:up:tx_disable
[  865.903186] sfp sfp-1: tx-fault 1 -> 0
[  865.906925] sfp sfp-1: SM: enter present:up:tx_disable event tx_clear
[  865.913349] sfp sfp-1: SM: exit present:up:tx_disable
[  865.918472] sfp sfp-1: tx-fault 0 -> 1
[  865.922211] sfp sfp-1: SM: enter present:up:tx_disable event tx_fault
[  865.928636] sfp sfp-1: SM: exit present:up:tx_disable
[  866.096044] sfp sfp-1: tx-fault 1 -> 0
[  866.099785] sfp sfp-1: SM: enter present:up:tx_disable event tx_clear
[  866.106209] sfp sfp-1: SM: exit present:up:tx_disable
[  866.111272] sfp sfp-1: tx-fault 0 -> 1
[  866.115011] sfp sfp-1: SM: enter present:up:tx_disable event tx_fault
[  866.121435] sfp sfp-1: SM: exit present:up:tx_disable
[  866.249486] sfp sfp-1: tx-fault 1 -> 0
[  866.253225] sfp sfp-1: SM: enter present:up:tx_disable event tx_clear
[  866.259652] sfp sfp-1: SM: exit present:up:tx_disable
[  866.264715] sfp sfp-1: tx-fault 0 -> 1
[  866.268454] sfp sfp-1: SM: enter present:up:tx_disable event tx_fault
[  866.274878] sfp sfp-1: SM: exit present:up:tx_disable
[  866.595005] sfp sfp-1: tx-fault 1 -> 0
[  866.598745] sfp sfp-1: SM: enter present:up:tx_disable event tx_clear
[  866.605169] sfp sfp-1: SM: exit present:up:tx_disable
[  866.610232] sfp sfp-1: tx-fault 0 -> 1
[  866.613971] sfp sfp-1: SM: enter present:up:tx_disable event tx_fault
[  866.620395] sfp sfp-1: SM: exit present:up:tx_disable
[  869.391936] sfp sfp-1: tx-fault 1 -> 0
[  869.395681] sfp sfp-1: SM: enter present:up:tx_disable event tx_clear
[  869.402106] sfp sfp-1: SM: exit present:up:tx_disable
[  869.407169] sfp sfp-1: tx-fault 0 -> 1
[  869.410908] sfp sfp-1: SM: enter present:up:tx_disable event tx_fault
[  869.417332] sfp sfp-1: SM: exit present:up:tx_disable
[  871.363956] sfp sfp-1: tx-fault 1 -> 0
[  871.367697] sfp sfp-1: SM: enter present:up:tx_disable event tx_clear
[  871.374121] sfp sfp-1: SM: exit present:up:tx_disable
[  871.379185] sfp sfp-1: tx-fault 0 -> 1
[  871.382923] sfp sfp-1: SM: enter present:up:tx_disable event tx_fault
[  871.389347] sfp sfp-1: SM: exit present:up:tx_disable
[  871.427238] sfp sfp-1: tx-fault 1 -> 0
[  871.430977] sfp sfp-1: SM: enter present:up:tx_disable event tx_clear
[  871.437401] sfp sfp-1: SM: exit present:up:tx_disable
[  871.442468] sfp sfp-1: tx-fault 0 -> 1
[  871.446207] sfp sfp-1: SM: enter present:up:tx_disable event tx_fault
[  871.452631] sfp sfp-1: SM: exit present:up:tx_disable
[  875.865878] sfp sfp-1: tx-fault 1 -> 0
[  875.869621] sfp sfp-1: SM: enter present:up:tx_disable event tx_clear
[  875.876046] sfp sfp-1: SM: exit present:up:tx_disable
[  875.881108] sfp sfp-1: tx-fault 0 -> 1
[  875.884843] sfp sfp-1: SM: enter present:up:tx_disable event tx_fault
[  875.891267] sfp sfp-1: SM: exit present:up:tx_disable
[  890.408864] sfp sfp-1: tx-fault 1 -> 0
[  890.412624] sfp sfp-1: SM: enter present:up:tx_disable event tx_clear
[  890.419052] sfp sfp-1: SM: exit present:up:tx_disable
[  890.424119] sfp sfp-1: tx-fault 0 -> 1
[  890.427859] sfp sfp-1: SM: enter present:up:tx_disable event tx_fault
[  890.434283] sfp sfp-1: SM: exit present:up:tx_disable

it goes to 1000base-x when it’s supposed to be at 2500base-x like my G-010S-P

note, for this ONT i didn’t disable TTL with the command fw_setenv asc0 1

if someone is interested, i found a cheap seller of MA5671A here

From my debian sdcard : Full bootlog = https://pastebin.com/zE2jWWWy

Maybe you can see something usefull ?

root@bpi-r3:/etc/config# dmesg | grep 'sfp'
[    8.664820] mt7530 mdio-bus:1f sfp2: configuring for inband/2500base-x link mode
[   39.129605] br0: port 5(sfp2) entered blocking state
[   39.134569] br0: port 5(sfp2) entered disabled state
[   39.141761] device sfp2 entered promiscuous mode


root@bpi-r3:/etc/config# dmesg | grep 'eth1'
[    1.093398] mtk_soc_eth 15100000.ethernet eth1: mediatek frame engine at 0xffffffc009780000, irq 132
[    7.104343] mtk_soc_eth 15100000.ethernet eth1: configuring for inband/2500base-x link mode
[   45.608735] mtk_soc_eth 15100000.ethernet eth1: Link is Up - 2.5Gbps/Full - flow control off
[   45.617188] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
root@bpi-r3:/etc/config#

ip a :

root@bpi-r3:/etc/config# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1504 qdisc fq_codel state UP group default qlen 1000
    link/ether 72:21:81:05:02:2f brd ff:ff:ff:ff:ff:ff
    inet 192.168.199.1/24 brd 192.168.199.255 scope global eth0
       valid_lft forever preferred_lft forever
    inet 169.254.31.218/16 brd 169.254.255.255 scope global noprefixroute eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::7021:81ff:fe05:22f/64 scope link
       valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 4e:64:42:a6:f8:f2 brd ff:ff:ff:ff:ff:ff
    inet 192.168.20.1/24 scope global eth1:1
       valid_lft forever preferred_lft forever
    inet 169.254.116.35/16 brd 169.254.255.255 scope global noprefixroute eth1
       valid_lft forever preferred_lft forever
    inet6 fe80::d26a:685f:178c:66e1/64 scope link
       valid_lft forever preferred_lft forever
4: wan@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state LOWERLAYERDOWN group default qlen 1000
    link/ether 72:21:81:05:02:2f brd ff:ff:ff:ff:ff:ff
5: lan1@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master br0 state LOWERLAYERDOWN group default qlen 1000
    link/ether 72:21:81:05:02:2f brd ff:ff:ff:ff:ff:ff
6: lan2@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master br0 state LOWERLAYERDOWN group default qlen 1000
    link/ether 72:21:81:05:02:2f brd ff:ff:ff:ff:ff:ff
7: lan3@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master br0 state LOWERLAYERDOWN group default qlen 1000
    link/ether 72:21:81:05:02:2f brd ff:ff:ff:ff:ff:ff
8: lan4@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master br0 state LOWERLAYERDOWN group default qlen 1000
    link/ether 72:21:81:05:02:2f brd ff:ff:ff:ff:ff:ff
9: sfp2@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master br0 state LOWERLAYERDOWN group default qlen 1000
    link/ether 72:21:81:05:02:2f brd ff:ff:ff:ff:ff:ff
10: br0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
    link/ether 72:21:81:05:02:2f brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.1/24 brd 192.168.1.255 scope global br0
       valid_lft forever preferred_lft forever
11: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
    link/ether 00:0c:43:26:60:00 brd ff:ff:ff:ff:ff:ff
12: wlan1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
    link/ether 82:0c:43:26:60:00 brd ff:ff:ff:ff:ff:ff
root@bpi-r3:/etc/config#

Ping/ssh working

root@bpi-r3:/etc/config# ping 192.168.20.10
PING 192.168.20.10 (192.168.20.10) 56(84) bytes of data.
64 bytes from 192.168.20.10: icmp_seq=1 ttl=64 time=0.297 ms
64 bytes from 192.168.20.10: icmp_seq=2 ttl=64 time=0.270 ms
64 bytes from 192.168.20.10: icmp_seq=3 ttl=64 time=0.259 ms
64 bytes from 192.168.20.10: icmp_seq=4 ttl=64 time=0.252 ms
64 bytes from 192.168.20.10: icmp_seq=5 ttl=64 time=0.248 ms
^C
--- 192.168.20.10 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4096ms
rtt min/avg/max/mdev = 0.248/0.265/0.297/0.017 ms


root@bpi-r3:/etc/config# ssh 192.168.20.10 -l ONTUSER
[email protected]'s password:

BusyBox v1.22.1 (2021-09-18 10:30:59 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

 OpenWrt - (14.07_ltq) --- Lantiq Edition for GPON
 ----------------------------------------------
root@SFP:/home/ONTUSER#

ethtool :

root@bpi-r3:/etc/config# ethtool -m eth1
Cannot get module EEPROM information: Operation not supported
root@bpi-r3:/etc/config#

root@bpi-r3:/etc/config# ethtool eth1
Settings for eth1:
        Supported ports: [ MII ]
        Supported link modes:   2500baseX/Full
        Supported pause frame use: Symmetric Receive-only
        Supports auto-negotiation: Yes
        Supported FEC modes: Not reported
        Advertised link modes:  2500baseX/Full
        Advertised pause frame use: Symmetric Receive-only
        Advertised auto-negotiation: No
        Advertised FEC modes: Not reported
        Speed: 2500Mb/s
        Duplex: Full
        Auto-negotiation: off
        Port: MII
        PHYAD: 0
        Transceiver: internal
        Current message level: 0x000000ff (255)
                               drv probe link timer ifdown ifup rx_err tx_err
        Link detected: yes
root@bpi-r3:/etc/config#

i see that here eth1 is completely up (i guess you have no cable in the ONT, right?) and have the ip for returning the packets from the ont…eth1 has “link detected: yes”

Where can I find the debian kernel source code?

YES, no cable in the ONT

kernelversion (uname -r) should be 5.15.77 (looked in full bootlog…yes it is) and i guess it is from here: https://github.com/BPI-SINOVOIP/BPI-R3-bsp-5.15/tree/main/linux-mt

i took the image from the wiki page : https://wiki.banana-pi.org/Banana_Pi_BPI-R3#Debian

image

i don’t think so…my image does have kernel 6.1

haaa so maybe one of the other links below image

i still have the file, it is called :

2022-12-18-debian-11-bullseye-lite-bpi-r3-5.15-sd-emmc.img.zip

so the second one, in the list.

in debian bootlog we never see this line where it show the module vendor, like openwrt

Fri Sep  1 22:04:58 2023 kern.info kernel: [   54.902742] sfp sfp-1: module ALCATELLUCENT    G010SP           rev 10   sn ALCLFAB44018     dc 161205

is this normal ??

my first thought is that SFP-driver is missing or not loaded, but it is at least compiled as module…

can you look with lsmod if the module is loaded?