neight
(cr-neight)
August 4, 2023, 3:28am
1
TL-SM410U cannot be recognized by BPI-R3
I am using the latest official firmware for openwrt
https://downloads.openwrt.org/snapshots/targets/mediatek/filogic/openwrt-mediatek-filogic-bananapi_bpi-r3-sdcard.img.gz
R3 boot from SD card。
root@OpenWrt:~# dmesg | grep sfp
[ 12.254423] sfp sfp-1: Host maximum power 1.0W
[ 12.259601] sfp sfp-2: Host maximum power 1.0W
[ 13.551464] sfp sfp-1: please wait, module slow to respond
[ 38.114824] mt7530-mdio mdio-bus:1f sfp2: configuring for inband/2500base-x link mode
[ 38.124374] br-lan: port 5(sfp2) entered blocking state
[ 38.129585] br-lan: port 5(sfp2) entered disabled state
[ 38.136950] device sfp2 entered promiscuous mode
[ 69.028108] sfp sfp-1: failed to read EEPROM: -6
root@OpenWrt:~# 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: Yes
Advertised FEC modes: Not reported
Speed: 2500Mb/s
Duplex: Full
Port: MII
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Current message level: 0x000000ff (255)
drv probe link timer ifdown ifup rx_err tx_err
Link detected: no
root@OpenWrt:~# ethtool -m eth1
Cannot get Module EEPROM data: No such device or address
SFP module not in cage?
root@OpenWrt:~# i2cdetect -y 0
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
root@OpenWrt:~# i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
I just bought TL-SM410U, is the BPI-R3 hardware broken?
Is this latest OpenWRT build? OpenWRT builds has 3.0 W maximum host power. Your build has only 1.0 W. I’m using old OpenWRT snapshot (end of May 2023) and I have 3.0 W maximum host power.
Are you sure, that you flashed firmware from link, provided in your post?
P.S. or maybe devs changed 3.0 W to 1.0 W?
neight
(cr-neight)
August 4, 2023, 10:25am
3
The master branch is 1.0W now.
Can you provide a usable sdcard image?
Thank you.
I can search for my current build, but it is ~2 months old, compiled by myself with some package additions. I’m using sfp module with it, but different model, than yours.
No guarantee, that I didn’t delete it. Will search for it after my work.
P.S. Sadly, I can’t find my build:(
neight
(cr-neight)
August 9, 2023, 6:44am
5
Thank you anyway.
I think my hardware should be broken.
My debugging serial port is unusable.
And WiFi can only be used when debugging serial ports connected to GND.
frank-w
(Frank W.)
August 9, 2023, 7:42am
6
which adapter do you use? on r3 only ftdi and cp2104 known as working
neight
(cr-neight)
August 9, 2023, 8:31am
7
I am using CP2102。
There was no problem with the console port before.
When I insert the SFP module: (Even if I unplug the SFP module, these states remain)
The console port has become unavailable.
SFP was not recognized either.
WiFi will also report an error unless all console ports are connected to GND
mt7986-wmac: probe of 18000000.wmac failed with error -110
frank-w
(Frank W.)
August 9, 2023, 1:51pm
9
I have upstreamed dts for r3 without any special power parameter. If openwrt used one it is missing now after switching to upstream dts. Can you give me the exact setting? Then i can send patch for adding it…was not needed by my sfps
neight
(cr-neight)
August 10, 2023, 6:54am
10
I also have issues using FTDI: console and WiFi cannot work.
It can be determined that this is a hardware fault.
Do you have any suggestions that to fix it.
frank-w
(Frank W.)
August 10, 2023, 7:15am
11
I guess you have killed uart in Soc and wifi frontend by connecting uart-tx to gnd. So fix would be new r3 board.
neight
(cr-neight)
August 15, 2023, 6:28am
12
Yes, I buy a new bpi-r3. everythings is ok.
Thank you again.
frank-w
(Frank W.)
August 15, 2023, 8:20am
13
Rooot
(Rooot)
August 23, 2023, 8:55pm
14
Voidstranger:
Is this latest OpenWRT build? OpenWRT builds has 3.0 W maximum host power. Your build has only 1.0 W. I’m using old OpenWRT snapshot (end of May 2023) and I have 3.0 W maximum host power. Are you sure, that you flashed firmware from link, provided in your post?
P.S. or maybe devs changed 3.0 W to 1.0 W?
I’m using the latest 23.05.0 RC3, and i have the same message about the 1.0W
Could it be the reason why my SFP ONU MA5671A is not working at all ??
And i have a TL-SM410U working, but only in 2.5G mode, not 1Gbps.
frank-w
(Frank W.)
August 23, 2023, 9:23pm
15
1 Like
Rooot
(Rooot)
August 24, 2023, 6:48am
16
Could this patch solve the problem of some SFP modules not being recognized or not working?
frank-w
(Frank W.)
August 24, 2023, 8:35am
17
Yes,at least some that were working in snapshots
1 Like
Rooot
(Rooot)
August 25, 2023, 6:14am
18
Hi !
how do we know when the patch is included in the snapshot ?
frank-w
(Frank W.)
August 25, 2023, 6:27am
19
You can look in the git or read out sysfs in /sys/firmware/devicetree/base for the sfp nodes and then the milliwatts setting…same structure as in dts
frank-w
(Frank W.)
August 26, 2023, 10:40am
20
You can try this tree as daniel added the missing parts
https://git.openwrt.org/openwrt/staging/dangole.git
1 Like