BPI-R3 SFP Module compatibility

I have some issue similar to prdtabim’s XPON sfp adapter.

I use two 1310nm SFP Module (MXPD-483II) to connect Mikrotik CRS309 and BPI-R3.

The Modules works normally on stock firmware(SinoVoip’s), but disconnected when change to snapshot firmware.

It cause by snapshot openwrt force set 1000base-x to SFP slot and my Module only support 2500Base-x mode.

I have tried set sfp2’s speed with ethtool “ethtool -s sfp2 autoneg off speed 2500” and return without error.

But the sfp2 still run at 1000base-x mode.

And I found the Modules can work normally at recovery (initramfs) mode(cause by force upload wrong openwrt img).

I don’t know which difference between normal mode and recovery (initramfs) mode.

But Modules just works normally at recovery (initramfs) mode.

The recovery (initramfs) mode didn’t save any config so it can’t be use as usually.

There is kernel logs and outputs of ethtool:

snapshot normal boot: Kernel log

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 5.15.104 (builder@buildhost) (aarch64-openwrt-linux-musl-gcc (OpenWrt GCC 12.2.0 r22454-9186da4027) 12.2.0, GNU ld (GNU Binutils) 2.40.0) #0 SMP Wed Mar 29 17:36:33 2023
[    0.000000] Machine model: Bananapi BPI-R3
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000040000000-0x00000000bfffffff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040000000-0x0000000042ffffff]
[    0.000000]   node   0: [mem 0x0000000043000000-0x000000004302ffff]
[    0.000000]   node   0: [mem 0x0000000043030000-0x000000004fbfffff]
[    0.000000]   node   0: [mem 0x000000004fc00000-0x000000004ffbffff]
[    0.000000]   node   0: [mem 0x000000004ffc0000-0x00000000bfffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x00000000bfffffff]
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.1 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: SMC Calling Convention v1.2
[    0.000000] percpu: Embedded 17 pages/cpu s30040 r8192 d31400 u69632
[    0.000000] pcpu-alloc: s30040 r8192 d31400 u69632 alloc=17*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: GIC system register CPU interface
[    0.000000] CPU features: kernel page table isolation disabled by kernel configuration
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 516096
[    0.000000] Kernel command line: root=/dev/mmcblk0p65
[    0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 2040384K/2097152K available (8320K kernel code, 902K rwdata, 2220K rodata, 448K init, 301K bss, 56768K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] 	Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GICv3: GIC: Using split EOI/Deactivate mode
[    0.000000] GICv3: 640 SPIs implemented
[    0.000000] GICv3: 0 Extended SPIs implemented
[    0.000000] GICv3: Distributor has no Range Selector support
[    0.000000] Root IRQ handler: gic_handle_irq
[    0.000000] GICv3: 16 PPIs implemented
[    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x000000000c080000
[    0.000000] arch_timer: cp15 timer(s) running at 13.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2ff89eacb, max_idle_ns: 440795202429 ns
[    0.000000] sched_clock: 56 bits at 13MHz, resolution 76ns, wraps every 4398046511101ns
[    0.000148] Calibrating delay loop (skipped), value calculated using timer frequency.. 26.00 BogoMIPS (lpj=130000)
[    0.000157] pid_max: default: 32768 minimum: 301
[    0.000241] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.000253] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.001160] rcu: Hierarchical SRCU implementation.
[    0.001248] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[    0.001458] smp: Bringing up secondary CPUs ...
[    0.001695] Detected VIPT I-cache on CPU1
[    0.001718] GICv3: CPU1: found redistributor 1 region 0:0x000000000c0a0000
[    0.001743] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.002009] Detected VIPT I-cache on CPU2
[    0.002021] GICv3: CPU2: found redistributor 2 region 0:0x000000000c0c0000
[    0.002032] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[    0.002257] Detected VIPT I-cache on CPU3
[    0.002266] GICv3: CPU3: found redistributor 3 region 0:0x000000000c0e0000
[    0.002275] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[    0.002304] smp: Brought up 1 node, 4 CPUs
[    0.002318] SMP: Total of 4 processors activated.
[    0.002321] CPU features: detected: 32-bit EL0 Support
[    0.002324] CPU features: detected: CRC32 instructions
[    0.002395] CPU: All CPU(s) started at EL2
[    0.002405] alternatives: patching kernel code
[    0.004777] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.004799] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.004911] pinctrl core: initialized pinctrl subsystem
[    0.005483] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.005702] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations
[    0.005734] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.005759] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.005984] thermal_sys: Registered thermal governor 'fair_share'
[    0.005986] thermal_sys: Registered thermal governor 'bang_bang'
[    0.005989] thermal_sys: Registered thermal governor 'step_wise'
[    0.005992] thermal_sys: Registered thermal governor 'user_space'
[    0.006172] ASID allocator initialised with 65536 entries
[    0.006429] pstore: Registered ramoops as persistent store backend
[    0.006433] ramoops: using 0x10000@0x42ff0000, ecc: 0
[    0.015222] cryptd: max_cpu_qlen set to 1000
[    0.016957] SCSI subsystem initialized
[    0.017038] libata version 3.00 loaded.
[    0.017804] clocksource: Switched to clocksource arch_sys_counter
[    0.018148] NET: Registered PF_INET protocol family
[    0.018258] IP idents hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.018881] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear)
[    0.018902] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.018910] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.018977] TCP bind hash table entries: 16384 (order: 6, 262144 bytes, linear)
[    0.019147] TCP: Hash tables configured (established 16384 bind 16384)
[    0.019217] UDP hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.019244] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.019349] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.019369] PCI: CLS 0 bytes, default 64
[    0.021207] workingset: timestamp_bits=46 max_order=19 bucket_order=0
[    0.023204] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.023217] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.045039] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.046444] mtk-pcie-gen3 11280000.pcie: host bridge /soc/pcie@11280000 ranges:
[    0.046471] mtk-pcie-gen3 11280000.pcie: Parsing ranges property...
[    0.046482] mtk-pcie-gen3 11280000.pcie:      MEM 0x0020000000..0x002fffffff -> 0x0020000000
[    0.046529] phy phy-soc:[email protected]: u3 auto load valid efuse: ENABLE with value: 1
[    0.046559] phy phy-soc:[email protected]: pcie auto load valid efuse: ENABLE with value: 1
[    0.046582] phy phy-soc:[email protected]: u3 lane1 efuse - intr 29, rx_imp f, tx_imp e
[    0.046639] /soc/pcie@11280000: Failed to get clk index: 0 ret: -517
[    0.046649] mtk-pcie-gen3 11280000.pcie: failed to get clocks
[    0.048963] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.050506] printk: console [ttyS0] disabled
[    0.070648] 11002000.serial: ttyS0 at MMIO 0x11002000 (irq = 122, base_baud = 2500000) is a ST16650V2
[    0.768819] printk: console [ttyS0] enabled
[    0.793576] 11003000.serial: ttyS1 at MMIO 0x11003000 (irq = 123, base_baud = 1625000) is a ST16650V2
[    0.803409] mtk_rng 1020f000.trng: registered RNG driver
[    0.803467] hwrng: no data available
[    0.808975] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    0.820243] loop: module loaded
[    0.823391] Loading iSCSI transport class v2.0-870.
[    0.829623] spi-nand spi0.0: Winbond SPI NAND was found.
[    0.834930] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[    0.843161] 4 fixed-partitions partitions found on MTD device spi0.0
[    0.849505] Creating 4 MTD partitions on "spi0.0":
[    0.854278] 0x000000580000-0x000008000000 : "ubi"
[    0.988576] 0x000000380000-0x000000580000 : "fip"
[    0.995614] 0x000000080000-0x000000380000 : "reserved"
[    1.004166] 0x000000000000-0x000000080000 : "bl2"
[    1.140659] mtk_soc_eth 15100000.ethernet eth0: mediatek frame engine at 0xffffffc009700000, irq 134
[    1.150392] mtk_soc_eth 15100000.ethernet eth1: mediatek frame engine at 0xffffffc009700000, irq 134
[    1.159945] i2c_dev: i2c /dev entries driver
[    1.165610] mtk-wdt 1001c000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0)
[    1.174090] NET: Registered PF_INET6 protocol family
[    1.179650] Segment Routing with IPv6
[    1.183323] In-situ OAM (IOAM) with IPv6
[    1.187257] NET: Registered PF_PACKET protocol family
[    1.192342] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    1.205418] 8021q: 802.1Q VLAN Support v1.8
[    1.210481] pstore: Using crash dump compression: deflate
[    1.221037] mtk-pcie-gen3 11280000.pcie: host bridge /soc/pcie@11280000 ranges:
[    1.228370] mtk-pcie-gen3 11280000.pcie: Parsing ranges property...
[    1.234625] mtk-pcie-gen3 11280000.pcie:      MEM 0x0020000000..0x002fffffff -> 0x0020000000
[    1.243107] phy phy-soc:[email protected]: u3 auto load valid efuse: ENABLE with value: 1
[    1.251203] phy phy-soc:[email protected]: pcie auto load valid efuse: ENABLE with value: 1
[    1.259467] phy phy-soc:[email protected]: u3 lane1 efuse - intr 29, rx_imp f, tx_imp e
[    1.275972] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.287200] mmc0: new high speed SDXC card at address aaaa
[    1.293452] mmcblk0: mmc0:aaaa SN64G 59.5 GiB 
[    1.301491] Alternate GPT is invalid, using primary GPT.
[    1.307302] FIT: Selected configuration: "config-mt7986a-bananapi-bpi-r3-snand" (OpenWrt bananapi_bpi-r3 with mt7986a-bananapi-bpi-r3-snand)
[    1.319893] FIT:           kernel sub-image 0x00001000..0x0052362d "kernel-1" (ARM64 OpenWrt Linux-5.15.104) 
[    1.329827] FIT:          flat_dt sub-image 0x00524000..0x0052bfff "fdt-1" (ARM64 OpenWrt bananapi_bpi-r3 device tree blob) 
[    1.341030] FIT:          flat_dt sub-image 0x0052c000..0x00533fff "fdt-mt7986a-bananapi-bpi-r3-nor" (ARM64 OpenWrt bananapi_bpi-r3 device tree overlay mt7986a-bananapi-bpi-r3-nor) 
[    1.357173] FIT:          flat_dt sub-image 0x00534000..0x0053bfff "fdt-mt7986a-bananapi-bpi-r3-emmc-nor" (ARM64 OpenWrt bananapi_bpi-r3 device tree overlay mt7986a-bananapi-bpi-r3-emmc-nor) 
[    1.374182] FIT:          flat_dt sub-image 0x0053c000..0x00543fff "fdt-mt7986a-bananapi-bpi-r3-emmc-snand" (ARM64 OpenWrt bananapi_bpi-r3 device tree overlay mt7986a-bananapi-bpi-r3-emmc-snand) 
[    1.391540] FIT:          flat_dt sub-image 0x00544000..0x0054bfff "fdt-mt7986a-bananapi-bpi-r3-snand" (ARM64 OpenWrt bananapi_bpi-r3 device tree overlay mt7986a-bananapi-bpi-r3-snand) 
[    1.408024] FIT:       filesystem sub-image 0x0054c000..0x00a29fff "rootfs-1" (ARM64 OpenWrt bananapi_bpi-r3 rootfs) 
[    1.418611] FIT: selecting configured loadable "rootfs-1" to be root filesystem
[    1.425901]  mmcblk0: p1 p2 p3 p4 p5 p6 p7 p65(rootfs-1) p66(rootfs_data)
[    1.491540] mtk-pcie-gen3 11280000.pcie: PCIe link down, ltssm reg val: 0x1000001
[    1.499054] mtk-pcie-gen3: probe of 11280000.pcie failed with error -110
[    1.527787] mt7530 mdio-bus:1f: configuring for fixed/2500base-x link mode
[    1.536673] mt7530 mdio-bus:1f: Link is Up - 2.5Gbps/Full - flow control rx/tx
[    1.545358] mt7530 mdio-bus:1f wan (uninitialized): PHY [mt7530-0:00] driver [MediaTek MT7531 PHY] (irq=142)
[    1.565134] mt7530 mdio-bus:1f lan1 (uninitialized): PHY [mt7530-0:01] driver [MediaTek MT7531 PHY] (irq=143)
[    1.584715] mt7530 mdio-bus:1f lan2 (uninitialized): PHY [mt7530-0:02] driver [MediaTek MT7531 PHY] (irq=144)
[    1.604256] mt7530 mdio-bus:1f lan3 (uninitialized): PHY [mt7530-0:03] driver [MediaTek MT7531 PHY] (irq=145)
[    1.623796] mt7530 mdio-bus:1f lan4 (uninitialized): PHY [mt7530-0:04] driver [MediaTek MT7531 PHY] (irq=146)
[    1.634410] DSA: tree 0 setup
[    1.639558] UBI: auto-attach mtd0
[    1.642871] ubi0: default fastmap pool size: 45
[    1.647384] ubi0: default fastmap WL pool size: 22
[    1.652166] ubi0: attaching mtd0
[    5.264970] ubi0: scanning is finished
[    5.310039] ubi0: attached mtd0 (name "ubi", size 122 MiB)
[    5.315519] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    5.322388] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    5.329162] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    5.336101] ubi0: good PEBs: 980, bad PEBs: 0, corrupted PEBs: 0
[    5.342090] ubi0: user volume: 6, internal volumes: 1, max. volumes count: 128
[    5.349293] ubi0: max/mean erase counter: 4/2, WL threshold: 4096, image sequence number: 0
[    5.357618] ubi0: available PEBs: 0, total reserved PEBs: 980, PEBs reserved for bad PEB handling: 20
[    5.366818] ubi0: background thread "ubi_bgt0d" started, PID 526
[    5.372885] block ubiblock0_2: created from ubi0:2(fit)
[    5.382756] VFS: Mounted root (squashfs filesystem) readonly on device 259:0.
[    5.390031] Freeing unused kernel memory: 448K
[    5.437852] Run /sbin/init as init process
[    5.441933]   with arguments:
[    5.444884]     /sbin/init
[    5.447576]   with environment:
[    5.450707]     HOME=/
[    5.453052]     TERM=linux
[    5.562798] init: Console is alive
[    5.566293] init: - watchdog -
[    5.828220] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    5.847877] usbcore: registered new interface driver usbfs
[    5.853382] usbcore: registered new interface driver hub
[    5.858712] usbcore: registered new device driver usb
[    5.867429] phy phy-soc:[email protected]: u2 auto load valid efuse: ENABLE with value: 1
[    5.875598] phy phy-soc:[email protected]: u3 auto load valid efuse: ENABLE with value: 1
[    5.883729] phy phy-soc:[email protected]: u2 auto load valid efuse: ENABLE with value: 1
[    5.892256] xhci-mtk 11200000.usb: xHCI Host Controller
[    5.897473] xhci-mtk 11200000.usb: new USB bus registered, assigned bus number 1
[    5.907929] xhci-mtk 11200000.usb: hcc params 0x01403f99 hci version 0x110 quirks 0x0000000000210010
[    5.917072] xhci-mtk 11200000.usb: irq 126, io mem 0x11200000
[    5.922904] xhci-mtk 11200000.usb: xHCI Host Controller
[    5.928121] xhci-mtk 11200000.usb: new USB bus registered, assigned bus number 2
[    5.935498] xhci-mtk 11200000.usb: Host supports USB 3.2 Enhanced SuperSpeed
[    5.942881] hub 1-0:1.0: USB hub found
[    5.946639] hub 1-0:1.0: 2 ports detected
[    5.950886] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    5.959197] hub 2-0:1.0: USB hub found
[    5.962952] hub 2-0:1.0: 1 port detected
[    5.969442] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    5.979280] init: - preinit -
[    6.167383] mtk_soc_eth 15100000.ethernet eth0: configuring for fixed/2500base-x link mode
[    6.175838] mtk_soc_eth 15100000.ethernet eth0: Link is Up - 2.5Gbps/Full - flow control rx/tx
[    6.185842] mt7530 mdio-bus:1f lan1: configuring for phy/gmii link mode
[    6.197691] random: procd: uninitialized urandom read (4 bytes read)
[    6.407810] usb 1-1: new high-speed USB device number 2 using xhci-mtk
[    6.588475] hub 1-1:1.0: USB hub found
[    6.592284] hub 1-1:1.0: 4 ports detected
[    8.625065] F2FS-fs (mmcblk0p66): Disable nat_bits due to incorrect cp_ver (4273651460100511406, 0)
[    8.638532] F2FS-fs (mmcblk0p66): Mounted with checkpoint version = 351ed6ae
[    8.648477] mount_root: switching to f2fs overlay
[    8.654615] overlayfs: null uuid detected in lower fs '/', falling back to xino=off,index=off,nfs_export=off.
[    8.666624] urandom-seed: Seeding with /etc/urandom.seed
[    8.705641] procd: - early -
[    8.708586] procd: - watchdog -
[    9.234721] procd: - watchdog -
[    9.238806] procd: - ubus -
[    9.267371] random: ubusd: uninitialized urandom read (4 bytes read)
[    9.293490] random: ubusd: uninitialized urandom read (4 bytes read)
[    9.299987] random: ubusd: uninitialized urandom read (4 bytes read)
[    9.308479] procd: - init -
[    9.430030] urngd: v1.0.2 started.
[    9.449070] random: crng init done
[    9.452476] random: 23 urandom warning(s) missed due to ratelimiting
[    9.454004] kmodloader: loading kernel modules from /etc/modules.d/*
[    9.469987] i2c-gpio i2c-gpio-0: using lines 427 (SDA) and 428 (SCL)
[    9.476611] i2c-gpio i2c-gpio-1: using lines 429 (SDA) and 430 (SCL)
[    9.486297] crypto-safexcel 10320000.crypto: EIP97:230(0,1,4,4)-HIA:270(0,5,5),PE:150/433(alg:7fcdfc00)/0/0/0
[    9.500424] Loading modules backported from Linux version v6.1-rc8-0-g76dcd734eca2
[    9.508065] Backport generated by backports.git v5.15.81-1-41-g02e352527db5
[    9.518834] sfp sfp1: Host maximum power 1.0W
[    9.523928] sfp sfp2: Host maximum power 1.0W
[    9.867437] sfp sfp2: module HG GENUINE       MXPD-483II       rev  sn HA16140xxxx66    dc 160777  
[    9.876495] mt7530 mdio-bus:1f sfp2: switched to inband/1000base-x link mode
[    9.916609] hwmon hwmon1: temp1_input not attached to any thermal zone
[    9.971223] mt7986-wmac 18000000.wmac: HW/SW Version: 0x8a108a10, Build Time: 20221012174743a
[    9.971223] 
[   10.097496] mt7986-wmac 18000000.wmac: WM Firmware Version: ____000000, Build Time: 20221012174805
[   10.174509] mt7986-wmac 18000000.wmac: WA Firmware Version: DEV_000000, Build Time: 20221012174937
[   12.940470] PPP generic driver version 2.4.2
[   12.945378] NET: Registered PF_PPPOX protocol family
[   12.952775] kmodloader: done loading kernel modules from /etc/modules.d/*
[   14.444283] mtk_soc_eth 15100000.ethernet eth0: Link is Down
[   14.456376] mtk_soc_eth 15100000.ethernet eth0: configuring for fixed/2500base-x link mode
[   14.464866] mtk_soc_eth 15100000.ethernet eth0: Link is Up - 2.5Gbps/Full - flow control rx/tx
[   14.465979] mt7530 mdio-bus:1f lan1: configuring for phy/gmii link mode
[   14.481134] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   14.487679] br-lan: port 1(lan1) entered blocking state
[   14.492960] br-lan: port 1(lan1) entered disabled state
[   14.500413] device lan1 entered promiscuous mode
[   14.505035] device eth0 entered promiscuous mode
[   14.518650] mt7530 mdio-bus:1f lan2: configuring for phy/gmii link mode
[   14.528229] br-lan: port 2(lan2) entered blocking state
[   14.533504] br-lan: port 2(lan2) entered disabled state
[   14.540673] device lan2 entered promiscuous mode
[   14.551153] mt7530 mdio-bus:1f lan3: configuring for phy/gmii link mode
[   14.560581] br-lan: port 3(lan3) entered blocking state
[   14.565822] br-lan: port 3(lan3) entered disabled state
[   14.572996] device lan3 entered promiscuous mode
[   14.582261] mt7530 mdio-bus:1f lan4: configuring for phy/gmii link mode
[   14.591739] br-lan: port 4(lan4) entered blocking state
[   14.596982] br-lan: port 4(lan4) entered disabled state
[   14.604350] device lan4 entered promiscuous mode
[   14.613418] mt7530 mdio-bus:1f sfp2: configuring for inband/1000base-x link mode
[   14.622951] br-lan: port 5(sfp2) entered blocking state
[   14.628211] br-lan: port 5(sfp2) entered disabled state
[   14.635594] device sfp2 entered promiscuous mode
[   14.644317] mtk_soc_eth 15100000.ethernet eth1: configuring for inband/2500base-x link mode
[   14.654316] br-wan: port 1(eth1) entered blocking state
[   14.659590] br-wan: port 1(eth1) entered disabled state
[   14.664996] device eth1 entered promiscuous mode
[   14.671111] br-wan: port 1(eth1) entered blocking state
[   14.676342] br-wan: port 1(eth1) entered forwarding state
[   14.683605] mt7530 mdio-bus:1f wan: configuring for phy/gmii link mode
[   14.692911] br-wan: port 2(wan) entered blocking state
[   14.698052] br-wan: port 2(wan) entered disabled state
[   14.704602] device wan entered promiscuous mode
[   15.448737] br-wan: port 1(eth1) entered disabled state
[   41.324397] mt7530 mdio-bus:1f lan1: Link is Up - 100Mbps/Full - flow control rx/tx
[   41.332086] br-lan: port 1(lan1) entered blocking state
[   41.337299] br-lan: port 1(lan1) entered forwarding state

ethtool output

root@OpenWrt:~# ethtool sfp2
Settings for sfp2:
        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)
        Port: FIBRE
        PHYAD: 0
        Transceiver: internal
        Auto-negotiation: on
        Supports Wake-on: d
        Wake-on: d
        Link detected: no
root@OpenWrt:~# ethtool -m sfp2
Offset          Values
------          ------
0x0000:         03 04 07 00 01 00 02 22 00 01 05 03 1a 00 02 14
0x0010:         00 00 00 00 48 47 20 47 45 4e 55 49 4e 45 20 20
0x0020:         20 20 20 20 00 00 00 00 4d 58 50 44 2d 34 38 33
0x0030:         49 49 20 20 20 20 20 20 00 00 00 00 05 1e 00 60
0x0040:         00 1a 00 00 48 41 31 36 31 34 30 33 31 31 35 35
0x0050:         36 20 20 20 31 36 30 34 30 37 20 20 58 b0 05 b3
0x0060:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0070:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0080:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0090:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x00a0:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x00b0:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x00c0:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x00d0:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x00e0:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x00f0:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0100:         5f 00 ce 00 55 00 d8 00 8d cc 74 04 87 5a 7a 76
0x0110:         af c8 00 00 9c 40 00 00 1f 07 02 c4 13 94 04 62
0x0120:         1f 07 00 64 13 94 00 9e 00 00 00 00 00 00 00 00
0x0130:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0140:         00 00 00 00 3f 80 00 00 00 00 00 00 01 00 00 00
0x0150:         01 00 00 00 01 00 00 00 01 00 00 00 00 00 00 da
0x0160:         2c b3 82 f0 30 89 09 54 00 01 ff ff ff ff 02 00
0x0170:         00 40 ff ff 00 40 ff ff ff ff ff 00 00 00 00 00
0x0180:         ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
0x0190:         33 34 30 36 30 33 32 37 00 00 00 00 00 00 fe 66
0x01a0:         ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
0x01b0:         ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
0x01c0:         ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
0x01d0:         ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
0x01e0:         ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
0x01f0:         ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
root@OpenWrt:~#

snapshot recovery (initramfs) mode:

Kernel log

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 5.15.104 (builder@buildhost) (aarch64-openwrt-linux-musl-gcc (OpenWrt GCC 12.2.0 r22400-1558bbd116) 12.2.0, GNU ld (GNU Binutils) 2.40.0) #0 SMP Sat Mar 25 15:39:37 2023
[    0.000000] Machine model: Bananapi BPI-R3
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000040000000-0x00000000bfffffff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040000000-0x0000000042ffffff]
[    0.000000]   node   0: [mem 0x0000000043000000-0x000000004302ffff]
[    0.000000]   node   0: [mem 0x0000000043030000-0x000000004fbfffff]
[    0.000000]   node   0: [mem 0x000000004fc00000-0x000000004ffbffff]
[    0.000000]   node   0: [mem 0x000000004ffc0000-0x00000000bfffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x00000000bfffffff]
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.1 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: SMC Calling Convention v1.2
[    0.000000] percpu: Embedded 17 pages/cpu s30040 r8192 d31400 u69632
[    0.000000] pcpu-alloc: s30040 r8192 d31400 u69632 alloc=17*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: GIC system register CPU interface
[    0.000000] CPU features: kernel page table isolation disabled by kernel configuration
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 516096
[    0.000000] Kernel command line: root=/dev/ubiblock0_2p1
[    0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 2036692K/2097152K available (8320K kernel code, 898K rwdata, 2192K rodata, 448K init, 301K bss, 60460K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] 	Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GICv3: GIC: Using split EOI/Deactivate mode
[    0.000000] GICv3: 640 SPIs implemented
[    0.000000] GICv3: 0 Extended SPIs implemented
[    0.000000] GICv3: Distributor has no Range Selector support
[    0.000000] Root IRQ handler: gic_handle_irq
[    0.000000] GICv3: 16 PPIs implemented
[    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x000000000c080000
[    0.000000] arch_timer: cp15 timer(s) running at 13.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2ff89eacb, max_idle_ns: 440795202429 ns
[    0.000000] sched_clock: 56 bits at 13MHz, resolution 76ns, wraps every 4398046511101ns
[    0.000146] Calibrating delay loop (skipped), value calculated using timer frequency.. 26.00 BogoMIPS (lpj=130000)
[    0.000153] pid_max: default: 32768 minimum: 301
[    0.000240] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.000252] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.001148] rcu: Hierarchical SRCU implementation.
[    0.001237] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[    0.001445] smp: Bringing up secondary CPUs ...
[    0.001679] Detected VIPT I-cache on CPU1
[    0.001702] GICv3: CPU1: found redistributor 1 region 0:0x000000000c0a0000
[    0.001727] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.001994] Detected VIPT I-cache on CPU2
[    0.002006] GICv3: CPU2: found redistributor 2 region 0:0x000000000c0c0000
[    0.002017] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[    0.002242] Detected VIPT I-cache on CPU3
[    0.002253] GICv3: CPU3: found redistributor 3 region 0:0x000000000c0e0000
[    0.002262] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[    0.002289] smp: Brought up 1 node, 4 CPUs
[    0.002304] SMP: Total of 4 processors activated.
[    0.002308] CPU features: detected: 32-bit EL0 Support
[    0.002311] CPU features: detected: CRC32 instructions
[    0.002387] CPU: All CPU(s) started at EL2
[    0.002397] alternatives: patching kernel code
[    0.004814] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.004837] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.004946] pinctrl core: initialized pinctrl subsystem
[    0.005510] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.005724] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations
[    0.005754] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.005780] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.006010] thermal_sys: Registered thermal governor 'fair_share'
[    0.006014] thermal_sys: Registered thermal governor 'bang_bang'
[    0.006017] thermal_sys: Registered thermal governor 'step_wise'
[    0.006020] thermal_sys: Registered thermal governor 'user_space'
[    0.006201] ASID allocator initialised with 65536 entries
[    0.006455] pstore: Registered ramoops as persistent store backend
[    0.006459] ramoops: using 0x10000@0x42ff0000, ecc: 0
[    0.015252] cryptd: max_cpu_qlen set to 1000
[    0.016992] SCSI subsystem initialized
[    0.017077] libata version 3.00 loaded.
[    0.017843] clocksource: Switched to clocksource arch_sys_counter
[    0.018186] NET: Registered PF_INET protocol family
[    0.018297] IP idents hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.018916] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear)
[    0.018936] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.018944] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.019011] TCP bind hash table entries: 16384 (order: 6, 262144 bytes, linear)
[    0.019183] TCP: Hash tables configured (established 16384 bind 16384)
[    0.019254] UDP hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.019282] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.019386] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.019405] PCI: CLS 0 bytes, default 64
[    0.019552] Unpacking initramfs...
[    0.039762] workingset: timestamp_bits=46 max_order=19 bucket_order=0
[    0.041725] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.041739] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.063923] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.065254] pwm-mediatek 10048000.pwm: clock: top fail: -517
[    0.065493] mtk-pcie-gen3 11280000.pcie: host bridge /soc/pcie@11280000 ranges:
[    0.065508] mtk-pcie-gen3 11280000.pcie: Parsing ranges property...
[    0.065517] mtk-pcie-gen3 11280000.pcie:      MEM 0x0020000000..0x002fffffff -> 0x0020000000
[    0.065564] phy phy-soc:[email protected]: u3 auto load valid efuse: ENABLE with value: 1
[    0.065595] phy phy-soc:[email protected]: pcie auto load valid efuse: ENABLE with value: 1
[    0.065618] phy phy-soc:[email protected]: u3 lane1 efuse - intr 29, rx_imp f, tx_imp e
[    0.065672] /soc/pcie@11280000: Failed to get clk index: 0 ret: -517
[    0.065681] mtk-pcie-gen3 11280000.pcie: failed to get clocks
[    0.067779] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.069266] printk: console [ttyS0] disabled
[    0.089422] 11002000.serial: ttyS0 at MMIO 0x11002000 (irq = 122, base_baud = 2500000) is a ST16650V2
[    0.774848] Freeing initrd memory: 3684K
[    0.778004] printk: console [ttyS0] enabled
[    0.798652] 11003000.serial: ttyS1 at MMIO 0x11003000 (irq = 123, base_baud = 1625000) is a ST16650V2
[    0.815822] mtk_rng 1020f000.trng: registered RNG driver
[    0.815881] hwrng: no data available
[    0.821421] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    0.832706] loop: module loaded
[    0.835855] Loading iSCSI transport class v2.0-870.
[    0.842153] spi-nand spi0.0: Winbond SPI NAND was found.
[    0.847461] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[    0.858520] 4 fixed-partitions partitions found on MTD device spi0.0
[    0.864875] Creating 4 MTD partitions on "spi0.0":
[    0.869657] 0x000000580000-0x000008000000 : "ubi"
[    1.005619] 0x000000380000-0x000000580000 : "fip"
[    1.012689] 0x000000080000-0x000000380000 : "reserved"
[    1.021236] 0x000000000000-0x000000080000 : "bl2"
[    1.160925] mtk_soc_eth 15100000.ethernet eth0: mediatek frame engine at 0xffffffc00d800000, irq 134
[    1.170670] mtk_soc_eth 15100000.ethernet eth1: mediatek frame engine at 0xffffffc00d800000, irq 134
[    1.180224] i2c_dev: i2c /dev entries driver
[    1.185879] mtk-wdt 1001c000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0)
[    1.194327] NET: Registered PF_INET6 protocol family
[    1.199911] Segment Routing with IPv6
[    1.203585] In-situ OAM (IOAM) with IPv6
[    1.207522] NET: Registered PF_PACKET protocol family
[    1.212595] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    1.225579] 8021q: 802.1Q VLAN Support v1.8
[    1.230591] pstore: Using crash dump compression: deflate
[    1.241160] mtk-pcie-gen3 11280000.pcie: host bridge /soc/pcie@11280000 ranges:
[    1.248503] mtk-pcie-gen3 11280000.pcie: Parsing ranges property...
[    1.254756] mtk-pcie-gen3 11280000.pcie:      MEM 0x0020000000..0x002fffffff -> 0x0020000000
[    1.263224] phy phy-soc:[email protected]: u3 auto load valid efuse: ENABLE with value: 1
[    1.271324] phy phy-soc:[email protected]: pcie auto load valid efuse: ENABLE with value: 1
[    1.279588] phy phy-soc:[email protected]: u3 lane1 efuse - intr 29, rx_imp f, tx_imp e
[    1.335705] mtk-msdc 11230000.mmc: phase: [map:ffffffff] [maxlen:32] [final:10]
[    1.344651] mmc0: new HS400 MMC card at address 0001
[    1.350388] mmcblk0: mmc0:0001 008GB0 7.28 GiB 
[    1.356495] GPT:Primary header thinks Alt. header is not at the end of the disk.
[    1.363880] GPT:1 != 15269887
[    1.366833] GPT:Alternate GPT header not at the end of the disk.
[    1.372822] GPT:1 != 15269887
[    1.375773] GPT: Use GNU Parted to correct GPT errors.
[    1.380917]  mmcblk0: p1 p2 p3 p4 p5 p6
[    1.385757] mmcblk0boot0: mmc0:0001 008GB0 4.00 MiB 
[    1.391506] mmcblk0boot1: mmc0:0001 008GB0 4.00 MiB 
[    1.396665] mmcblk0rpmb: mmc0:0001 008GB0 4.00 MiB, chardev (250:0)
[    1.502956] mtk-pcie-gen3 11280000.pcie: PCIe link down, ltssm reg val: 0x1000001
[    1.510452] mtk-pcie-gen3: probe of 11280000.pcie failed with error -110
[    1.558284] mt7530 mdio-bus:1f: configuring for fixed/2500base-x link mode
[    1.565419] mt7530 mdio-bus:1f: Link is Up - 2.5Gbps/Full - flow control rx/tx
[    1.574361] mt7530 mdio-bus:1f wan (uninitialized): PHY [mt7530-0:00] driver [MediaTek MT7531 PHY] (irq=142)
[    1.594124] mt7530 mdio-bus:1f lan1 (uninitialized): PHY [mt7530-0:01] driver [MediaTek MT7531 PHY] (irq=143)
[    1.613724] mt7530 mdio-bus:1f lan2 (uninitialized): PHY [mt7530-0:02] driver [MediaTek MT7531 PHY] (irq=144)
[    1.633276] mt7530 mdio-bus:1f lan3 (uninitialized): PHY [mt7530-0:03] driver [MediaTek MT7531 PHY] (irq=145)
[    1.652815] mt7530 mdio-bus:1f lan4 (uninitialized): PHY [mt7530-0:04] driver [MediaTek MT7531 PHY] (irq=146)
[    1.663447] DSA: tree 0 setup
[    1.668589] UBI: auto-attach mtd0
[    1.671902] ubi0: default fastmap pool size: 45
[    1.676415] ubi0: default fastmap WL pool size: 22
[    1.681199] ubi0: attaching mtd0
[    5.295775] ubi0: scanning is finished
[    5.340826] ubi0: attached mtd0 (name "ubi", size 122 MiB)
[    5.346307] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    5.353174] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    5.359948] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    5.366888] ubi0: good PEBs: 980, bad PEBs: 0, corrupted PEBs: 0
[    5.372877] ubi0: user volume: 6, internal volumes: 1, max. volumes count: 128
[    5.380078] ubi0: max/mean erase counter: 4/2, WL threshold: 4096, image sequence number: 0
[    5.388407] ubi0: available PEBs: 0, total reserved PEBs: 980, PEBs reserved for bad PEB handling: 20
[    5.397605] ubi0: background thread "ubi_bgt0d" started, PID 522
[    5.409609] block ubiblock0_2: created from ubi0:2(fit)
[    5.415539] Freeing unused kernel memory: 448K
[    5.447891] Run /init as init process
[    5.451538]   with arguments:
[    5.454489]     /init
[    5.456746]   with environment:
[    5.459875]     HOME=/
[    5.462220]     TERM=linux
[    5.571941] init: Console is alive
[    5.575433] init: - watchdog -
[    5.581253] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    5.590436] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    5.599037] init: - preinit -
[    5.640551] mtk_soc_eth 15100000.ethernet eth0: configuring for fixed/2500base-x link mode
[    5.649035] mtk_soc_eth 15100000.ethernet eth0: Link is Up - 2.5Gbps/Full - flow control rx/tx
[    5.657313] mt7530 mdio-bus:1f lan1: configuring for phy/gmii link mode
[    5.668608] random: procd: uninitialized urandom read (4 bytes read)
[    7.698923] procd: - early -
[    7.701843] procd: - watchdog -
[    8.219280] procd: - watchdog -
[    8.222558] procd: - ubus -
[    8.227194] random: ubusd: uninitialized urandom read (4 bytes read)
[    8.274900] random: ubusd: uninitialized urandom read (4 bytes read)
[    8.281365] random: ubusd: uninitialized urandom read (4 bytes read)
[    8.288324] procd: - init -
[    8.358683] urngd: v1.0.2 started.
[    8.371176] kmodloader: loading kernel modules from /etc/modules.d/*
[    8.376792] random: crng init done
[    8.381020] random: 23 urandom warning(s) missed due to ratelimiting
[    8.390909] crypto-safexcel 10320000.crypto: EIP97:230(0,1,4,4)-HIA:270(0,5,5),PE:150/433(alg:7fcdfc00)/0/0/0
[    8.404869] Loading modules backported from Linux version v6.1-rc8-0-g76dcd734eca2
[    8.412448] Backport generated by backports.git v5.15.81-1-41-g02e352527db5
[    8.871174] mt7986-wmac 18000000.wmac: HW/SW Version: 0x8a108a10, Build Time: 20221012174743a
[    8.871174] 
[    8.888847] mt7986-wmac 18000000.wmac: WM Firmware Version: ____000000, Build Time: 20221012174805
[    8.928132] mt7986-wmac 18000000.wmac: WA Firmware Version: DEV_000000, Build Time: 20221012174937
[   11.693427] PPP generic driver version 2.4.2
[   11.698443] NET: Registered PF_PPPOX protocol family
[   11.705637] kmodloader: done loading kernel modules from /etc/modules.d/*
[   17.534929] mtk_soc_eth 15100000.ethernet eth0: Link is Down
[   17.546553] mtk_soc_eth 15100000.ethernet eth0: configuring for fixed/2500base-x link mode
[   17.554985] mtk_soc_eth 15100000.ethernet eth0: Link is Up - 2.5Gbps/Full - flow control rx/tx
[   17.556057] mt7530 mdio-bus:1f lan1: configuring for phy/gmii link mode
[   17.573121] br-lan: port 1(lan1) entered blocking state
[   17.578340] br-lan: port 1(lan1) entered disabled state
[   17.584975] device lan1 entered promiscuous mode
[   17.589586] device eth0 entered promiscuous mode
[   17.596296] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   17.608458] mt7530 mdio-bus:1f lan2: configuring for phy/gmii link mode
[   17.618003] br-lan: port 2(lan2) entered blocking state
[   17.623226] br-lan: port 2(lan2) entered disabled state
[   17.630173] device lan2 entered promiscuous mode
[   17.639215] mt7530 mdio-bus:1f lan3: configuring for phy/gmii link mode
[   17.648748] br-lan: port 3(lan3) entered blocking state
[   17.653967] br-lan: port 3(lan3) entered disabled state
[   17.661018] device lan3 entered promiscuous mode
[   17.669952] mt7530 mdio-bus:1f lan4: configuring for phy/gmii link mode
[   17.679390] br-lan: port 4(lan4) entered blocking state
[   17.684618] br-lan: port 4(lan4) entered disabled state
[   17.691896] device lan4 entered promiscuous mode
[   17.700805] mt7530 mdio-bus:1f sfp2: configuring for inband/2500base-x link mode
[   17.709536] mt7530 mdio-bus:1f sfp2: Link is Up - 2.5Gbps/Full - flow control off
[   17.709614] br-lan: port 5(sfp2) entered blocking state
[   17.722223] br-lan: port 5(sfp2) entered disabled state
[   17.729553] device sfp2 entered promiscuous mode
[   17.736312] br-lan: port 5(sfp2) entered blocking state
[   17.741529] br-lan: port 5(sfp2) entered forwarding state
[   17.746977] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   17.756081] mtk_soc_eth 15100000.ethernet eth1: configuring for inband/2500base-x link mode
[   17.766110] br-wan: port 1(eth1) entered blocking state
[   17.771372] br-wan: port 1(eth1) entered disabled state
[   17.776752] device eth1 entered promiscuous mode
[   17.782855] br-wan: port 1(eth1) entered blocking state
[   17.788119] br-wan: port 1(eth1) entered forwarding state
[   17.795308] mt7530 mdio-bus:1f wan: configuring for phy/gmii link mode
[   17.804611] br-wan: port 2(wan) entered blocking state
[   17.809748] br-wan: port 2(wan) entered disabled state
[   17.816300] device wan entered promiscuous mode
[   18.568730] br-wan: port 1(eth1) entered disabled state

ethtool output

root@OpenWrt:~# ethtool sfp2
Settings for sfp2:
        Supported ports: [ MII ]
        Supported link modes:   2500baseX/Full
        Supported pause frame use: Symmetric Receive-only
        Supports auto-negotiation: No
        Supported FEC modes: Not reported
        Advertised link modes:  2500baseX/Full
        Advertised pause frame use: Symmetric Receive-only
        Advertised auto-negotiation: No
        Advertised FEC modes: Not reported
        Speed: 2500Mb/s
        Duplex: Full
        Port: MII
        PHYAD: 0
        Transceiver: internal
        Auto-negotiation: on
        Supports Wake-on: d
        Wake-on: d
        Link detected: yes
root@OpenWrt:~# ethtool -m sfp2
Cannot get module EEPROM information: Not supported
root@OpenWrt:~#

could you try adding these 2 Patches:

https://lore.kernel.org/netdev/167955062190.14332.12018910625899155487.git-patchwork-notify@kernel.org/T/

and add a quirk like this:

SFP_QUIRK_M("HG GENUINE", "MXPD-483II", sfp_quirk_oem_2_5g),

OpenWrt actually reads the module capabilities as defined in the module’s EEPROM. If those are wrong, we have to add a quirk (sfp_quirk_2500basex) for this module.

Please create target/linux/generic/pending-5.15/701-net-sfp-add-quirk-for-MXPD-483II.patch with this content:

--- a/drivers/net/phy/sfp.c
+++ b/drivers/net/phy/sfp.c
@@ -366,6 +366,10 @@ static const struct sfp_quirk sfp_quirks
 		.part = "HL-GSFP",
 		.fixup = sfp_fixup_halny_gsfp,
 	}, {
+		.vendor = "HG GENUINE",
+		.part = "MXPD-483II",
+		.modes = sfp_quirk_2500basex,
+	}, {
 		// Huawei MA5671A can operate at 2500base-X, but report 1.2GBd
 		// NRZ in their EEPROM
 		.vendor = "HUAWEI",

If that makes the module work as expected, we shall submit this patch also to upstream Linux.

OpenWrt is on Linux 5.15… So that won’t match. Please use the instructions I’ve posted for OpenWrt. Also note that sfp_quirk_oem_2_5g is meant for 2500Base-T SFP modules with a hidden PHY, while @Tombpi reported this problem for an actual 2500Base-X (1310nm fiber) module. Hence sfp_quirk_2500basex would be the correct thing to do.

Probably you are missing the SFP drivers, so the interface stays in it’s default mode independently of the actually detected SFP module (ie. 2500Base-X is always used, no matter what is read in the modules EEPROM).

With some hours try and error. I have build image with patch successfully.

And the patch solve the issue!.

Here is ethtool output:

root@OpenWrt:~# ethtool sfp2
Settings for sfp2:
        Supported ports: [ FIBRE ]
        Supported link modes:   2500baseX/Full
                                1000baseX/Full
        Supported pause frame use: Symmetric Receive-only
        Supports auto-negotiation: Yes
        Supported FEC modes: Not reported
        Advertised link modes:  2500baseX/Full
                                1000baseX/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
        Supports Wake-on: d
        Wake-on: d
        Link detected: yes
root@OpenWrt:~# ethtool -m sfp2
        Identifier                                : 0x03 (SFP)
        Extended identifier                       : 0x04 (GBIC/SFP defined by 2-wire interface ID)
        Connector                                 : 0x07 (LC)
        Transceiver codes                         : 0x00 0x01 0x00 0x02 0x22 0x00 0x01 0x05 0x00
        Transceiver type                          : SONET: OC-48, short reach
        Transceiver type                          : Ethernet: 1000BASE-LX
        Transceiver type                          : FC: intermediate distance (I)
        Transceiver type                          : FC: Longwave laser (LC)
        Transceiver type                          : FC: Single Mode (SM)
        Transceiver type                          : FC: 200 MBytes/sec
        Transceiver type                          : FC: 100 MBytes/sec
        Encoding                                  : 0x03 (NRZ)
        BR, Nominal                               : 2600MBd
        Rate identifier                           : 0x00 (unspecified)
        Length (SMF,km)                           : 2km
        Length (SMF)                              : 2000m
        Length (50um)                             : 0m
        Length (62.5um)                           : 0m
        Length (Copper)                           : 0m
        Length (OM3)                              : 0m
        Laser wavelength                          : 1310nm
        Vendor name                               : HG GENUINE
        Vendor OUI                                : 00:00:00
        Vendor PN                                 : MXPD-483II
        Vendor rev                                : ____
        Option values                             : 0x00 0x1a
        Option                                    : RX_LOS implemented
        Option                                    : TX_FAULT implemented
        Option                                    : TX_DISABLE implemented
        BR margin, max                            : 0%
        BR margin, min                            : 0%
        Vendor SN                                 : HA16140xxxx66
        Date code                                 : 160707
        Optical diagnostics support               : Yes
        Laser bias current                        : 24.950 mA
        Laser output power                        : 0.2365 mW / -6.26 dBm
        Receiver signal average optical power     : 0.6408 mW / -1.93 dBm
        Module temperature                        : 47.10 degrees C / 116.78 degrees F
        Module voltage                            : 3.3760 V
        Alarm/warning flags implemented           : Yes
        Laser bias current high alarm             : Off
        Laser bias current low alarm              : Off
        Laser bias current high warning           : Off
        Laser bias current low warning            : Off
        Laser output power high alarm             : Off
        Laser output power low alarm              : Off
        Laser output power high warning           : Off
        Laser output power low warning            : Off
        Module temperature high alarm             : Off
        Module temperature low alarm              : Off
        Module temperature high warning           : Off
        Module temperature low warning            : Off
        Module voltage high alarm                 : Off
        Module voltage low alarm                  : Off
        Module voltage high warning               : Off
        Module voltage low warning                : Off
        Laser rx power high alarm                 : Off
        Laser rx power low alarm                  : Off
        Laser rx power high warning               : On
        Laser rx power low warning                : Off
        Laser bias current high alarm threshold   : 90.000 mA
        Laser bias current low alarm threshold    : 0.000 mA
        Laser bias current high warning threshold : 80.000 mA
        Laser bias current low warning threshold  : 0.000 mA
        Laser output power high alarm threshold   : 0.7943 mW / -1.00 dBm
        Laser output power low alarm threshold    : 0.0708 mW / -11.50 dBm
        Laser output power high warning threshold : 0.5012 mW / -3.00 dBm
        Laser output power low warning threshold  : 0.1122 mW / -9.50 dBm
        Module temperature high alarm threshold   : 95.00 degrees C / 203.00 degrees F
        Module temperature low alarm threshold    : -50.00 degrees C / -58.00 degrees F
        Module temperature high warning threshold : 85.00 degrees C / 185.00 degrees F
        Module temperature low warning threshold  : -40.00 degrees C / -40.00 degrees F
        Module voltage high alarm threshold       : 3.6300 V
        Module voltage low alarm threshold        : 2.9700 V
        Module voltage high warning threshold     : 3.4650 V
        Module voltage low warning threshold      : 3.1350 V
        Laser rx power high alarm threshold       : 0.7943 mW / -1.00 dBm
        Laser rx power low alarm threshold        : 0.0100 mW / -20.00 dBm
        Laser rx power high warning threshold     : 0.5012 mW / -3.00 dBm
        Laser rx power low warning threshold      : 0.0158 mW / -18.01 dBm
root@OpenWrt:~#

The sfp2 slot works with 2500baseX mode and ethtool can read EEPROM correctly.

Many thanks for Daniel provide the steps that help me to build image with patch.

Kernel log

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 5.15.104 (root@debian) (aarch64-openwrt-linux-musl-gcc (OpenWrt GCC 12.2.0 r22463-3c3d797c4d) 12.2.0, GNU ld (GNU Binutils) 2.40.0) #0 SMP Sat Apr 1 07:16:30 2023
[    0.000000] Machine model: Bananapi BPI-R3
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000040000000-0x00000000bfffffff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040000000-0x0000000042ffffff]
[    0.000000]   node   0: [mem 0x0000000043000000-0x000000004302ffff]
[    0.000000]   node   0: [mem 0x0000000043030000-0x000000004fbfffff]
[    0.000000]   node   0: [mem 0x000000004fc00000-0x000000004ffbffff]
[    0.000000]   node   0: [mem 0x000000004ffc0000-0x00000000bfffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x00000000bfffffff]
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.1 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: SMC Calling Convention v1.2
[    0.000000] percpu: Embedded 17 pages/cpu s29592 r8192 d31848 u69632
[    0.000000] pcpu-alloc: s29592 r8192 d31848 u69632 alloc=17*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: GIC system register CPU interface
[    0.000000] CPU features: kernel page table isolation disabled by kernel configuration
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 516096
[    0.000000] Kernel command line: root=/dev/mmcblk0p65
[    0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 2040768K/2097152K available (8064K kernel code, 886K rwdata, 2156K rodata, 384K init, 286K bss, 56384K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] 	Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GICv3: GIC: Using split EOI/Deactivate mode
[    0.000000] GICv3: 640 SPIs implemented
[    0.000000] GICv3: 0 Extended SPIs implemented
[    0.000000] GICv3: Distributor has no Range Selector support
[    0.000000] Root IRQ handler: gic_handle_irq
[    0.000000] GICv3: 16 PPIs implemented
[    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x000000000c080000
[    0.000000] arch_timer: cp15 timer(s) running at 13.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2ff89eacb, max_idle_ns: 440795202429 ns
[    0.000000] sched_clock: 56 bits at 13MHz, resolution 76ns, wraps every 4398046511101ns
[    0.000142] Calibrating delay loop (skipped), value calculated using timer frequency.. 26.00 BogoMIPS (lpj=130000)
[    0.000150] pid_max: default: 32768 minimum: 301
[    0.000235] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.000248] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.001138] rcu: Hierarchical SRCU implementation.
[    0.001228] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[    0.001442] smp: Bringing up secondary CPUs ...
[    0.001676] Detected VIPT I-cache on CPU1
[    0.001698] GICv3: CPU1: found redistributor 1 region 0:0x000000000c0a0000
[    0.001724] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.001987] Detected VIPT I-cache on CPU2
[    0.001998] GICv3: CPU2: found redistributor 2 region 0:0x000000000c0c0000
[    0.002010] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[    0.002233] Detected VIPT I-cache on CPU3
[    0.002242] GICv3: CPU3: found redistributor 3 region 0:0x000000000c0e0000
[    0.002251] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[    0.002278] smp: Brought up 1 node, 4 CPUs
[    0.002291] SMP: Total of 4 processors activated.
[    0.002294] CPU features: detected: 32-bit EL0 Support
[    0.002298] CPU features: detected: CRC32 instructions
[    0.002372] CPU: All CPU(s) started at EL2
[    0.002382] alternatives: patching kernel code
[    0.004834] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.004857] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.004970] pinctrl core: initialized pinctrl subsystem
[    0.005413] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.005635] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations
[    0.005665] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.005696] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.005925] thermal_sys: Registered thermal governor 'fair_share'
[    0.005928] thermal_sys: Registered thermal governor 'bang_bang'
[    0.005931] thermal_sys: Registered thermal governor 'step_wise'
[    0.005934] thermal_sys: Registered thermal governor 'user_space'
[    0.006114] ASID allocator initialised with 65536 entries
[    0.006371] pstore: Registered ramoops as persistent store backend
[    0.006375] ramoops: using 0x10000@0x42ff0000, ecc: 0
[    0.015200] cryptd: max_cpu_qlen set to 1000
[    0.016929] SCSI subsystem initialized
[    0.017012] libata version 3.00 loaded.
[    0.017783] clocksource: Switched to clocksource arch_sys_counter
[    0.018132] NET: Registered PF_INET protocol family
[    0.018241] IP idents hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.018813] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear)
[    0.018834] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.018843] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.018911] TCP bind hash table entries: 16384 (order: 6, 262144 bytes, linear)
[    0.019084] TCP: Hash tables configured (established 16384 bind 16384)
[    0.019155] UDP hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.019182] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.019283] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.019302] PCI: CLS 0 bytes, default 64
[    0.021090] workingset: timestamp_bits=46 max_order=19 bucket_order=0
[    0.023060] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.023073] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.046390] mtk-pcie-gen3 11280000.pcie: host bridge /soc/pcie@11280000 ranges:
[    0.046419] mtk-pcie-gen3 11280000.pcie: Parsing ranges property...
[    0.046428] mtk-pcie-gen3 11280000.pcie:      MEM 0x0020000000..0x002fffffff -> 0x0020000000
[    0.046478] phy phy-soc:[email protected]: u3 auto load valid efuse: ENABLE with value: 1
[    0.046508] phy phy-soc:[email protected]: pcie auto load valid efuse: ENABLE with value: 1
[    0.046531] phy phy-soc:[email protected]: u3 lane1 efuse - intr 29, rx_imp f, tx_imp e
[    0.046588] /soc/pcie@11280000: Failed to get clk index: 0 ret: -517
[    0.046597] mtk-pcie-gen3 11280000.pcie: failed to get clocks
[    0.048959] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    0.049449] printk: console [ttyS0] disabled
[    0.069580] 11002000.serial: ttyS0 at MMIO 0x11002000 (irq = 122, base_baud = 2500000) is a ST16650V2
[    0.759766] printk: console [ttyS0] enabled
[    0.784512] 11003000.serial: ttyS1 at MMIO 0x11003000 (irq = 123, base_baud = 1625000) is a ST16650V2
[    0.794350] mtk_rng 1020f000.trng: registered RNG driver
[    0.794409] hwrng: no data available
[    0.799927] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    0.811075] loop: module loaded
[    0.815264] spi-nand spi0.0: Winbond SPI NAND was found.
[    0.820578] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[    0.828825] 4 fixed-partitions partitions found on MTD device spi0.0
[    0.835162] Creating 4 MTD partitions on "spi0.0":
[    0.839948] 0x000000580000-0x000008000000 : "ubi"
[    0.972528] 0x000000380000-0x000000580000 : "fip"
[    0.979536] 0x000000080000-0x000000380000 : "reserved"
[    0.987968] 0x000000000000-0x000000080000 : "bl2"
[    1.120834] mtk_soc_eth 15100000.ethernet eth0: mediatek frame engine at 0xffffffc009580000, irq 134
[    1.130572] mtk_soc_eth 15100000.ethernet eth1: mediatek frame engine at 0xffffffc009580000, irq 134
[    1.140109] i2c_dev: i2c /dev entries driver
[    1.145770] mtk-wdt 1001c000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0)
[    1.154164] NET: Registered PF_INET6 protocol family
[    1.159755] Segment Routing with IPv6
[    1.163429] In-situ OAM (IOAM) with IPv6
[    1.167365] NET: Registered PF_PACKET protocol family
[    1.172515] 8021q: 802.1Q VLAN Support v1.8
[    1.177449] pstore: Using crash dump compression: deflate
[    1.188055] mtk-pcie-gen3 11280000.pcie: host bridge /soc/pcie@11280000 ranges:
[    1.195365] mtk-pcie-gen3 11280000.pcie: Parsing ranges property...
[    1.201647] mtk-pcie-gen3 11280000.pcie:      MEM 0x0020000000..0x002fffffff -> 0x0020000000
[    1.210117] phy phy-soc:[email protected]: u3 auto load valid efuse: ENABLE with value: 1
[    1.218215] phy phy-soc:[email protected]: pcie auto load valid efuse: ENABLE with value: 1
[    1.226474] phy phy-soc:[email protected]: u3 lane1 efuse - intr 29, rx_imp f, tx_imp e
[    1.266131] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.277358] mmc0: new high speed SDXC card at address aaaa
[    1.283597] mmcblk0: mmc0:aaaa SN64G 59.5 GiB 
[    1.291617] Alternate GPT is invalid, using primary GPT.
[    1.297476] FIT: Selected configuration: "config-mt7986a-bananapi-bpi-r3-snand" (OpenWrt bananapi_bpi-r3 with mt7986a-bananapi-bpi-r3-snand)
[    1.310079] FIT:           kernel sub-image 0x00001000..0x004fab64 "kernel-1" (ARM64 OpenWrt Linux-5.15.104) 
[    1.319979] FIT:          flat_dt sub-image 0x004fb000..0x00502fff "fdt-1" (ARM64 OpenWrt bananapi_bpi-r3 device tree blob) 
[    1.331180] FIT:          flat_dt sub-image 0x00503000..0x0050afff "fdt-mt7986a-bananapi-bpi-r3-nor" (ARM64 OpenWrt bananapi_bpi-r3 device tree overlay mt7986a-bananapi-bpi-r3-nor) 
[    1.347323] FIT:          flat_dt sub-image 0x0050b000..0x00512fff "fdt-mt7986a-bananapi-bpi-r3-emmc-nor" (ARM64 OpenWrt bananapi_bpi-r3 device tree overlay mt7986a-bananapi-bpi-r3-emmc-nor) 
[    1.364338] FIT:          flat_dt sub-image 0x00513000..0x0051afff "fdt-mt7986a-bananapi-bpi-r3-emmc-snand" (ARM64 OpenWrt bananapi_bpi-r3 device tree overlay mt7986a-bananapi-bpi-r3-emmc-snand) 
[    1.381696] FIT:          flat_dt sub-image 0x0051b000..0x00522fff "fdt-mt7986a-bananapi-bpi-r3-snand" (ARM64 OpenWrt bananapi_bpi-r3 device tree overlay mt7986a-bananapi-bpi-r3-snand) 
[    1.398179] FIT:       filesystem sub-image 0x00523000..0x00a76fff "rootfs-1" (ARM64 OpenWrt bananapi_bpi-r3 rootfs) 
[    1.408766] FIT: selecting configured loadable "rootfs-1" to be root filesystem
[    1.416055]  mmcblk0: p1 p2 p3 p4 p5 p6 p7 p65(rootfs-1) p66(rootfs_data)
[    1.464339] mtk-pcie-gen3 11280000.pcie: PCIe link down, ltssm reg val: 0x1000001
[    1.471852] mtk-pcie-gen3: probe of 11280000.pcie failed with error -110
[    1.500589] mt7530 mdio-bus:1f: configuring for fixed/2500base-x link mode
[    1.509458] mt7530 mdio-bus:1f: Link is Up - 2.5Gbps/Full - flow control rx/tx
[    1.518144] mt7530 mdio-bus:1f wan (uninitialized): PHY [mt7530-0:00] driver [MediaTek MT7531 PHY] (irq=142)
[    1.538014] mt7530 mdio-bus:1f lan1 (uninitialized): PHY [mt7530-0:01] driver [MediaTek MT7531 PHY] (irq=143)
[    1.557550] mt7530 mdio-bus:1f lan2 (uninitialized): PHY [mt7530-0:02] driver [MediaTek MT7531 PHY] (irq=144)
[    1.577105] mt7530 mdio-bus:1f lan3 (uninitialized): PHY [mt7530-0:03] driver [MediaTek MT7531 PHY] (irq=145)
[    1.596644] mt7530 mdio-bus:1f lan4 (uninitialized): PHY [mt7530-0:04] driver [MediaTek MT7531 PHY] (irq=146)
[    1.607258] DSA: tree 0 setup
[    1.612399] UBI: auto-attach mtd0
[    1.615711] ubi0: default fastmap pool size: 45
[    1.620238] ubi0: default fastmap WL pool size: 22
[    1.625011] ubi0: attaching mtd0
[    5.238494] ubi0: scanning is finished
[    5.283589] ubi0: attached mtd0 (name "ubi", size 122 MiB)
[    5.289084] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    5.295939] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    5.302710] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    5.309653] ubi0: good PEBs: 980, bad PEBs: 0, corrupted PEBs: 0
[    5.315638] ubi0: user volume: 6, internal volumes: 1, max. volumes count: 128
[    5.322841] ubi0: max/mean erase counter: 4/2, WL threshold: 4096, image sequence number: 0
[    5.331169] ubi0: available PEBs: 0, total reserved PEBs: 980, PEBs reserved for bad PEB handling: 20
[    5.340369] ubi0: background thread "ubi_bgt0d" started, PID 471
[    5.346414] block ubiblock0_2: created from ubi0:2(fit)
[    5.356461] VFS: Mounted root (squashfs filesystem) readonly on device 259:0.
[    5.363717] Freeing unused kernel memory: 384K
[    5.407804] Run /sbin/init as init process
[    5.411885]   with arguments:
[    5.414836]     /sbin/init
[    5.417527]   with environment:
[    5.420658]     HOME=/
[    5.423002]     TERM=linux
[    5.538934] init: Console is alive
[    5.542437] init: - watchdog -
[    5.802850] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    5.823319] usbcore: registered new interface driver usbfs
[    5.828850] usbcore: registered new interface driver hub
[    5.834176] usbcore: registered new device driver usb
[    5.842845] phy phy-soc:[email protected]: u2 auto load valid efuse: ENABLE with value: 1
[    5.851004] phy phy-soc:[email protected]: u3 auto load valid efuse: ENABLE with value: 1
[    5.859138] phy phy-soc:[email protected]: u2 auto load valid efuse: ENABLE with value: 1
[    5.867657] xhci-mtk 11200000.usb: xHCI Host Controller
[    5.872881] xhci-mtk 11200000.usb: new USB bus registered, assigned bus number 1
[    5.883342] xhci-mtk 11200000.usb: hcc params 0x01403f99 hci version 0x110 quirks 0x0000000000210010
[    5.892492] xhci-mtk 11200000.usb: irq 126, io mem 0x11200000
[    5.898301] xhci-mtk 11200000.usb: xHCI Host Controller
[    5.903511] xhci-mtk 11200000.usb: new USB bus registered, assigned bus number 2
[    5.910893] xhci-mtk 11200000.usb: Host supports USB 3.2 Enhanced SuperSpeed
[    5.918241] hub 1-0:1.0: USB hub found
[    5.921996] hub 1-0:1.0: 2 ports detected
[    5.926230] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    5.934561] hub 2-0:1.0: USB hub found
[    5.938318] hub 2-0:1.0: 1 port detected
[    5.944692] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    5.958570] init: - preinit -
[    6.153445] mtk_soc_eth 15100000.ethernet eth0: configuring for fixed/2500base-x link mode
[    6.161909] mtk_soc_eth 15100000.ethernet eth0: Link is Up - 2.5Gbps/Full - flow control rx/tx
[    6.170151] mt7530 mdio-bus:1f lan1: configuring for phy/gmii link mode
[    6.182396] random: procd: uninitialized urandom read (4 bytes read)
[    6.387785] usb 1-1: new high-speed USB device number 2 using xhci-mtk
[    6.568404] hub 1-1:1.0: USB hub found
[    6.572216] hub 1-1:1.0: 4 ports detected
[    8.607161] F2FS-fs (mmcblk0p66): Disable nat_bits due to incorrect cp_ver (11853054146559006382, 0)
[    8.620860] F2FS-fs (mmcblk0p66): Mounted with checkpoint version = 351ed6ae
[    8.629803] mount_root: switching to f2fs overlay
[    8.636362] overlayfs: null uuid detected in lower fs '/', falling back to xino=off,index=off,nfs_export=off.
[    8.648403] urandom-seed: Seeding with /etc/urandom.seed
[    8.682804] procd: - early -
[    8.685726] procd: - watchdog -
[    9.208275] procd: - watchdog -
[    9.211624] procd: - ubus -
[    9.233305] random: ubusd: uninitialized urandom read (4 bytes read)
[    9.265645] random: ubusd: uninitialized urandom read (4 bytes read)
[    9.272125] random: ubusd: uninitialized urandom read (4 bytes read)
[    9.280248] procd: - init -
[    9.396054] urngd: v1.0.2 started.
[    9.407973] kmodloader: loading kernel modules from /etc/modules.d/*
[    9.414335] random: crng init done
[    9.417722] random: 23 urandom warning(s) missed due to ratelimiting
[    9.427754] i2c-gpio i2c-gpio-0: using lines 427 (SDA) and 428 (SCL)
[    9.434402] i2c-gpio i2c-gpio-1: using lines 429 (SDA) and 430 (SCL)
[    9.443876] crypto-safexcel 10320000.crypto: EIP97:230(0,1,4,4)-HIA:270(0,5,5),PE:150/433(alg:7fcdfc00)/0/0/0
[    9.457880] Loading modules backported from Linux version v6.1-rc8-0-g76dcd734eca2
[    9.465444] Backport generated by backports.git v5.15.81-1-41-g02e352527db5
[    9.476334] sfp sfp1: Host maximum power 1.0W
[    9.481481] sfp sfp2: Host maximum power 1.0W
[    9.817381] sfp sfp2: module HG GENUINE       MXPD-483II       rev  sn HA16140xxxx66    dc 160707  
[    9.866565] hwmon hwmon1: temp1_input not attached to any thermal zone
[    9.931200] mt7986-wmac 18000000.wmac: HW/SW Version: 0x8a108a10, Build Time: 20221012174743a
[    9.931200] 
[   10.057616] mt7986-wmac 18000000.wmac: WM Firmware Version: ____000000, Build Time: 20221012174805
[   10.135759] mt7986-wmac 18000000.wmac: WA Firmware Version: DEV_000000, Build Time: 20221012174937
[   12.903618] PPP generic driver version 2.4.2
[   12.908612] NET: Registered PF_PPPOX protocol family
[   12.915959] kmodloader: done loading kernel modules from /etc/modules.d/*
[   14.431576] mtk_soc_eth 15100000.ethernet eth0: Link is Down
[   14.442942] mtk_soc_eth 15100000.ethernet eth0: configuring for fixed/2500base-x link mode
[   14.451544] mtk_soc_eth 15100000.ethernet eth0: Link is Up - 2.5Gbps/Full - flow control rx/tx
[   14.460453] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   14.467446] mt7530 mdio-bus:1f lan1: configuring for phy/gmii link mode
[   14.477277] br-lan: port 1(lan1) entered blocking state
[   14.482539] br-lan: port 1(lan1) entered disabled state
[   14.489268] device lan1 entered promiscuous mode
[   14.493891] device eth0 entered promiscuous mode
[   14.509208] mt7530 mdio-bus:1f lan2: configuring for phy/gmii link mode
[   14.519706] br-lan: port 2(lan2) entered blocking state
[   14.524949] br-lan: port 2(lan2) entered disabled state
[   14.532083] device lan2 entered promiscuous mode
[   14.541509] mt7530 mdio-bus:1f lan3: configuring for phy/gmii link mode
[   14.551054] br-lan: port 3(lan3) entered blocking state
[   14.556288] br-lan: port 3(lan3) entered disabled state
[   14.563399] device lan3 entered promiscuous mode
[   14.572665] mt7530 mdio-bus:1f lan4: configuring for phy/gmii link mode
[   14.582099] br-lan: port 4(lan4) entered blocking state
[   14.587327] br-lan: port 4(lan4) entered disabled state
[   14.594664] device lan4 entered promiscuous mode
[   14.603570] mt7530 mdio-bus:1f sfp2: configuring for inband/2500base-x link mode
[   14.612991] br-lan: port 5(sfp2) entered blocking state
[   14.618242] br-lan: port 5(sfp2) entered disabled state
[   14.625632] device sfp2 entered promiscuous mode
[   14.634312] mtk_soc_eth 15100000.ethernet eth1: configuring for inband/2500base-x link mode
[   14.644389] br-wan: port 1(eth1) entered blocking state
[   14.649656] br-wan: port 1(eth1) entered disabled state
[   14.655054] device eth1 entered promiscuous mode
[   14.660882] br-wan: port 1(eth1) entered blocking state
[   14.666112] br-wan: port 1(eth1) entered forwarding state
[   14.672103] mt7530 mdio-bus:1f sfp2: Link is Up - 2.5Gbps/Full - flow control off
[   14.674458] mt7530 mdio-bus:1f wan: configuring for phy/gmii link mode
[   14.687238] br-lan: port 5(sfp2) entered blocking state
[   14.691006] mt7530 mdio-bus:1f wan: Link is Up - 1Gbps/Full - flow control rx/tx
[   14.692458] br-lan: port 5(sfp2) entered forwarding state
[   14.705621] br-wan: port 2(wan) entered blocking state
[   14.710755] br-wan: port 2(wan) entered disabled state
[   14.717295] device wan entered promiscuous mode
[   14.724329] br-wan: port 2(wan) entered blocking state
[   14.729457] br-wan: port 2(wan) entered forwarding state
1 Like

Daniel sent patch to mainline and got question for eepromdata

Can you make this and add the file

ethtool -m ethX raw on > sfp-name.bin

https://lore.kernel.org/lkml/5e9a87a3f4c1ccc30625c8092b057f0fbd8a9947.1680435823.git.daniel@makrotopia.org/T/

Thx

I tried the 2.5Gbps Rj45 SFP module purchased on Aliexpress and saw that with OpenWRT snaphot r22456 it also works at 1Gbps. This is despite the fact that it is exclusively detected as a 2500baseX. Evidently it is capable of doing the internal 1Gbps conversion.

works for me too, we are currently wonder how exactly…we assume it uses IPG to limit the speed because the SFP has no PHY and is recognized as 2500BaseX (speed does not change).

i asked my seller for some technical information to solve it, but no response yet :frowning:

only noticed that iperf3 shows retransmitts as it tries to transmitts the full 2.5G bandwidth and pause-frames from my switch seem to be ignored

I’m curious of their answer.

But not only that. Now also works correctly the 1Gbps H!Fiber ASF-GE-T Rj45 SFP module purchased on Amazon and announced as 10baseT, 100baseT and 1000baseT.

I have reply to Russell King with his email address directly. But I don’t sure the email server will block mail which has attached file or not.

How big is the file? Afaik it is only some kb with many zero bytes,so maybe you can send output of

hexdump -C eepromfile

Or post output here and send him a link to the posting

just a short update to my problem. After 2 month of waiting, I tried today a new master snapshot and now everything works for me.

  1. FS.com SFP Transceiver Modul 1000BASE-BX BiDi SFP 1310nm-TX/1550nm-RX work now. I’m getting a 1GBit connection on sfp1 on fibre directly from my internet provider

  2. 2.5G Sfp ethernet from aliexpress works too (https://www.aliexpress.com/item/1005004545962352.html)

1 Like

I’ve ordered the 2.5G SFP Ethernet module, I’ll report back when I receive it!

fs.patch (1,3 Ko) the quirk works too with the following device : https://www.fs.com/fr/products/133619.html it reports as vendor “fs” and part “GPON-ONU-34-20BI” (device that also works when flashed as MA5671 with the current openwrt patch)

[  303.374660] sfp sfp1: module FS               GPON-ONU-34-20BI rev 01   sn xxxx      dc 230330  
[  303.413807] hwmon hwmon3: temp1_input not attached to any thermal zone
[  303.684653] sfp sfp1: module transmit fault indicated
[  311.777978] mtk_soc_eth 15100000.ethernet eth1: Link is Up - **2.5Gbps/Full** - flow control off

Thanks !

this should be fixed too

Indeed, if I add “.fixup = sfp_fixup_ignore_tx_fault,” it removes the line too, thanks !

How can I help to make that land in the openwrt snapshots ?

Another one working well : https://www.fs.com/products/139650.html [ 10.888626] sfp sfp2: module FS SFP-2.5G-T rev 1.0 sn gxxx dc 220725
[ 15.993369] mtk_soc_eth 15100000.ethernet eth0: configuring for fixed/2500base-x link mode [ 15.993572] mtk_soc_eth 15100000.ethernet eth0: Link is Up - 2.5Gbps/Full - flow control rx/tx

[  5.567386] sfp sfp1: module OEM              SFP-10G-T        rev 1    sn SKxxxxxx     dc 221230  
[ 10.311462] mt7530 mdio-bus:1f sfp2: configuring for inband/2500base-x link mode

I received it. It’s a different module than what was pictured on Alibaba and does not seem to work. I will try an updated openwrt version

SFP-10G-T? As in 10G? That would be SFP+ rather than SFP. SFP+ is not supported on the R3. Someone correct me if I am wrong.

1 Like