Purchased TL-SM410U electrical port module, installed on the machine can not be used, can not get the IP address
root@OpenWrt:~# ifconfig -a
br-lan Link encap:Ethernet HWaddr EA:FB:AE:D1:3E:73
inet addr:192.168.50.1 Bcast:192.168.50.255 Mask:255.255.255.0
inet6 addr: fd7a:178d:efe5::1/60 Scope:Global
inet6 addr: fe80::e8fb:aeff:fed1:3e73/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1013800 errors:0 dropped:0 overruns:0 frame:0
TX packets:1696934 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:110884345 (105.7 MiB) TX bytes:2526937020 (2.3 GiB)
br-wan Link encap:Ethernet HWaddr EA:FB:AE:D1:3E:74
inet addr:192.168.1.198 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::e8fb:aeff:fed1:3e74/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:959577 errors:0 dropped:19423 overruns:0 frame:0
TX packets:1068681 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:860386584 (820.5 MiB) TX bytes:128888870 (122.9 MiB)
eth0 Link encap:Ethernet HWaddr EA:FB:AE:D1:3E:73
inet6 addr: fe80::e8fb:aeff:fed1:3e73/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1504 Metric:1
RX packets:5390036 errors:0 dropped:0 overruns:0 frame:0
TX packets:4521748 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5479999743 (5.1 GiB) TX bytes:3513381438 (3.2 GiB)
Interrupt:132
eth1 Link encap:Ethernet HWaddr EA:FB:AE:D1:3E:74
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:132
lan1 Link encap:Ethernet HWaddr EA:FB:AE:D1:3E:73
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:5236 errors:0 dropped:7 overruns:0 frame:0
TX packets:4574 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:783372 (765.0 KiB) TX bytes:8753953 (8.3 MiB)
lan2 Link encap:Ethernet HWaddr EA:FB:AE:D1:3E:73
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
lan3 Link encap:Ethernet HWaddr EA:FB:AE:D1:3E:73
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
lan4 Link encap:Ethernet HWaddr EA:FB:AE:D1:3E:73
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1257839 errors:0 dropped:0 overruns:0 frame:0
TX packets:2005507 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:181605451 (173.1 MiB) TX bytes:3155882109 (2.9 GiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:46051 errors:0 dropped:0 overruns:0 frame:0
TX packets:46051 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3702649 (3.5 MiB) TX bytes:3702649 (3.5 MiB)
sfp2 Link encap:Ethernet HWaddr EA:FB:AE:D1:3E:73
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
tunl0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
wan Link encap:Ethernet HWaddr EA:FB:AE:D1:3E:74
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4126961 errors:0 dropped:0 overruns:0 frame:0
TX packets:2012662 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5200590272 (4.8 GiB) TX bytes:280530046 (267.5 MiB)
wlan0 Link encap:Ethernet HWaddr 00:0C:43:26:60:00
inet6 addr: fe80::20c:43ff:fe26:6000/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:6181 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:1791286 (1.7 MiB)
wlan1 Link encap:Ethernet HWaddr 82:0C:43:26:60:00
inet6 addr: fe80::800c:43ff:fe26:6000/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:706603 errors:0 dropped:0 overruns:0 frame:0
TX packets:1527798 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:77333960 (73.7 MiB) TX bytes:2039953902 (1.8 GiB)
root@OpenWrt:~#
dangowrt
(Daniel Golle)
March 27, 2023, 8:33am
2
Did you install official OpenWrt snapshot as decribed here ? Because (due to the wifi interface names wlan0
and wlan1
) this looks like SinoVoip’s MediaTek SDK firmware which is shipped with the board…
Compile your own firmware
dangowrt
(Daniel Golle)
March 27, 2023, 8:50am
4
Ok, so for SFP to work you have to compile like this:
git clone https://git.openwrt.org/openwrt/openwrt.git
cd openwrt
make menuconfig
# select Mediatek (ARM) -> FiLogic -> BPi-R3; select packages you want
make -j$(nproc)
I compiled with this source code
frank-w
(Frank W.)
March 27, 2023, 10:43am
7
Please use the source daniel suggested. If you use another source you cannot expect support from him
What is the source address?
openwrt has to source it! Thanks I’ll try.But the openwrt source code does not
luci-app-syncdial
I tried compiling with the openwrt source code, but I still can’t get the IP address. Is the module incompatible?
I tried compiling with the openwrt source code, but I still can’t get the IP address. Is the module incompatible?
frank-w
(Frank W.)
April 7, 2023, 7:09am
13
On which port have you inserted the sfp? TL-SM410U is afaik the one daniel used in his tests.
You have to put the interface up (eth1 for wan-sfp,lan4 for lan-sfp).
Can you show your dmesg and ethtool output?
dmesg | grep -i 'eth\|sfp'
ethtool eth1;ethtool -m eth1
root@OpenWrt:/# dmesg | grep -i 'eth\|sfp'
[ 0.000000] psci: probing for conduit method from DT.
[ 1.130674] mtk_soc_eth 15100000.ethernet eth0: mediatek frame engine at 0xffffffc009600000, irq 132
[ 1.139871] mtk_soc_eth 15100000.ethernet: generated random MAC address 9a:e5:db:eb:f5:af
[ 1.148637] mtk_soc_eth 15100000.ethernet eth1: mediatek frame engine at 0xffffffc009600000, irq 132
[ 6.737968] mtk_soc_eth 15100000.ethernet eth0: configuring for fixed/2500base-x link mode
[ 6.746403] mtk_soc_eth 15100000.ethernet eth0: Link is Up - 2.5Gbps/Full - flow control rx/tx
[ 23.761804] sfp sfp1: Host maximum power 1.0W
[ 23.766912] sfp sfp2: Host maximum power 1.0W
[ 24.107376] sfp sfp2: module TP-LINK TL-SM410U rev 2.0 sn 122C304000986 dc 221228
[ 30.512894] mtk_soc_eth 15100000.ethernet eth0: Link is Down
[ 30.578030] mtk_soc_eth 15100000.ethernet eth0: configuring for fixed/2500base-x link mode
[ 30.586465] mtk_soc_eth 15100000.ethernet eth0: Link is Up - 2.5Gbps/Full - flow control rx/tx
[ 30.622011] device eth0 entered promiscuous mode
[ 30.629104] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 30.736510] mt7530 mdio-bus:1f sfp2: configuring for inband/2500base-x link mode
[ 30.745283] br-lan: port 5(sfp2) entered blocking state
[ 30.750562] br-lan: port 5(sfp2) entered disabled state
[ 30.758030] device sfp2 entered promiscuous mode
[ 139.526228] sfp sfp2: module removed
[ 143.597191] sfp sfp1: module TP-LINK TL-SM410U rev 2.0 sn 122C304000986 dc 221228
[ 234.482701] sfp sfp1: module removed
[ 238.857199] sfp sfp2: module TP-LINK TL-SM410U rev 2.0 sn 122C304000986 dc 221228
root@OpenWrt:/# ethtool eth1;ethtool -m eth1
/bin/ash: ethtool: not found
/bin/ash: ethtool: not found
root@OpenWrt:/#
You don’t have ethtool installed. Please, install it and do these commands:
ethtool eth1
ethtool -m eth1
Sfp module must be plugged to sfp1 cage (near usb port).
Did you manually swap sfp module from sfp2 cage to sfp1? It seems, your sfp module was recognised by router, but was disconnected from sfp2 first and plugged to sfp1. Than it was disconnected from sfp1 and plugged to sfp2. Is this true?
root@OpenWrt:/# dmesg | grep -i 'eth\|sfp'
[ 0.000000] psci: probing for conduit method from DT.
[ 1.140889] mtk_soc_eth 15100000.ethernet eth0: mediatek frame engine at 0xffffffc009680000, irq 134
[ 1.150653] mtk_soc_eth 15100000.ethernet eth1: mediatek frame engine at 0xffffffc009680000, irq 134
[ 7.155723] mtk_soc_eth 15100000.ethernet eth0: configuring for fixed/2500base-x link mode
[ 7.164156] mtk_soc_eth 15100000.ethernet eth0: Link is Up - 2.5Gbps/Full - flow control rx/tx
[ 18.037568] sfp sfp1: Host maximum power 3.0W
[ 18.042688] sfp sfp2: Host maximum power 3.0W
[ 18.377478] sfp sfp2: module TP-LINK TL-SM410U rev 2.0 sn 122C304000986 dc 221228
[ 28.802670] mtk_soc_eth 15100000.ethernet eth0: Link is Down
[ 28.848124] mtk_soc_eth 15100000.ethernet eth0: configuring for fixed/2500base-x link mode
[ 28.857045] mtk_soc_eth 15100000.ethernet eth0: Link is Up - 2.5Gbps/Full - flow control rx/tx
[ 28.897856] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 28.932194] device eth0 entered promiscuous mode
[ 29.067874] mt7530 mdio-bus:1f sfp2: configuring for inband/2500base-x link mode
[ 29.077333] br-lan: port 5(sfp2) entered blocking state
[ 29.082623] br-lan: port 5(sfp2) entered disabled state
[ 29.090095] device sfp2 entered promiscuous mode
[ 29.099518] mtk_soc_eth 15100000.ethernet eth1: configuring for inband/2500base-x link mode
[ 29.109573] br-wan: port 1(eth1) entered blocking state
[ 29.114863] br-wan: port 1(eth1) entered disabled state
[ 29.120336] device eth1 entered promiscuous mode
[ 29.126880] br-wan: port 1(eth1) entered blocking state
[ 29.132268] br-wan: port 1(eth1) entered forwarding state
[ 29.997487] br-wan: port 1(eth1) entered disabled state
root@OpenWrt:/# ethtool eth1;ethtool -m 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: Yes
Advertised FEC modes: Not reported
Speed: 2500Mb/s
Duplex: Full
Auto-negotiation: on
Port: MII
PHYAD: 0
Transceiver: internal
Current message level: 0x000000ff (255)
drv probe link timer ifdown ifup rx_err tx_err
Link detected: no
netlink error: No such device or address
root@OpenWrt:/# dmesg | grep -i 'eth\|sfp'
[ 0.000000] psci: probing for conduit method from DT.
[ 1.140889] mtk_soc_eth 15100000.ethernet eth0: mediatek frame engine at 0xffffffc009680000, irq 134
[ 1.150653] mtk_soc_eth 15100000.ethernet eth1: mediatek frame engine at 0xffffffc009680000, irq 134
[ 7.155723] mtk_soc_eth 15100000.ethernet eth0: configuring for fixed/2500base-x link mode
[ 7.164156] mtk_soc_eth 15100000.ethernet eth0: Link is Up - 2.5Gbps/Full - flow control rx/tx
[ 18.037568] sfp sfp1: Host maximum power 3.0W
[ 18.042688] sfp sfp2: Host maximum power 3.0W
[ 18.377478] sfp sfp2: module TP-LINK TL-SM410U rev 2.0 sn 122C304000986 dc 221228
[ 28.802670] mtk_soc_eth 15100000.ethernet eth0: Link is Down
[ 28.848124] mtk_soc_eth 15100000.ethernet eth0: configuring for fixed/2500base-x link mode
[ 28.857045] mtk_soc_eth 15100000.ethernet eth0: Link is Up - 2.5Gbps/Full - flow control rx/tx
[ 28.897856] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 28.932194] device eth0 entered promiscuous mode
[ 29.067874] mt7530 mdio-bus:1f sfp2: configuring for inband/2500base-x link mode
[ 29.077333] br-lan: port 5(sfp2) entered blocking state
[ 29.082623] br-lan: port 5(sfp2) entered disabled state
[ 29.090095] device sfp2 entered promiscuous mode
[ 29.099518] mtk_soc_eth 15100000.ethernet eth1: configuring for inband/2500base-x link mode
[ 29.109573] br-wan: port 1(eth1) entered blocking state
[ 29.114863] br-wan: port 1(eth1) entered disabled state
[ 29.120336] device eth1 entered promiscuous mode
[ 29.126880] br-wan: port 1(eth1) entered blocking state
[ 29.132268] br-wan: port 1(eth1) entered forwarding state
[ 29.997487] br-wan: port 1(eth1) entered disabled state
[ 1067.373406] sfp sfp2: module removed
[ 1070.797471] sfp sfp1: module TP-LINK TL-SM410U rev 2.0 sn 122C304000986 dc 221228
root@OpenWrt:/# ethtool eth1;ethtool -m eth1
Settings for eth1:
Supported ports: [ FIBRE ]
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: 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
Identifier : 0x03 (SFP)
Extended identifier : 0x04 (GBIC/SFP defined by 2-wire interface ID)
Connector : 0x07 (LC)
Transceiver codes : 0x00 0x00 0x00 0x00 0x00 0x00 0x40 0x00 0x00
Transceiver type : FC: Twisted Pair (TP)
Encoding : 0x01 (8B/10B)
BR, Nominal : 3100MBd
Rate identifier : 0x00 (unspecified)
Length (SMF,km) : 0km
Length (SMF) : 0m
Length (50um) : 0m
Length (62.5um) : 0m
Length (Copper) : 0m
Length (OM3) : 0m
Laser wavelength : 0nm
Vendor name : TP-LINK
Vendor OUI : 00:00:00
Vendor PN : TL-SM410U
Vendor rev : 2.0
Option values : 0x00 0x18
Option : TX_FAULT implemented
Option : TX_DISABLE implemented
BR margin, max : 0%
BR margin, min : 0%
Vendor SN : 122C304000986
Date code : 221228
root@OpenWrt:/#
root@OpenWrt:/# dmesg | grep -i 'eth\|sfp'
[ 0.000000] psci: probing for conduit method from DT.
[ 1.140889] mtk_soc_eth 15100000.ethernet eth0: mediatek frame engine at 0xffffffc009680000, irq 134
[ 1.150653] mtk_soc_eth 15100000.ethernet eth1: mediatek frame engine at 0xffffffc009680000, irq 134
[ 7.155723] mtk_soc_eth 15100000.ethernet eth0: configuring for fixed/2500base-x link mode
[ 7.164156] mtk_soc_eth 15100000.ethernet eth0: Link is Up - 2.5Gbps/Full - flow control rx/tx
[ 18.037568] sfp sfp1: Host maximum power 3.0W
[ 18.042688] sfp sfp2: Host maximum power 3.0W
[ 18.377478] sfp sfp2: module TP-LINK TL-SM410U rev 2.0 sn 122C304000986 dc 221228
[ 28.802670] mtk_soc_eth 15100000.ethernet eth0: Link is Down
[ 28.848124] mtk_soc_eth 15100000.ethernet eth0: configuring for fixed/2500base-x link mode
[ 28.857045] mtk_soc_eth 15100000.ethernet eth0: Link is Up - 2.5Gbps/Full - flow control rx/tx
[ 28.897856] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 28.932194] device eth0 entered promiscuous mode
[ 29.067874] mt7530 mdio-bus:1f sfp2: configuring for inband/2500base-x link mode
[ 29.077333] br-lan: port 5(sfp2) entered blocking state
[ 29.082623] br-lan: port 5(sfp2) entered disabled state
[ 29.090095] device sfp2 entered promiscuous mode
[ 29.099518] mtk_soc_eth 15100000.ethernet eth1: configuring for inband/2500base-x link mode
[ 29.109573] br-wan: port 1(eth1) entered blocking state
[ 29.114863] br-wan: port 1(eth1) entered disabled state
[ 29.120336] device eth1 entered promiscuous mode
[ 29.126880] br-wan: port 1(eth1) entered blocking state
[ 29.132268] br-wan: port 1(eth1) entered forwarding state
[ 29.997487] br-wan: port 1(eth1) entered disabled state
[ 1067.373406] sfp sfp2: module removed
[ 1070.797471] sfp sfp1: module TP-LINK TL-SM410U rev 2.0 sn 122C304000986 dc 221228
root@OpenWrt:/# ethtool eth1;ethtool -m eth1
Settings for eth1:
Supported ports: [ FIBRE ]
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: 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
Identifier : 0x03 (SFP)
Extended identifier : 0x04 (GBIC/SFP defined by 2-wire interface ID)
Connector : 0x07 (LC)
Transceiver codes : 0x00 0x00 0x00 0x00 0x00 0x00 0x40 0x00 0x00
Transceiver type : FC: Twisted Pair (TP)
Encoding : 0x01 (8B/10B)
BR, Nominal : 3100MBd
Rate identifier : 0x00 (unspecified)
Length (SMF,km) : 0km
Length (SMF) : 0m
Length (50um) : 0m
Length (62.5um) : 0m
Length (Copper) : 0m
Length (OM3) : 0m
Laser wavelength : 0nm
Vendor name : TP-LINK
Vendor OUI : 00:00:00
Vendor PN : TL-SM410U
Vendor rev : 2.0
Option values : 0x00 0x18
Option : TX_FAULT implemented
Option : TX_DISABLE implemented
BR margin, max : 0%
BR margin, min : 0%
Vendor SN : 122C304000986
Date code : 221228
root@OpenWrt:/#
frank-w
(Frank W.)
August 9, 2023, 11:57am
19
please format code to be readable (select code and press the <> button) make sure there is an empty line between “normal” text and the code…for longer code do not post 3 messages, put output in textfile and append it or use pastebin or similar and put link in your message
I am very sorry, I am inserting the modules into SPF1 and 2 respectively and then using the command output. But what you said (select code and press the <> button) I’m not very good at it!