BPI-R3 SFP Module compatibility

@prdtabim

can you try if this series from @dangowrt fixes your 2g5-problem?

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

?

see comment in coverletter as it requires additional patch to 6.2 for apply

Hi

Thanks for the tips. I will try this weekend.

note series is based on net-next (patch 8 will fail, so apply it with reject and make changes manually)

have applied series here, but have no 2g5 sfp to test: https://github.com/frank-w/BPI-Router-Linux/tree/6.2-netnext-pcs

Updated series is here https://patchwork.kernel.org/project/linux-mediatek/cover/[email protected]/

This one has an option to order for banana pi

€ 14,24 59%OFF | SFP-2.5GE-RJ45 Gigabit 2.5G Module SFP To RJ45 Optical Interface Expansion 2500M Rate Compatible Huawei H3C Cisco TPLINK Switch https://a.aliexpress.com/_EyiBS4l

Anyone have any experience?

2 Likes

Just tested a couple of Huawei MA5671A GPON sticks with standard rooted firmware and Carlito firmware. Both seems to works at 2.5Gbps. Some reeboot attempts are needed to be recognized by R3. I get EEPROM -6 reading error (the EEPROM is simulated on MA5671). Maybe due to the fact that this device is slow to start (fyi it uses an old OpenWRT version). On my TP-LInk MC220L media converter the sticks works without issues. Probably a longer timeout somewhere on R3 startup procedure may be useful…

I got the 2g5 sfps i ordered from erics link above.

They work well with v12 of daniels patches on 6.3. v13 does not work as he needs to drop a patch (or 2) for 2500base-X support. This needs to be done via sfp quirks. It is a software issue we try to solve…hardware works well…i get ~ 2.4 gbit/s with iperf3

Here is a new sale for 13.22€ and without shipping costs if interested:

https://m.de.aliexpress.com/item/1005005052139284.html

1 Like

Ordered a pair. I hope these will be made compatible soon with OpenWRT. :wink:

I guess daniel will add the rejected patches to openwrt till a better solution is available

Guess those sales really do not last more than a couple of days… Price is already up on that link as well.

Anyway, I have received the 2 from the first link.

Noticed a possible bug with the 2g5 sfp while bootup and cable connected. Uboot does bot found sd/-partitions. Also full powercycle (disconect power completely for some minutes) does not help. Only disconnecting the cable and powercycle.

It is possible that there are slightly different gnd levels between r3 and my laptop which are bridged by the cable,have not done more tests (e.g. direct connection to rj45 ports of r3 to my laptop…these are connected to my switch).

When i’m in linux there are no issues anymore only uboot seems to be disturbed.

Just in case anyone else fall into it.

I just received the SFP module from Aliexpress. Tried it with OpenWrt SNAPSHOT r22257 on the LAN port (on the WAN I have a Mini ONT MA5671A). I hot plugged the module in, it is recognized and everything seems to work correctly.

I will try to see if rebooting with the cable plugged in causes any problems.

Just received 2 modules from this seller. Working perfectly fine on OpenWrt SNAPSHOT r22235.

do the TL-sm410U work at 1gbit on the BPI-R3?

This module has internal phy which support is currently WIP (discussion between daniel and russel in netdev mailinglist). My cn module can support it,but we have no phy and it can cause retransmitts if more than 1G is transferred (no working flowcontrol on <2g5)

so is there any 2.5gb module that works at 1gb, currently?

There are not much 2g5 modules…i guess in openwrt this tplink sfp works with daniels workaround which was rejected in mainline.

Not only… Not every 1Gb only RJ45 modules works. To be honest I do not know if there are working 1Gb RJ45

I have three working 1000M/100M/10M RJ-45 SFPs:

  • ATS SFP-GE-T (1000Base-X, but internally does rate-adaptation and supports 10M and 100M modes as well, doesn’t require additional driver, but comes with broken EEPROM and broken TX-fault indication pin which needs a work-around. In OpenWrt those work-arounds are present)
  • FINISAR CORP. FCLF-8521-3-HC (SGMII, comes with Marvell 88E1111 PHY which requires Marvell PHY driver, kmod-phy-marvell package in OpenWrt)
  • AJYA ES-T2-R (like the above requires Marvell PHY driver)
2 Likes

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:~#