BPI-R3 sfp module monitoring question

Hi, can I monitor sfp module from openwrt interface somehow (especially temperature)? Ideally with collectd or something like that.

I can now enter to sfp module web interface and monitor temperature. But it is too uncomfortable for me.

Ethtool -m eth1 command gives strange output: Screenshot_20230724-131522_Pixel%20Launcher

This looks like a very, very old version of ethtool. Are you using the OpenWrt from downloads.openwrt.org or what came on the board?

If you are using OpenWrt snapshot or 23.05(-rcX) the temperature sensor should be exposed as hwmon sensor, ie. you can use lm-sensors sensor tool to view it or find it in /sys/class/hwmon/....

I’m using r23147-4b8b2f4f97 snapshot. It isn’t new (like 1.5 months old). I will update it later to stable 23.05 build (I don’t want to update to rc build, especially when keeping settings isn’t possible).

Ethtool version is 6.3-1

Sfp module is ODI DFP-34X-2C2. I don’t see any sfp sensors via lm-sensors or in hwmon:(

P.S. Also I have only 1000 mbit/sec speed between sfp module and router. But… If I rename sfp.ko module (prevent from module loading) - I have 2500 mbit/sec speed.

Try writing a script that scrap that data off the web interface and then maybe a collectd plugin that use that script. How hard can that be

Well, it doesn’t look so hard. Login, read temperature, logoff.

Sad. Scraping the web UI is probably the only way then…

That’s a clear indicator that the SFP module is quirky and doesn’t report the correct speed in it’s EEPROM (unfortunately this is very common). Please dump the module EEPROM, so we can craft a patch for the SFP driver recognizing it and allowing 2500Base-X mode despite the EEPROM (probably) claiming that would not be supported…

Unfortunately: Screenshot_20230725-074120_Pixel%20Launcher

Or should I provide ethtool -m output?

Yes, use -m or --dump-module-eeprom, and please post both, the interpreted data and also the raw content (ie. raw on hex on added to the cmdline).

Edit: just seeing you already did that in your first post. The fact that the raw data is shown hints that there may be a problem interpreting it. What does the kernel log (dmesg) say about that module being inserted (with sfp.ko being loaded)?

Ethtool -m eth1 output:

root@OpenWrt:~# ethtool --dump-module-eeprom eth1
Offset          Values
------          ------
0x0000:         03 04 01 00 00 00 02 22 00 01 00 01 0d 00 14 c8
0x0010:         00 00 00 00 4f 44 49 20 20 20 20 20 20 20 20 20
0x0020:         20 20 20 20 00 00 00 00 44 46 50 2d 33 34 58 2d
0x0030:         32 43 32 20 20 20 20 20 20 20 20 20 05 1e 00 70
0x0040:         00 1a 00 00 58 50 4f 4e 32 33 30 34 30 37 37 35
0x0050:         20 20 20 20 32 33 30 35 30 34 20 20 00 00 00 e9
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:         ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
0x0090:         ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
0x00a0:         ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
0x00b0:         ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
0x00c0:         ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
0x00d0:         ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
0x00e0:         ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
0x00f0:         ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

Strange, but user here has same sfp module and he has correct ethtool -m output: https://forum.banana-pi.org/t/bpi-r3-sfp-module-compatibility/14573/30?u=voidstranger

As for kernel log, I think, this matters:

[   15.138538] sfp sfp1: Host maximum power 3.0W
[   15.479877] sfp sfp1: module ODI              DFP-34X-2C2      rev      sn XPON23040775     dc 230504
[   15.489283] mtk_soc_eth 15100000.ethernet eth1: switched to inband/1000base-x link mode
[  335.106997] mtk_soc_eth 15100000.ethernet eth1: configuring for inband/1000base-x link mode
[  346.550337] mtk_soc_eth 15100000.ethernet eth1: Link is Up - 1Gbps/Full - flow control rx/tx

Full kernel log (in case, if you need it):

    [    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
    [    0.000000] Linux version 5.15.113 (builder@buildhost) (aarch64-openwrt-linux-musl-gcc (OpenWrt GCC 12.3.0 r23147-4b8b2f4f97) 12.3.0, GNU ld (GNU Binutils) 2.40.0) #0 SMP Sun May 28 18:22:23 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: 2040188K/2097152K available (8384K kernel code, 910K rwdata, 2280K rodata, 448K init, 301K bss, 56964K 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.000133] Calibrating delay loop (skipped), value calculated using timer frequency.. 26.00 BogoMIPS (lpj=130000)
    [    0.000140] pid_max: default: 32768 minimum: 301
    [    0.000361] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
    [    0.000373] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
    [    0.001413] rcu: Hierarchical SRCU implementation.
    [    0.001722] smp: Bringing up secondary CPUs ...
    [    0.001982] Detected VIPT I-cache on CPU1
    [    0.002005] GICv3: CPU1: found redistributor 1 region 0:0x000000000c0a0000
    [    0.002033] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
    [    0.002296] Detected VIPT I-cache on CPU2
    [    0.002306] GICv3: CPU2: found redistributor 2 region 0:0x000000000c0c0000
    [    0.002318] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
    [    0.002554] Detected VIPT I-cache on CPU3
    [    0.002564] GICv3: CPU3: found redistributor 3 region 0:0x000000000c0e0000
    [    0.002573] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
    [    0.002598] smp: Brought up 1 node, 4 CPUs
    [    0.002612] SMP: Total of 4 processors activated.
    [    0.002615] CPU features: detected: 32-bit EL0 Support
    [    0.002618] CPU features: detected: CRC32 instructions
    [    0.002643] CPU features: emulated: Privileged Access Never (PAN) using TTBR0_EL1 switching
    [    0.002695] CPU: All CPU(s) started at EL2
    [    0.002705] alternatives: patching kernel code
    [    0.005773] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [    0.005796] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
    [    0.005941] pinctrl core: initialized pinctrl subsystem
    [    0.006563] NET: Registered PF_NETLINK/PF_ROUTE protocol family
    [    0.006811] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations
    [    0.006843] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
    [    0.006869] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
    [    0.007126] thermal_sys: Registered thermal governor 'fair_share'
    [    0.007129] thermal_sys: Registered thermal governor 'bang_bang'
    [    0.007132] thermal_sys: Registered thermal governor 'step_wise'
    [    0.007135] thermal_sys: Registered thermal governor 'user_space'
    [    0.007329] ASID allocator initialised with 65536 entries
    [    0.007656] pstore: Registered ramoops as persistent store backend
    [    0.007660] ramoops: using 0x10000@0x42ff0000, ecc: 0
    [    0.017428] cryptd: max_cpu_qlen set to 1000
    [    0.019310] SCSI subsystem initialized
    [    0.019391] libata version 3.00 loaded.
    [    0.020258] clocksource: Switched to clocksource arch_sys_counter
    [    0.020708] NET: Registered PF_INET protocol family
    [    0.020824] IP idents hash table entries: 32768 (order: 6, 262144 bytes, linear)
    [    0.021480] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear)
    [    0.021500] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
    [    0.021508] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear)
    [    0.021576] TCP bind hash table entries: 16384 (order: 6, 262144 bytes, linear)
    [    0.021750] TCP: Hash tables configured (established 16384 bind 16384)
    [    0.021825] UDP hash table entries: 1024 (order: 3, 32768 bytes, linear)
    [    0.021853] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear)
    [    0.021974] NET: Registered PF_UNIX/PF_LOCAL protocol family
    [    0.021995] PCI: CLS 0 bytes, default 64
    [    0.024129] workingset: timestamp_bits=46 max_order=19 bucket_order=0
    [    0.026828] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.026841] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
    [    0.049692] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
    [    0.050885] pwm-mediatek 10048000.pwm: clock: top fail: -517
    [    0.051182] mtk-pcie-gen3 11280000.pcie: host bridge /soc/pcie@11280000 ranges:
    [    0.051205] mtk-pcie-gen3 11280000.pcie: Parsing ranges property...
    [    0.051215] mtk-pcie-gen3 11280000.pcie:      MEM 0x0020000000..0x002fffffff -> 0x0020000000
    [    0.051263] phy phy-soc:[email protected]: u3 auto load valid efuse: ENABLE with value: 1
    [    0.051295] phy phy-soc:[email protected]: pcie auto load valid efuse: ENABLE with value: 1
    [    0.051319] phy phy-soc:[email protected]: u3 lane1 efuse - intr 28, rx_imp 10, tx_imp f
    [    0.051383] /soc/pcie@11280000: Failed to get clk index: 0 ret: -517
    [    0.051394] mtk-pcie-gen3 11280000.pcie: failed to get clocks
    [    0.054135] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
    [    0.055814] printk: console [ttyS0] disabled
    [    0.075963] 11002000.serial: ttyS0 at MMIO 0x11002000 (irq = 122, base_baud = 2500000) is a ST16650V2
    [    0.780558] printk: console [ttyS0] enabled
    [    0.805347] 11003000.serial: ttyS1 at MMIO 0x11003000 (irq = 123, base_baud = 1625000) is a ST16650V2
    [    0.815179] mtk_rng 1020f000.trng: registered RNG driver
    [    0.815409] random: crng init done
    [    0.820763] cacheinfo: Unable to detect cache hierarchy for CPU 0
    [    0.831925] loop: module loaded
    [    0.835074] Loading iSCSI transport class v2.0-870.
    [    0.841365] spi-nand spi0.0: Winbond SPI NAND was found.
    [    0.846671] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
    [    0.854956] 4 fixed-partitions partitions found on MTD device spi0.0
    [    0.861302] Creating 4 MTD partitions on "spi0.0":
    [    0.866076] 0x000000580000-0x000008000000 : "ubi"
    [    0.997770] 0x000000380000-0x000000580000 : "fip"
    [    1.004849] 0x000000080000-0x000000380000 : "reserved"
    [    1.013341] 0x000000000000-0x000000080000 : "bl2"
    [    1.153374] mtk_soc_eth 15100000.ethernet eth0: mediatek frame engine at 0xffffffc009800000, irq 134
    [    1.163138] mtk_soc_eth 15100000.ethernet eth1: mediatek frame engine at 0xffffffc009800000, irq 134
    [    1.172681] i2c_dev: i2c /dev entries driver
    [    1.178446] mtk-wdt 1001c000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0)
    [    1.186915] NET: Registered PF_INET6 protocol family
    [    1.192461] Segment Routing with IPv6
    [    1.196129] In-situ OAM (IOAM) with IPv6
    [    1.200063] NET: Registered PF_PACKET protocol family
    [    1.205144] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
    [    1.218184] 8021q: 802.1Q VLAN Support v1.8
    [    1.223184] pstore: Using crash dump compression: deflate
    [    1.233869] mtk-pcie-gen3 11280000.pcie: host bridge /soc/pcie@11280000 ranges:
    [    1.241225] mtk-pcie-gen3 11280000.pcie: Parsing ranges property...
    [    1.247478] mtk-pcie-gen3 11280000.pcie:      MEM 0x0020000000..0x002fffffff -> 0x0020000000
    [    1.255948] phy phy-soc:[email protected]: u3 auto load valid efuse: ENABLE with value: 1
    [    1.264049] phy phy-soc:[email protected]: pcie auto load valid efuse: ENABLE with value: 1
    [    1.272315] phy phy-soc:[email protected]: u3 lane1 efuse - intr 28, rx_imp 10, tx_imp f
    [    1.328230] mtk-msdc 11230000.mmc: phase: [map:ffffffff] [maxlen:32] [final:10]
    [    1.337168] mmc0: new HS400 MMC card at address 0001
    [    1.342882] mmcblk0: mmc0:0001 008GB0 7.28 GiB 
    [    1.350022] FIT: Selected configuration: "config-mt7986a-bananapi-bpi-r3-emmc-snand" (OpenWrt bananapi_bpi-r3 with mt7986a-bananapi-bpi-r3-emmc-snand)
    [    1.363490] FIT:           kernel sub-image 0x00001000..0x00530f72 "kernel-1" (ARM64 OpenWrt Linux-5.15.113) 
    [    1.373390] FIT:          flat_dt sub-image 0x00531000..0x00538fff "fdt-1" (ARM64 OpenWrt bananapi_bpi-r3 device tree blob) 
    [    1.384589] FIT:          flat_dt sub-image 0x00539000..0x00540fff "fdt-mt7986a-bananapi-bpi-r3-nor" (ARM64 OpenWrt bananapi_bpi-r3 device tree overlay mt7986a-bananapi-bpi-r3-nor) 
    [    1.400737] FIT:          flat_dt sub-image 0x00541000..0x00548fff "fdt-mt7986a-bananapi-bpi-r3-emmc-nor" (ARM64 OpenWrt bananapi_bpi-r3 device tree overlay mt7986a-bananapi-bpi-r3-emmc-nor) 
    [    1.417746] FIT:          flat_dt sub-image 0x00549000..0x00550fff "fdt-mt7986a-bananapi-bpi-r3-emmc-snand" (ARM64 OpenWrt bananapi_bpi-r3 device tree overlay mt7986a-bananapi-bpi-r3-emmc-snand) 
    [    1.427969] mtk-pcie-gen3 11280000.pcie: set MEM trans window[0]: cpu_addr = 0x20000000, pci_addr = 0x20000000, size = 0x10000000
    [    1.435100] FIT:          flat_dt sub-image 0x00551000..0x00558fff "fdt-mt7986a-bananapi-bpi-r3-snand" (ARM64 OpenWrt bananapi_bpi-r3 device tree overlay mt7986a-bananapi-bpi-r3-snand) 
    [    1.446843] mtk-pcie-gen3 11280000.pcie: PCI host bridge to bus 0000:00
    [    1.463192] FIT:       filesystem sub-image 0x00559000..0x01e76fff "rootfs-1" (ARM64 OpenWrt bananapi_bpi-r3 rootfs) 
    [    1.469776] pci_bus 0000:00: root bus resource [bus 00-ff]
    [    1.480357] FIT: selecting configured loadable "rootfs-1" to be root filesystem
    [    1.485816] pci_bus 0000:00: root bus resource [mem 0x20000000-0x2fffffff]
    [    1.493110]  mmcblk0: p1 p2 p3 p4 p5 p65(rootfs-1) p66(rootfs_data) p128
    [    1.499951] pci_bus 0000:00: scanning bus
    [    1.507780] mmcblk0boot0: mmc0:0001 008GB0 4.00 MiB 
    [    1.510661] pci 0000:00:00.0: [14c3:1f32] type 01 class 0x060400
    [    1.516388] mmcblk0boot1: mmc0:0001 008GB0 4.00 MiB 
    [    1.521608] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x00007fff 64bit]
    [    1.526763] mmcblk0rpmb: mmc0:0001 008GB0 4.00 MiB, chardev (250:0)
    [    1.533364] pci 0000:00:00.0: PME# supported from D0 D3hot D3cold
    [    1.545620] pci 0000:00:00.0: PME# disabled
    [    1.550651] pci_bus 0000:00: fixups for bus
    [    1.554822] pci 0000:00:00.0: scanning [bus 00-00] behind bridge, pass 0
    [    1.561505] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
    [    1.569492] pci 0000:00:00.0: scanning [bus 00-00] behind bridge, pass 1
    [    1.576236] pci_bus 0000:01: scanning bus
    [    1.580270] pci 0000:01:00.0: [144d:a808] type 00 class 0x010802
    [    1.586282] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00003fff 64bit]
    [    1.593244] pci 0000:01:00.0: 8.000 Gb/s available PCIe bandwidth, limited by 5.0 GT/s PCIe x2 link at 0000:00:00.0 (capable of 31.504 Gb/s with 8.0 GT/s PCIe x4 link)
    [    1.630951] pci_bus 0000:01: fixups for bus
    [    1.635121] pci_bus 0000:01: bus scan returning with max=01
    [    1.640682] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
    [    1.647280] pci_bus 0000:00: bus scan returning with max=01
    [    1.652855] pci 0000:00:00.0: BAR 8: assigned [mem 0x20000000-0x200fffff]
    [    1.659623] pci 0000:00:00.0: BAR 0: assigned [mem 0x20100000-0x20107fff 64bit]
    [    1.666922] pci 0000:01:00.0: BAR 0: assigned [mem 0x20000000-0x20003fff 64bit]
    [    1.674224] pci 0000:00:00.0: PCI bridge to [bus 01]
    [    1.679172] pci 0000:00:00.0:   bridge window [mem 0x20000000-0x200fffff]
    [    1.686057] pcieport 0000:00:00.0: assign IRQ: got 142
    [    1.691189] pcieport 0000:00:00.0: enabling device (0000 -> 0002)
    [    1.697274] pcieport 0000:00:00.0: enabling bus mastering
    [    1.703015] mtk-pcie-gen3 11280000.pcie: msi#0x0 address_hi 0x0 address_lo 0x11280c00 data 0
    [    1.711440] mtk-pcie-gen3 11280000.pcie: msi#0x1 address_hi 0x0 address_lo 0x11280c00 data 1
    [    1.719854] mtk-pcie-gen3 11280000.pcie: msi#0x2 address_hi 0x0 address_lo 0x11280c00 data 2
    [    1.728270] mtk-pcie-gen3 11280000.pcie: msi#0x3 address_hi 0x0 address_lo 0x11280c00 data 3
    [    1.736687] mtk-pcie-gen3 11280000.pcie: msi#0x4 address_hi 0x0 address_lo 0x11280c00 data 4
    [    1.745102] mtk-pcie-gen3 11280000.pcie: msi#0x5 address_hi 0x0 address_lo 0x11280c00 data 5
    [    1.753522] mtk-pcie-gen3 11280000.pcie: msi#0x6 address_hi 0x0 address_lo 0x11280c00 data 6
    [    1.761940] mtk-pcie-gen3 11280000.pcie: msi#0x7 address_hi 0x0 address_lo 0x11280c00 data 7
    [    1.770357] mtk-pcie-gen3 11280000.pcie: msi#0x8 address_hi 0x0 address_lo 0x11280c00 data 8
    [    1.778770] mtk-pcie-gen3 11280000.pcie: msi#0x9 address_hi 0x0 address_lo 0x11280c00 data 9
    [    1.787186] mtk-pcie-gen3 11280000.pcie: msi#0xa address_hi 0x0 address_lo 0x11280c00 data 10
    [    1.795690] mtk-pcie-gen3 11280000.pcie: msi#0xb address_hi 0x0 address_lo 0x11280c00 data 11
    [    1.804192] mtk-pcie-gen3 11280000.pcie: msi#0xc address_hi 0x0 address_lo 0x11280c00 data 12
    [    1.812696] mtk-pcie-gen3 11280000.pcie: msi#0xd address_hi 0x0 address_lo 0x11280c00 data 13
    [    1.821199] mtk-pcie-gen3 11280000.pcie: msi#0xe address_hi 0x0 address_lo 0x11280c00 data 14
    [    1.829700] mtk-pcie-gen3 11280000.pcie: msi#0xf address_hi 0x0 address_lo 0x11280c00 data 15
    [    1.838203] mtk-pcie-gen3 11280000.pcie: msi#0x10 address_hi 0x0 address_lo 0x11280c00 data 16
    [    1.846793] mtk-pcie-gen3 11280000.pcie: msi#0x11 address_hi 0x0 address_lo 0x11280c00 data 17
    [    1.855383] mtk-pcie-gen3 11280000.pcie: msi#0x12 address_hi 0x0 address_lo 0x11280c00 data 18
    [    1.863972] mtk-pcie-gen3 11280000.pcie: msi#0x13 address_hi 0x0 address_lo 0x11280c00 data 19
    [    1.872564] mtk-pcie-gen3 11280000.pcie: msi#0x14 address_hi 0x0 address_lo 0x11280c00 data 20
    [    1.881155] mtk-pcie-gen3 11280000.pcie: msi#0x15 address_hi 0x0 address_lo 0x11280c00 data 21
    [    1.889741] mtk-pcie-gen3 11280000.pcie: msi#0x16 address_hi 0x0 address_lo 0x11280c00 data 22
    [    1.898331] mtk-pcie-gen3 11280000.pcie: msi#0x17 address_hi 0x0 address_lo 0x11280c00 data 23
    [    1.906921] mtk-pcie-gen3 11280000.pcie: msi#0x18 address_hi 0x0 address_lo 0x11280c00 data 24
    [    1.915511] mtk-pcie-gen3 11280000.pcie: msi#0x19 address_hi 0x0 address_lo 0x11280c00 data 25
    [    1.924100] mtk-pcie-gen3 11280000.pcie: msi#0x1a address_hi 0x0 address_lo 0x11280c00 data 26
    [    1.932690] mtk-pcie-gen3 11280000.pcie: msi#0x1b address_hi 0x0 address_lo 0x11280c00 data 27
    [    1.941279] mtk-pcie-gen3 11280000.pcie: msi#0x1c address_hi 0x0 address_lo 0x11280c00 data 28
    [    1.949866] mtk-pcie-gen3 11280000.pcie: msi#0x1d address_hi 0x0 address_lo 0x11280c00 data 29
    [    1.958456] mtk-pcie-gen3 11280000.pcie: msi#0x1e address_hi 0x0 address_lo 0x11280c00 data 30
    [    1.967045] mtk-pcie-gen3 11280000.pcie: msi#0x1f address_hi 0x0 address_lo 0x11280c00 data 31
    [    1.975979] mtk-pcie-gen3 11280000.pcie: msi#0x0 address_hi 0x0 address_lo 0x11280c00 data 0
    [    1.984499] pcieport 0000:00:00.0: PME: Signaling with IRQ 143
    [    1.990501] pcieport 0000:00:00.0: AER: enabled with IRQ 143
    [    1.996198] pcieport 0000:00:00.0: saving config space at offset 0x0 (reading 0x1f3214c3)
    [    2.004369] pcieport 0000:00:00.0: saving config space at offset 0x4 (reading 0x100406)
    [    2.012354] pcieport 0000:00:00.0: saving config space at offset 0x8 (reading 0x6040001)
    [    2.020424] pcieport 0000:00:00.0: saving config space at offset 0xc (reading 0x10000)
    [    2.028317] pcieport 0000:00:00.0: saving config space at offset 0x10 (reading 0x20100004)
    [    2.036559] pcieport 0000:00:00.0: saving config space at offset 0x14 (reading 0x0)
    [    2.044195] pcieport 0000:00:00.0: saving config space at offset 0x18 (reading 0x10100)
    [    2.052178] pcieport 0000:00:00.0: saving config space at offset 0x1c (reading 0x1f1)
    [    2.059985] pcieport 0000:00:00.0: saving config space at offset 0x20 (reading 0x20002000)
    [    2.068228] pcieport 0000:00:00.0: saving config space at offset 0x24 (reading 0x1fff1)
    [    2.076210] pcieport 0000:00:00.0: saving config space at offset 0x28 (reading 0x0)
    [    2.083847] pcieport 0000:00:00.0: saving config space at offset 0x2c (reading 0x0)
    [    2.091483] pcieport 0000:00:00.0: saving config space at offset 0x30 (reading 0x0)
    [    2.099116] pcieport 0000:00:00.0: saving config space at offset 0x34 (reading 0x80)
    [    2.106842] pcieport 0000:00:00.0: saving config space at offset 0x38 (reading 0x0)
    [    2.114479] pcieport 0000:00:00.0: saving config space at offset 0x3c (reading 0x2018e)
    [    2.144392] mt7530-mdio mdio-bus:1f: configuring for fixed/2500base-x link mode
    [    2.153443] mt7530-mdio mdio-bus:1f: Link is Up - 2.5Gbps/Full - flow control rx/tx
    [    2.162134] mt7530-mdio mdio-bus:1f wan (uninitialized): PHY [mt7530-0:00] driver [MediaTek MT7531 PHY] (irq=144)
    [    2.182343] mt7530-mdio mdio-bus:1f lan1 (uninitialized): PHY [mt7530-0:01] driver [MediaTek MT7531 PHY] (irq=145)
    [    2.202376] mt7530-mdio mdio-bus:1f lan2 (uninitialized): PHY [mt7530-0:02] driver [MediaTek MT7531 PHY] (irq=146)
    [    2.222435] mt7530-mdio mdio-bus:1f lan3 (uninitialized): PHY [mt7530-0:03] driver [MediaTek MT7531 PHY] (irq=147)
    [    2.242426] mt7530-mdio mdio-bus:1f lan4 (uninitialized): PHY [mt7530-0:04] driver [MediaTek MT7531 PHY] (irq=148)
    [    2.253513] DSA: tree 0 setup
    [    2.258658] UBI: auto-attach mtd0
    [    2.262005] ubi0: default fastmap pool size: 45
    [    2.266518] ubi0: default fastmap WL pool size: 22
    [    2.271297] ubi0: attaching mtd0
    [    5.883808] ubi0: scanning is finished
    [    5.928928] ubi0: attached mtd0 (name "ubi", size 122 MiB)
    [    5.934418] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
    [    5.941275] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
    [    5.948041] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
    [    5.954983] ubi0: good PEBs: 980, bad PEBs: 0, corrupted PEBs: 0
    [    5.960971] ubi0: user volume: 6, internal volumes: 1, max. volumes count: 128
    [    5.968170] ubi0: max/mean erase counter: 4/1, WL threshold: 4096, image sequence number: 0
    [    5.976499] ubi0: available PEBs: 0, total reserved PEBs: 980, PEBs reserved for bad PEB handling: 20
    [    5.985698] ubi0: background thread "ubi_bgt0d" started, PID 558
    [    5.991797] FIT: Selected configuration: "config-mt7986a-bananapi-bpi-r3-emmc-snand" (OpenWrt bananapi_bpi-r3 with mt7986a-bananapi-bpi-r3-emmc-snand)
    [    6.005273] FIT:           kernel sub-image 0x00001000..0x004f82c9 "kernel-1" (ARM64 OpenWrt Linux-5.15.98) 
    [    6.015085] FIT:          flat_dt sub-image 0x004f9000..0x00500fff "fdt-1" (ARM64 OpenWrt bananapi_bpi-r3 device tree blob) 
    [    6.026286] FIT:          flat_dt sub-image 0x00501000..0x00508fff "fdt-mt7986a-bananapi-bpi-r3-nor" (ARM64 OpenWrt bananapi_bpi-r3 device tree overlay mt7986a-bananapi-bpi-r3-nor) 
    [    6.042429] FIT:          flat_dt sub-image 0x00509000..0x00510fff "fdt-mt7986a-bananapi-bpi-r3-emmc-nor" (ARM64 OpenWrt bananapi_bpi-r3 device tree overlay mt7986a-bananapi-bpi-r3-emmc-nor) 
    [    6.059437] FIT:          flat_dt sub-image 0x00511000..0x00518fff "fdt-mt7986a-bananapi-bpi-r3-emmc-snand" (ARM64 OpenWrt bananapi_bpi-r3 device tree overlay mt7986a-bananapi-bpi-r3-emmc-snand) 
    [    6.076791] FIT:          flat_dt sub-image 0x00519000..0x00520fff "fdt-mt7986a-bananapi-bpi-r3-snand" (ARM64 OpenWrt bananapi_bpi-r3 device tree overlay mt7986a-bananapi-bpi-r3-snand) 
    [    6.093275] FIT:       filesystem sub-image 0x00521000..0x0244cfff "rootfs-1" (ARM64 OpenWrt bananapi_bpi-r3 rootfs) 
    [    6.103864] FIT: selecting configured loadable "rootfs-1" to be root filesystem
    [    6.111151]  ubiblock0_2: p1(rootfs-1)
    [    6.111272] block ubiblock0_2: created from ubi0:2(fit)
    [    6.123478] VFS: Mounted root (squashfs filesystem) readonly on device 259:0.
    [    6.130759] Freeing unused kernel memory: 448K
    [    6.200295] Run /sbin/init as init process
    [    6.204375]   with arguments:
    [    6.207326]     /sbin/init
    [    6.210017]   with environment:
    [    6.213148]     HOME=/
    [    6.215492]     TERM=linux
    [    6.311951] init: Console is alive
    [    6.315440] init: - watchdog -
    [    6.651768] kmodloader: loading kernel modules from /etc/modules-boot.d/*
    [    6.702347] Key type encrypted registered
    [    6.709568] usbcore: registered new interface driver usbfs
    [    6.715095] usbcore: registered new interface driver hub
    [    6.720429] usbcore: registered new device driver usb
    [    6.728915] device-mapper: ioctl: 4.45.0-ioctl (2021-03-22) initialised: [email protected]
    [    6.742392] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    [    6.749394] fsl-ehci: Freescale EHCI Host controller driver
    [    6.755512] ehci-platform: EHCI generic platform driver
    [    6.763979] phy phy-soc:[email protected]: u2 auto load valid efuse: ENABLE with value: 1
    [    6.772135] phy phy-soc:[email protected]: u3 auto load valid efuse: ENABLE with value: 1
    [    6.780272] phy phy-soc:[email protected]: u2 auto load valid efuse: ENABLE with value: 1
    [    6.788811] xhci-mtk 11200000.usb: xHCI Host Controller
    [    6.794058] xhci-mtk 11200000.usb: new USB bus registered, assigned bus number 1
    [    6.804509] xhci-mtk 11200000.usb: hcc params 0x01403f99 hci version 0x110 quirks 0x0000000000210010
    [    6.813661] xhci-mtk 11200000.usb: irq 126, io mem 0x11200000
    [    6.819480] xhci-mtk 11200000.usb: xHCI Host Controller
    [    6.824697] xhci-mtk 11200000.usb: new USB bus registered, assigned bus number 2
    [    6.832082] xhci-mtk 11200000.usb: Host supports USB 3.2 Enhanced SuperSpeed
    [    6.839438] hub 1-0:1.0: USB hub found
    [    6.843198] hub 1-0:1.0: 2 ports detected
    [    6.847442] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
    [    6.855783] hub 2-0:1.0: USB hub found
    [    6.859538] hub 2-0:1.0: 1 port detected
    [    6.866261] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
    [    6.883734] init: - preinit -
    [    7.066998] mtk_soc_eth 15100000.ethernet eth0: configuring for fixed/2500base-x link mode
    [    7.075460] mtk_soc_eth 15100000.ethernet eth0: Link is Up - 2.5Gbps/Full - flow control rx/tx
    [    7.084740] mt7530-mdio mdio-bus:1f lan1: configuring for phy/gmii link mode
    [    7.096592] mt7530-mdio mdio-bus:1f lan1: Link is Up - 100Mbps/Full - flow control off
    [    7.104570] IPv6: ADDRCONF(NETDEV_CHANGE): lan1: link becomes ready
    [    7.310262] usb 1-1: new high-speed USB device number 2 using xhci-mtk
    [    7.490920] hub 1-1:1.0: USB hub found
    [    7.494695] hub 1-1:1.0: 4 ports detected
    [    7.640263] usb 1-2: new low-speed USB device number 3 using xhci-mtk
    [    9.122891] Starting lvm2 during preinit
    [    9.936423] mount_root: loading kmods from internal overlay
    [    9.948061] kmodloader: loading kernel modules from //etc/modules-boot.d/*
    [    9.957491] kmodloader: done loading kernel modules from //etc/modules-boot.d/*
    [   11.321166] UBIFS (ubi0:5): Mounting in unauthenticated mode
    [   11.326881] UBIFS (ubi0:5): background thread "ubifs_bgt0_5" started, PID 725
    [   11.795085] UBIFS (ubi0:5): UBIFS: mounted UBI device 0, volume 5, name "rootfs_data"
    [   11.802907] UBIFS (ubi0:5): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
    [   11.812798] UBIFS (ubi0:5): FS size: 37711872 bytes (35 MiB, 297 LEBs), max 307 LEBs, journal size 1904640 bytes (1 MiB, 15 LEBs)
    [   11.824422] UBIFS (ubi0:5): reserved for root: 1781224 bytes (1739 KiB)
    [   11.831018] UBIFS (ubi0:5): media format: w5/r0 (latest is w5/r0), UUID C21FABF1-34A9-4E20-AE83-1E9DC07CEA7E, small LPT model
    [   11.853528] block: attempting to load /tmp/ubifs_cfg/upper/etc/config/fstab
    [   11.897507] block: extroot: not configured
    [   11.912581] UBIFS (ubi0:5): un-mount UBI device 0
    [   11.917281] UBIFS (ubi0:5): background thread "ubifs_bgt0_5" stops
    [   11.980956] F2FS-fs (mmcblk0p66): Mounted with checkpoint version = 428fab2b
    [   11.990053] mount_root: loading kmods from internal overlay
    [   12.004448] kmodloader: loading kernel modules from /tmp/overlay/upper/etc/modules-boot.d/*
    [   12.013775] kmodloader: done loading kernel modules from /tmp/overlay/upper/etc/modules-boot.d/*
    [   13.345857] UBIFS (ubi0:5): Mounting in unauthenticated mode
    [   13.351587] UBIFS (ubi0:5): background thread "ubifs_bgt0_5" started, PID 734
    [   13.819719] UBIFS (ubi0:5): UBIFS: mounted UBI device 0, volume 5, name "rootfs_data"
    [   13.827544] UBIFS (ubi0:5): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
    [   13.837436] UBIFS (ubi0:5): FS size: 37711872 bytes (35 MiB, 297 LEBs), max 307 LEBs, journal size 1904640 bytes (1 MiB, 15 LEBs)
    [   13.849061] UBIFS (ubi0:5): reserved for root: 1781224 bytes (1739 KiB)
    [   13.855657] UBIFS (ubi0:5): media format: w5/r0 (latest is w5/r0), UUID C21FABF1-34A9-4E20-AE83-1E9DC07CEA7E, small LPT model
    [   13.878164] block: attempting to load /tmp/ubifs_cfg/upper/etc/config/fstab
    [   13.922155] block: extroot: not configured
    [   13.937133] UBIFS (ubi0:5): un-mount UBI device 0
    [   13.941844] UBIFS (ubi0:5): background thread "ubifs_bgt0_5" stops
    [   13.953971] mount_root: switching to f2fs overlay
    [   13.961494] overlayfs: null uuid detected in lower fs '/', falling back to xino=off,index=off,nfs_export=off.
    [   13.973342] urandom-seed: Seeding with /etc/urandom.seed
    [   13.998271] mt7530-mdio mdio-bus:1f lan1: Link is Down
    [   14.006443] procd: - early -
    [   14.009366] procd: - watchdog -
    [   14.537267] procd: - watchdog -
    [   14.540577] procd: - ubus -
    [   14.595456] procd: - init -
    [   14.767999] urngd: v1.0.2 started.
    [   14.790604] kmodloader: loading kernel modules from /etc/modules.d/*
    [   14.826378] nvme 0000:01:00.0: assign IRQ: got 142
    [   14.831326] nvme nvme0: pci function 0000:01:00.0
    [   14.836041] nvme 0000:01:00.0: enabling device (0000 -> 0002)
    [   14.841967] nvme 0000:01:00.0: enabling bus mastering
    [   14.847118] mtk-pcie-gen3 11280000.pcie: msi#0x1 address_hi 0x0 address_lo 0x11280c00 data 1
    [   14.855584] nvme 0000:01:00.0: saving config space at offset 0x0 (reading 0xa808144d)
    [   14.863405] nvme 0000:01:00.0: saving config space at offset 0x4 (reading 0x100406)
    [   14.871046] nvme 0000:01:00.0: saving config space at offset 0x8 (reading 0x1080200)
    [   14.878769] nvme 0000:01:00.0: saving config space at offset 0xc (reading 0x0)
    [   14.885974] nvme 0000:01:00.0: saving config space at offset 0x10 (reading 0x20000004)
    [   14.893874] nvme 0000:01:00.0: saving config space at offset 0x14 (reading 0x0)
    [   14.901167] nvme 0000:01:00.0: saving config space at offset 0x18 (reading 0x0)
    [   14.908456] nvme 0000:01:00.0: saving config space at offset 0x1c (reading 0x0)
    [   14.915749] nvme 0000:01:00.0: saving config space at offset 0x20 (reading 0x0)
    [   14.923041] nvme 0000:01:00.0: saving config space at offset 0x24 (reading 0x0)
    [   14.930333] nvme 0000:01:00.0: saving config space at offset 0x28 (reading 0x0)
    [   14.937623] nvme 0000:01:00.0: saving config space at offset 0x2c (reading 0xa801144d)
    [   14.945523] nvme 0000:01:00.0: saving config space at offset 0x30 (reading 0x0)
    [   14.952816] nvme 0000:01:00.0: saving config space at offset 0x34 (reading 0x40)
    [   14.960192] nvme 0000:01:00.0: saving config space at offset 0x38 (reading 0x0)
    [   14.967485] nvme 0000:01:00.0: saving config space at offset 0x3c (reading 0x18e)
    [   14.977927] nvme nvme0: missing or invalid SUBNQN field.
    [   14.983325] nvme nvme0: Shutdown timeout set to 8 seconds
    [   14.993031] mtk-pcie-gen3 11280000.pcie: msi#0x1 address_hi 0x0 address_lo 0x11280c00 data 1
    [   15.001523] mtk-pcie-gen3 11280000.pcie: msi#0x2 address_hi 0x0 address_lo 0x11280c00 data 2
    [   15.009941] mtk-pcie-gen3 11280000.pcie: msi#0x3 address_hi 0x0 address_lo 0x11280c00 data 3
    [   15.018367] mtk-pcie-gen3 11280000.pcie: msi#0x4 address_hi 0x0 address_lo 0x11280c00 data 4
    [   15.026803] mtk-pcie-gen3 11280000.pcie: msi#0x5 address_hi 0x0 address_lo 0x11280c00 data 5
    [   15.038809] nvme nvme0: 4/0/0 default/read/poll queues
    [   15.049382] tun: Universal TUN/TAP device driver, 1.6
    [   15.069213] i2c-gpio i2c-gpio-0: using lines 427 (SDA) and 428 (SCL)
    [   15.075893] i2c-gpio i2c-gpio-1: using lines 429 (SDA) and 430 (SCL)
    [   15.085353] ntfs3: Max link count 4000
    [   15.089103] ntfs3: Enabled Linux POSIX ACLs support
    [   15.095740] crypto-safexcel 10320000.crypto: EIP97:230(0,1,4,4)-HIA:270(0,5,5),PE:150/433(alg:7fcdfc00)/0/0/0
    [   15.110220] Loading modules backported from Linux version v6.1.24-0-g0102425ac76b
    [   15.117744] Backport generated by backports.git v5.15.92-1-44-gd6ea70fafd36
    [   15.138538] sfp sfp1: Host maximum power 3.0W
    [   15.143751] sfp sfp2: Host maximum power 3.0W
    [   15.152150] xt_time: kernel timezone is -0000
    [   15.479877] sfp sfp1: module ODI              DFP-34X-2C2      rev      sn XPON23040775     dc 230504  
    [   15.489283] mtk_soc_eth 15100000.ethernet eth1: switched to inband/1000base-x link mode
    [   15.610581] mt7986-wmac 18000000.wmac: HW/SW Version: 0x8a108a10, Build Time: 20221012174743a
    [   15.610581] 
    [   15.717535] mt7986-wmac 18000000.wmac: WM Firmware Version: ____000000, Build Time: 20221012174805
    [   15.786504] mt7986-wmac 18000000.wmac: WA Firmware Version: DEV_000000, Build Time: 20221012174937
    [   18.554515] PPP generic driver version 2.4.2
    [   18.559600] NET: Registered PF_PPPOX protocol family
    [   18.565917] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
    [   18.573764] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <[email protected]>. All Rights Reserved.
    [   18.584798] kmodloader: done loading kernel modules from /etc/modules.d/*
    [  331.976179] F2FS-fs (nvme0n1): Mounted with checkpoint version = 285245ac
    [  334.896868] mtk_soc_eth 15100000.ethernet eth0: Link is Down
    [  334.916079] mtk_soc_eth 15100000.ethernet eth0: configuring for fixed/2500base-x link mode
    [  334.925410] mtk_soc_eth 15100000.ethernet eth0: Link is Up - 2.5Gbps/Full - flow control rx/tx
    [  334.934353] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
    [  334.943224] mt7530-mdio mdio-bus:1f lan1: configuring for phy/gmii link mode
    [  334.953814] br-lan: port 1(lan1) entered blocking state
    [  334.959046] br-lan: port 1(lan1) entered disabled state
    [  334.966014] device lan1 entered promiscuous mode
    [  334.970681] device eth0 entered promiscuous mode
    [  334.982380] mt7530-mdio mdio-bus:1f lan2: configuring for phy/gmii link mode
    [  334.992339] br-lan: port 2(lan2) entered blocking state
    [  334.997583] br-lan: port 2(lan2) entered disabled state
    [  335.004953] device lan2 entered promiscuous mode
    [  335.014265] mt7530-mdio mdio-bus:1f lan3: configuring for phy/gmii link mode
    [  335.024171] br-lan: port 3(lan3) entered blocking state
    [  335.029418] br-lan: port 3(lan3) entered disabled state
    [  335.036828] device lan3 entered promiscuous mode
    [  335.045521] mt7530-mdio mdio-bus:1f lan4: configuring for phy/gmii link mode
    [  335.055490] br-lan: port 4(lan4) entered blocking state
    [  335.060728] br-lan: port 4(lan4) entered disabled state
    [  335.067942] device lan4 entered promiscuous mode
    [  335.076415] mt7530-mdio mdio-bus:1f sfp2: configuring for inband/2500base-x link mode
    [  335.085965] br-lan: port 5(sfp2) entered blocking state
    [  335.091211] br-lan: port 5(sfp2) entered disabled state
    [  335.098605] device sfp2 entered promiscuous mode
    [  335.106997] mtk_soc_eth 15100000.ethernet eth1: configuring for inband/1000base-x link mode
    [  335.116841] br-wan: port 1(eth1) entered blocking state
    [  335.122086] br-wan: port 1(eth1) entered disabled state
    [  335.127471] device eth1 entered promiscuous mode
    [  335.133768] br-wan: port 1(eth1) entered blocking state
    [  335.139000] br-wan: port 1(eth1) entered forwarding state
    [  335.146109] mt7530-mdio mdio-bus:1f wan: configuring for phy/gmii link mode
    [  335.155876] br-wan: port 2(wan) entered blocking state
    [  335.161033] br-wan: port 2(wan) entered disabled state
    [  335.167561] device wan entered promiscuous mode
    [  336.295268] br-wan: port 1(eth1) entered disabled state
    [  336.317428] br-lan: port 6(phy1-ap0) entered blocking state
    [  336.323085] br-lan: port 6(phy1-ap0) entered disabled state
    [  336.328961] device phy1-ap0 entered promiscuous mode
    [  337.415652] br-lan: port 7(phy0-ap0) entered blocking state
    [  337.421273] br-lan: port 7(phy0-ap0) entered disabled state
    [  337.427081] device phy0-ap0 entered promiscuous mode
    [  338.545052] usb 1-2: USB disconnect, device number 3
    [  340.090371] usb 1-2: new low-speed USB device number 4 using xhci-mtk
    [  345.494264] IPv6: ADDRCONF(NETDEV_CHANGE): phy1-ap0: link becomes ready
    [  345.501039] br-lan: port 6(phy1-ap0) entered blocking state
    [  345.506617] br-lan: port 6(phy1-ap0) entered forwarding state
    [  345.513410] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
    [  346.550337] mtk_soc_eth 15100000.ethernet eth1: Link is Up - 1Gbps/Full - flow control rx/tx
    [  346.558846] br-wan: port 1(eth1) entered blocking state
    [  346.564158] br-wan: port 1(eth1) entered forwarding state
    [  348.945400] IPv6: ADDRCONF(NETDEV_CHANGE): phy0-ap0: link becomes ready
    [  348.952309] br-lan: port 7(phy0-ap0) entered blocking state
    [  348.957903] br-lan: port 7(phy0-ap0) entered forwarding state
    [  354.054388] usb 1-2: USB disconnect, device number 4
    [  358.310279] usb 1-2: new low-speed USB device number 5 using xhci-mtk

Ethtool eth1 output:

root@OpenWrt:~# ethtool eth1
Settings for eth1:
        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
        Link partner advertised link modes:  1000baseX/Full
        Link partner advertised pause frame use: Symmetric Receive-only
        Link partner advertised auto-negotiation: Yes
        Link partner advertised FEC modes: Not reported
        Speed: 1000Mb/s
        Duplex: Full
        Port: FIBRE
        PHYAD: 0
        Transceiver: internal
        Auto-negotiation: on
        Current message level: 0x000000ff (255)
                               drv probe link timer ifdown ifup rx_err tx_err
        Link detected: yes

With sfp.ko loaded

ethtool --dump-module-eeprom eth1
        Identifier                                : 0x03 (SFP)
        Extended identifier                       : 0x04 (GBIC/SFP defined by 2-wire interface ID)
        Connector                                 : 0x01 (SC)
        Transceiver codes                         : 0x00 0x00 0x00 0x02 0x22 0x00 0x01 0x00 0x00
        Transceiver type                          : Ethernet: 1000BASE-LX
        Transceiver type                          : FC: intermediate distance (I)
        Transceiver type                          : FC: Longwave laser (LC)
        Transceiver type                          : FC: Single Mode (SM)
        Encoding                                  : 0x01 (8B/10B)
        BR, Nominal                               : 1300MBd
        Rate identifier                           : 0x00 (unspecified)
        Length (SMF,km)                           : 20km
        Length (SMF)                              : 20000m
        Length (50um)                             : 0m
        Length (62.5um)                           : 0m
        Length (Copper)                           : 0m
        Length (OM3)                              : 0m
        Laser wavelength                          : 1310nm
        Vendor name                               : ODI
        Vendor OUI                                : 00:00:00
        Vendor PN                                 : DFP-34X-2C2
        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                                 : XPONxxxxxxxxx
        Date code                                 : 221206

sfp.ko loaded and hex on option in ethtool

ethtool -m eth1 hex on
Offset          Values
------          ------
0x0000:         03 04 01 00 00 00 02 22 00 01 00 01 0d 00 14 c8 
0x0010:         00 00 00 00 4f 44 49 20 20 20 20 20 20 20 20 20 
0x0020:         20 20 20 20 00 00 00 00 44 46 50 2d 33 34 58 2d 
0x0030:         32 43 32 20 20 20 20 20 20 20 20 20 05 1e 00 70 
0x0040:         00 1a 00 00 58 50 4f 4e 32 32 31 32 30 30 35 32 
0x0050:         20 20 20 20 32 32 31 32 30 36 20 20 00 00 00 da 
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:         ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
0x0090:         ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
0x00a0:         ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
0x00b0:         ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
0x00c0:         ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
0x00d0:         ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
0x00e0:         ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
0x00f0:         ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 

Afaik this module requires setting the advertised speed in its firmware, see also

https://hack-gpon.org/ont-odi-realtek-dfp-34x-2c2/#gettingsetting-speed-lan-mode

LAN_SDS_MODE setting didn’t help (you can choose any number from 0 to 6 with no effect). @prdtabim encountered this issue too, I believe. Preventing sfp.ko from loading is the only way for 2500 speed now. By default sfp module have LAN_SDS_MODE = 0, which is autonegotiation.

Hm, the host should respect what the module says in it’s EEPROM. So as long as the module will announce that it can only do 1300MBd (which should be 1250MBd in reality to end up with 1000 MBit/s in 8B/10B coding), it’s logical that it would not assume it being capable of 2500Base-X (3125MBd would be needed).

In case there is no way to correct the EEPROM reported by the module, adding yet another quirk can help, ie. something like this:

1 Like