Cezary testuje ponownie kompilacje z kernelem 6.1 która dla mnie zrobiłeś i tutaj wkładka Leox zachowuje się całkiem fajnie, podnosi się z włączonym światłowodem choć trwa to dość długo i potrzebny jest reboot OpenWRT. Sama wkładka uruchamia się dłużej niż OpenWRT na BananaPI i pewnie to powoduje że wszystko gra dopiero po reboot.
Pierwsze uruchomienie
root@OpenWrt:/# uname -a
Linux OpenWrt 6.1.64 #0 SMP Sat Dec 2 20:57:38 2023 aarch64 GNU/Linux
root@OpenWrt:/# [ 121.422499] sfp sfp-1: module removed
[ 165.951942] sfp sfp-1: module Hisense-Leox LXT-010S-H rev 1.0 sn LEOXD10000F7 dc 221104
[ 165.961435] mtk_soc_eth 15100000.ethernet eth1: switched to inband/1000base-x link mode
[ 166.000919] hwmon hwmon4: temp1_input not attached to any thermal zone
root@OpenWrt:/# ethtool eth1
Settings for eth1:
Supported ports: [ FIBRE ]
Supported link modes: 1000baseX/Full
Supported pause frame use: Symmetric Receive-only
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: 1000baseX/Full
Advertised pause frame use: Symmetric Receive-only
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Speed: Unknown!
Duplex: Unknown! (255)
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
Drugie uruchomie/reboot, sesja PPPoE podnosi się bez problemu
root@OpenWrt:/# ethtool eth1
Settings for eth1:
Supported ports: [ FIBRE ]
Supported link modes: 1000baseX/Full
Supported pause frame use: Symmetric Receive-only
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: 1000baseX/Full
Advertised pause frame use: Symmetric Receive-only
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Link partner advertised link modes: 1000baseX/Full
Link partner advertised pause frame use: Symmetric Receive-only
Link partner advertised auto-negotiation: Yes
Link partner advertised FEC modes: Not reported
Speed: 1000Mb/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: yes
Mógłbym prosić o przygotowanie pełnej kompilacji?
Ewentualnie jakbyś miał trochę czasu to proszę zobacz jeszcze do tego wątku
https://forum.banana-pi.org/t/sfp-oem-s … y/15872/24
Kupiłem wkładkę SFP elektryczną na układzie RTL8221B i nie jest właściwie obsługiwana, jakieś patche do sterownika/kernela podobno pomagaja.
root@OpenWrt:/# uname -a
Linux OpenWrt 6.1.64 #0 SMP Sat Dec 2 20:57:38 2023 aarch64 GNU/Linux
[ 838.157260] sfp sfp-2: module OEM GLC-T rev FG02 sn FNS19270LN3 dc 210517
[ 838.229799] mt7530-mdio mdio-bus:1f sfp2: validation with support 00000000,00000000,00000000 failed: -EINVAL
[ 838.239689] sfp sfp-2: sfp_add_phy failed: -EINVAL
Na wcześniejszych wersjach jest podobnie
root@OpenWrt:/# uname -a
Linux OpenWrt 5.15.142 #0 SMP Tue Dec 12 19:30:35 2023 aarch64 GNU/Linux
root@OpenWrt:/# dmesg | grep 'sfp'
[ 8.928365] sfp sfp-1: Host maximum power 3.0W
[ 8.933778] sfp sfp-2: Host maximum power 3.0W
[ 9.270081] sfp sfp-2: module OEM SFP-2G5 rev 1.0 sn 2G522112324218 dc 220801
[ 9.309146] sfp sfp-1: module OEM GLC-T rev FG02 sn FNS19270LN3 dc 210517
[ 17.025978] mt7530-mdio mdio-bus:1f sfp2: configuring for inband/2500base-x link mode
[ 17.035656] br-lan: port 5(sfp2) entered blocking state
[ 17.040896] br-lan: port 5(sfp2) entered disabled state
[ 17.048261] device sfp2 entered promiscuous mode
[ 17.148626] sfp sfp-1: sfp_add_phy failed: -22