TL-SM410U can not detected by BPI-R3

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?

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:(

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.

which adapter do you use? on r3 only ftdi and cp2104 known as working

I am using CP2102。

img_v2_dbc2488f-b179-4280-8522-1f3f2d5ea71g

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)

  1. The console port has become unavailable.

  2. SFP was not recognized either.

  3. WiFi will also report an error unless all console ports are connected to GND

    mt7986-wmac: probe of 18000000.wmac failed with error -110

  • Cp 2102 is known to cause wifi issue like the timeout
  • connect tx to gnd is a bad idea as this shortenes output voltage and may damage the soc

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

I also have issues using FTDI: console and WiFi cannot work.

img_v2_f3a3cb56-4dae-4103-82b7-ddebf024c4ag

It can be determined that this is a hardware fault.

Do you have any suggestions that to fix it.

I guess you have killed uart in Soc and wifi frontend by connecting uart-tx to gnd. So fix would be new r3 board.

Yes, I buy a new bpi-r3. everythings is ok.

Thank you again.

For sfp you can try this: https://github.com/frank-w/BPI-Router-Linux/commit/b585bd0bf76eb079d99bab557e5e5bb777f47cc2

And make sure your adapter has 3v3 level,not 5v!

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.

I’ve sent patch to mainline to fix this

https://patchwork.kernel.org/project/linux-mediatek/patch/[email protected]/

1 Like

Could this patch solve the problem of some SFP modules not being recognized or not working?

Yes,at least some that were working in snapshots

1 Like

Hi ! how do we know when the patch is included in the snapshot ?

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

You can try this tree as daniel added the missing parts

https://git.openwrt.org/openwrt/staging/dangole.git

1 Like