About the SFP rj45,
the mine doesn’t work with Bananapi r3.
It doesn’t matter, i will take another.
it’s the only one sfp which has an error message.
I tested with sfp gpon onu, and 4 sfp lc.
They return no error message.
For my sfp gpon onu.
In the sfp wan, the network doesn’t work.
Even if it is recognized ( see with ethtool and ethtool -m)
But when i used it on the sfp lan(sfp cage close to rj45),it works if :
i create a bridge and put the sfp into.
so i just put the sfp into.
But the big problem is the debit.
I have a connexion of 2gpbs down and 800mb up.
My sfp is a 2gbps, tested in antoher sbc.
I done a speedtest and i have :
Server: ORANGE FRANCE - Marseille (id = 29545)
ISP: Orange
Latency: 4.43 ms (0.11 ms jitter)
Download: 63.72 Mbps (data used: 122.5 MB)
Upload: 0.66 Mbps (data used: 880.4 kB)
Packet Loss: 3.3%
Here my interfaces config :
iface eth0 inet static
address 192.168.1.1
netmask 255.255.255.0
iface br0 inet static
address 192.168.1.2
netmask 255.255.255.0
iface lan4 inet manual
post-up /sbin/ip l s up dev $IFACE
iface orange inet manual
#Creer le vlan 832 et les priorités
pre-up /sbin/ip l a link lan4 name $IFACE type vlan id 832 egress-qos-map 0:6
If i don’t give an address to eth0, nothing work.
I tried to create a bridge wan with sfp wan and eth wan.
But same result.
Have you 2 bridges : 1 for lan and 1 for wan?
My trees had some wrong gpio definitions (properties need to be plural - so “gpios” and mod-def0 needs additional dash) have already fixed on 6.1 tree. My sfp worked with these wrong properties (so i had not noticed it),but maybe other sfp do not.
I currently have no bridge…woeking directly on interfaces,but can only test 1g (iperf3.to my laptop or my main router which looked good for both sfp and rj45 ports before and after russels patch).
I’ve seen this error with FINISAR 1000Base-T SFP module. Turns out it needs Marvell PHY driver to function, which I have now packaged in OpenWrt:
Try enabling kmod-phy-marvell in your build.
If that still doesn’t help, please install mdio-tools and show the output of mdio *sfp2 (assuming the SFP is inserted to sfp2 cage).
If you are using vanilla Linux (e.g. build e.g. from Frank’s tree) make sure you enable CONFIG_MARVELL_PHY in your build.
For the sfp lan and eth wan, it works.
I can ping the gateway and the web (8.8.8.8)
But when i ifup the sfp wan (eth1), i have an error :
ifup eth1
Error: either “local” is duplicate, or “/24” is a garbage.
[ 1155.033048] mtk_soc_eth 15100000.ethernet eth1: configuring for inband/sgmii link mode
Error: Nexthop has invalid gateway.
Yes because your device does not know where to send out the paket (eth1 or your lan)…every interface needs an own subnet configured…if multiple interfaces need same subnet you have to use a bridge. Everything else is not clean setup. And your current setup is a security mess…lan and wan in same subnet
[ 60.167307] mtk_soc_eth 15100000.ethernet eth0: configuring for fixed/2500base-x link mode
[ 60.175676] mtk_soc_eth 15100000.ethernet eth0: Link is Up - 2.5Gbps/Full - flow control rx/tx
[ 60.176391] mt7530 mdio-bus:1f wan: configuring for phy/gmii link mode
[ 60.195650] mt7530 mdio-bus:1f wan: Link is Up - 1Gbps/Full - flow control off
And when i ifup sfp wan
ifup eth1
[ 99.766208] mtk_soc_eth 15100000.ethernet eth1: configuring for inband/2500base-x link mode
udhcpc: started, v1.32.0
[ 99.835614] mtk_soc_eth 15100000.ethernet eth1: switched to inband/sgmii link mode
udhcpc: sending discover
[ 100.022419] mtk_soc_eth 15100000.ethernet eth1: PHY [i2c:sfp-1:16] driver [Marvell 88E1111] (irq=POLL)