Now, I’m trying to make this SFP works with kernel from frank :
https://github.com/frank-w/BPI-Router-Linux
I used sfp.c / sfp.h from your repo :
https://github.com/ericwoud/linux
But it’s not completely working. No errors in dmesg but interface remains down and ping is KO :
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 6.6.16-bpi-r3 (mtg@mtg-VirtualBox) (aarch64-linux-gnu-gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #1 SMP Tue Mar 19 10:13:32 CET 2024
[ 0.000000] Machine model: Bananapi BPI-R3
[ 0.000000] earlycon: uart8250 at MMIO32 0x0000000011002000 (options '')
[ 0.000000] printk: bootconsole [uart8250] enabled
[ 0.000000] efi: UEFI not found.
[ 0.000000] OF: reserved mem: 0x0000000015194000..0x0000000015194fff (4 KiB) nomap non-reusable wo-boot@15194000
[ 0.000000] OF: reserved mem: 0x00000000151e0000..0x00000000151e7fff (32 KiB) nomap non-reusable wo-ilm@151e0000
[ 0.000000] OF: reserved mem: 0x00000000151e8000..0x00000000151e9fff (8 KiB) nomap non-reusable wo-dlm@151e8000
[ 0.000000] OF: reserved mem: 0x00000000151f0000..0x00000000151f7fff (32 KiB) nomap non-reusable wo-ilm@151f0000
[ 0.000000] OF: reserved mem: 0x00000000151f8000..0x00000000151f9fff (8 KiB) nomap non-reusable wo-dlm@151f8000
[ 0.000000] OF: reserved mem: 0x0000000043000000..0x000000004302ffff (192 KiB) nomap non-reusable secmon@43000000
[ 0.000000] OF: reserved mem: 0x000000004fc00000..0x000000004fcfffff (1024 KiB) nomap non-reusable wmcpu-reserved@4fc00000
[ 0.000000] OF: reserved mem: 0x000000004fd00000..0x000000004fd3ffff (256 KiB) nomap non-reusable wo-emi@4fd00000
[ 0.000000] OF: reserved mem: 0x000000004fd40000..0x000000004fd7ffff (256 KiB) nomap non-reusable wo-emi@4fd40000
[ 0.000000] OF: reserved mem: 0x000000004fd80000..0x000000004ffbffff (2304 KiB) nomap non-reusable wo-data@4fd80000
[ 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.4
[ 0.000000] percpu: Embedded 28 pages/cpu s76584 r8192 d29912 u114688
[ 0.000000] pcpu-alloc: s76584 r8192 d29912 u114688 alloc=28*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: detected: ARM erratum 845719
[ 0.000000] alternatives: applying boot alternatives
[ 0.000000] Kernel command line: board=bpi-r3 earlycon=uart8250,mmio32,0x11002000 debug=7 root=/dev/mmcblk0p6 rootfstype=ext4 rootwait
[ 0.000000] Unknown kernel command line parameters "board=bpi-r3", will be passed to user space.
[ 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] Built 1 zonelists, mobility grouping on. Total pages: 516096
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] software IO TLB: area num 4.
[ 0.000000] software IO TLB: mapped [mem 0x00000000b9600000-0x00000000bd600000] (64MB)
[ 0.000000] Memory: 1961948K/2097152K available (12608K kernel code, 2410K rwdata, 4204K rodata, 4480K init, 419K bss, 135204K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] trace event string verifier disabled
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] rcu: RCU event tracing is enabled.
[ 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] Root IRQ handler: gic_handle_irq
[ 0.000000] GICv3: GICv3 features: 16 PPIs
[ 0.000000] GICv3: CPU0: found redistributor 0 region 0:0x000000000c080000
[ 0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[ 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.008275] Console: colour dummy device 80x25
[ 0.012738] printk: console [tty0] enabled
[ 0.016849] printk: bootconsole [uart8250] disabled
[ 0.021777] Calibrating delay loop (skipped), value calculated using timer frequency.. 26.00 BogoMIPS (lpj=130000)
[ 0.021789] pid_max: default: 32768 minimum: 301
[ 0.021896] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[ 0.021912] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[ 0.022503] cacheinfo: Unable to detect cache hierarchy for CPU 0
[ 0.022932] RCU Tasks Trace: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1.
[ 0.023054] rcu: Hierarchical SRCU implementation.
[ 0.023061] rcu: Max phase no-delay instances is 1000.
[ 0.023464] EFI services will not be available.
[ 0.023616] smp: Bringing up secondary CPUs ...
[ 0.023941] Detected VIPT I-cache on CPU1
[ 0.023980] GICv3: CPU1: found redistributor 1 region 0:0x000000000c0a0000
[ 0.024012] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[ 0.024356] Detected VIPT I-cache on CPU2
[ 0.024380] GICv3: CPU2: found redistributor 2 region 0:0x000000000c0c0000
[ 0.024394] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[ 0.024674] Detected VIPT I-cache on CPU3
[ 0.024695] GICv3: CPU3: found redistributor 3 region 0:0x000000000c0e0000
[ 0.024707] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[ 0.024742] smp: Brought up 1 node, 4 CPUs
[ 0.024784] SMP: Total of 4 processors activated.
[ 0.024790] CPU features: detected: 32-bit EL0 Support
[ 0.024796] CPU features: detected: CRC32 instructions
[ 0.024843] CPU features: emulated: Privileged Access Never (PAN) using TTBR0_EL1 switching
[ 0.024854] CPU: All CPU(s) started at EL2
[ 0.024860] alternatives: applying system-wide alternatives
[ 0.026436] devtmpfs: initialized
[ 0.028489] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.028520] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[ 0.028648] pinctrl core: initialized pinctrl subsystem
[ 0.028861] DMI not present or invalid.
[ 0.029235] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.029782] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations
[ 0.029821] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[ 0.029850] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[ 0.030226] thermal_sys: Registered thermal governor 'fair_share'
[ 0.030230] thermal_sys: Registered thermal governor 'bang_bang'
[ 0.030238] thermal_sys: Registered thermal governor 'step_wise'
[ 0.030244] thermal_sys: Registered thermal governor 'user_space'
[ 0.030342] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.030407] ASID allocator initialised with 65536 entries
[ 0.038001] Modules: 26688 pages in range for non-PLT usage
[ 0.038015] Modules: 518208 pages in range for PLT usage
[ 0.038744] cryptd: max_cpu_qlen set to 1000
[ 0.039157] iommu: Default domain type: Translated
[ 0.039173] iommu: DMA domain TLB invalidation policy: strict mode
[ 0.039307] SCSI subsystem initialized
[ 0.039405] libata version 3.00 loaded.
[ 0.039515] usbcore: registered new interface driver usbfs
[ 0.039540] usbcore: registered new interface driver hub
[ 0.039567] usbcore: registered new device driver usb
[ 0.039816] i2c-gpio i2c-gpio-0: using lines 528 (SDA) and 529 (SCL)
[ 0.039928] i2c-gpio i2c-gpio-1: using lines 530 (SDA) and 531 (SCL)
[ 0.039976] pps_core: LinuxPPS API ver. 1 registered
[ 0.039982] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <[email protected]>
[ 0.039998] PTP clock support registered
[ 0.040936] vgaarb: loaded
[ 0.041237] clocksource: Switched to clocksource arch_sys_counter
[ 0.045122] NET: Registered PF_INET protocol family
[ 0.045273] IP idents hash table entries: 32768 (order: 6, 262144 bytes, linear)
[ 0.046277] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear)
[ 0.046306] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.046320] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear)
[ 0.046394] TCP bind hash table entries: 16384 (order: 7, 524288 bytes, linear)
[ 0.046725] TCP: Hash tables configured (established 16384 bind 16384)
[ 0.046818] UDP hash table entries: 1024 (order: 3, 32768 bytes, linear)
[ 0.046854] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear)
[ 0.046987] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 0.047322] RPC: Registered named UNIX socket transport module.
[ 0.047333] RPC: Registered udp transport module.
[ 0.047339] RPC: Registered tcp transport module.
[ 0.047344] RPC: Registered tcp-with-tls transport module.
[ 0.047350] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.047364] PCI: CLS 0 bytes, default 64
[ 0.052029] Initialise system trusted keyrings
[ 0.052261] workingset: timestamp_bits=46 max_order=19 bucket_order=0
[ 0.052515] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.052751] NFS: Registering the id_resolver key type
[ 0.052789] Key type id_resolver registered
[ 0.052796] Key type id_legacy registered
[ 0.052813] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 0.052821] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[ 0.052842] jffs2: version 2.2. (NAND) (SUMMARY) \xc2\xa9 2001-2006 Red Hat, Inc.
[ 0.071986] Key type asymmetric registered
[ 0.072009] Asymmetric key parser 'x509' registered
[ 0.072065] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[ 0.072076] io scheduler mq-deadline registered
[ 0.072086] io scheduler kyber registered
[ 0.072126] io scheduler bfq registered
[ 0.109780] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[ 0.132148] 11002000.serial: ttyS0 at MMIO 0x11002000 (irq = 116, base_baud = 2500000) is a ST16650V2
[ 0.132211] printk: console [ttyS0] enabled
[ 1.141287] 11003000.serial: ttyS1 at MMIO 0x11003000 (irq = 117, base_baud = 1625000) is a ST16650V2
[ 1.172026] 11004000.serial: ttyS2 at MMIO 0x11004000 (irq = 118, base_baud = 1625000) is a ST16650V2
[ 1.182177] mtk_rng 1020f000.rng: registered RNG driver
[ 1.191252] loop: module loaded
[ 1.196137] spi-nand spi0.0: Winbond SPI NAND was found.
[ 1.201487] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[ 1.209798] 4 fixed-partitions partitions found on MTD device spi0.0
[ 1.216221] Creating 4 MTD partitions on "spi0.0":
[ 1.221000] 0x000000580000-0x000008000000 : "ubi"
[ 1.340140] 0x000000380000-0x000000580000 : "fip"
[ 1.347637] 0x000000100000-0x000000380000 : "reserved"
[ 1.356016] 0x000000000000-0x000000100000 : "bl2"
[ 1.363623] sfp sfp-1: Host maximum power 3.0W
[ 1.368590] sfp sfp-2: Host maximum power 3.0W
[ 1.502471] mtk_soc_eth 15100000.ethernet: generated random MAC address 12:08:af:64:50:52
[ 1.512693] mtk_soc_eth 15100000.ethernet eth0: mediatek frame engine at 0xffffffc082700000, irq 123
[ 1.522569] mtk_soc_eth 15100000.ethernet eth1: mediatek frame engine at 0xffffffc082700000, irq 123
[ 1.532194] usbcore: registered new interface driver usb-storage
[ 1.538387] i2c_dev: i2c /dev entries driver
[ 1.544913] mtk-wdt 1001c000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0)
[ 1.553661] SMCCC: SOC_ID: ID = jep106:0426:7986 Revision = 0x00000000
[ 1.560302] usbcore: registered new interface driver usbhid
[ 1.565886] usbhid: USB HID core driver
[ 1.570140] NET: Registered PF_INET6 protocol family
[ 1.575723] Segment Routing with IPv6
[ 1.579405] In-situ OAM (IOAM) with IPv6
[ 1.583363] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 1.589663] NET: Registered PF_PACKET protocol family
[ 1.594982] 8021q: 802.1Q VLAN Support v1.8
[ 1.605082] Loading compiled-in X.509 certificates
[ 1.621102] mtk-pcie-gen3 11280000.pcie: host bridge /soc/pcie@11280000 ranges:
[ 1.628455] mtk-pcie-gen3 11280000.pcie: Parsing ranges property...
[ 1.634719] mtk-pcie-gen3 11280000.pcie: MEM 0x0020000000..0x002fffffff -> 0x0020000000
[ 1.720921] sfp sfp-2: module FS SFP-2.5G-T rev 1.0 sn G2340039491 dc 231101
[ 1.861250] mtk-pcie-gen3 11280000.pcie: PCIe link down, current LTSSM state: detect.active (0x1000001)
[ 1.870685] mtk-pcie-gen3: probe of 11280000.pcie failed with error -110
[ 1.930473] mt7530-mdio mdio-bus:1f: configuring for fixed/2500base-x link mode
[ 1.939627] mt7530-mdio mdio-bus:1f: Link is Up - 2.5Gbps/Full - flow control rx/tx
[ 1.948325] mt7530-mdio mdio-bus:1f wan (uninitialized): PHY [mt7530-0:00] driver [MediaTek MT7531 PHY] (irq=128)
[ 1.968676] mt7530-mdio mdio-bus:1f lan0 (uninitialized): PHY [mt7530-0:01] driver [MediaTek MT7531 PHY] (irq=129)
[ 1.988844] mt7530-mdio mdio-bus:1f lan1 (uninitialized): PHY [mt7530-0:02] driver [MediaTek MT7531 PHY] (irq=130)
[ 2.009027] mt7530-mdio mdio-bus:1f lan2 (uninitialized): PHY [mt7530-0:03] driver [MediaTek MT7531 PHY] (irq=131)
[ 2.029189] mt7530-mdio mdio-bus:1f lan3 (uninitialized): PHY [mt7530-0:04] driver [MediaTek MT7531 PHY] (irq=132)
[ 2.040583] mtk_soc_eth 15100000.ethernet eth0: entered promiscuous mode
[ 2.047336] DSA: tree 0 setup
[ 2.050770] xhci-mtk 11200000.usb: supply vbus not found, using dummy regulator
[ 2.058173] xhci-mtk 11200000.usb: supply vusb33 not found, using dummy regulator
[ 2.066612] xhci-mtk 11200000.usb: xHCI Host Controller
[ 2.071872] xhci-mtk 11200000.usb: new USB bus registered, assigned bus number 1
[ 2.082234] xhci-mtk 11200000.usb: hcc params 0x01403f99 hci version 0x110 quirks 0x0000000000200010
[ 2.091406] xhci-mtk 11200000.usb: irq 133, io mem 0x11200000
[ 2.097228] xhci-mtk 11200000.usb: xHCI Host Controller
[ 2.102450] xhci-mtk 11200000.usb: new USB bus registered, assigned bus number 2
[ 2.109834] xhci-mtk 11200000.usb: Host supports USB 3.2 Enhanced SuperSpeed
[ 2.117356] hub 1-0:1.0: USB hub found
[ 2.121126] hub 1-0:1.0: 2 ports detected
[ 2.125508] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[ 2.133982] hub 2-0:1.0: USB hub found
[ 2.137747] hub 2-0:1.0: 1 port detected
[ 2.143303] clk: Disabling unused clocks
[ 2.170040] Waiting for root device /dev/mmcblk0p6...
[ 2.204735] mmc0: host does not support reading read-only switch, assuming write-enable
[ 2.216423] mmc0: new high speed SDHC card at address aaaa
[ 2.222757] mmcblk0: mmc0:aaaa SA08G 7.40 GiB
[ 2.235216] mmcblk0: p1 p2 p3 p4 p5 p6
[ 2.274302] EXT4-fs (mmcblk0p6): mounted filesystem c4133c1c-a36b-48da-952a-43ee4e59dcfb ro with ordered data mode. Quota mode: disabled.
[ 2.286750] VFS: Mounted root (ext4 filesystem) readonly on device 179:6.
[ 2.294887] devtmpfs: mounted
[ 2.299331] Freeing unused kernel memory: 4480K
[ 2.391267] Run /sbin/init as init process
[ 2.395362] with arguments:
[ 2.398318] /sbin/init
[ 2.401013] with environment:
[ 2.404151] HOME=/
[ 2.406499] TERM=linux
[ 2.409194] board=bpi-r3
[ 2.571246] usb 1-1: new high-speed USB device number 2 using xhci-mtk
[ 2.762106] hub 1-1:1.0: USB hub found
[ 2.765921] hub 1-1:1.0: 4 ports detected
[ 3.194012] systemd[1]: System time before build time, advancing clock.
[ 3.256043] systemd[1]: Failed to find module 'autofs4'
[ 3.420930] systemd[1]: systemd 252.22-1~deb12u1 running in system mode (+PAM +AUDIT +SELINUX +APPARMOR +IMA +SMACK +SECCOMP +GCRYPT -GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS +FIDO2 +IDN2 -IDN +IPTC +KMOD +LIBCRYPTSETUP +LIBFDISK +PCRE2 -PWQUALITY +P11KIT +QRENCODE +TPM2 +BZIP2 +LZ4 +XZ +ZLIB +ZSTD -BPF_FRAMEWORK -XKBCOMMON +UTMP +SYSVINIT default-hierarchy=unified)
[ 3.453659] systemd[1]: Detected architecture arm64.
[ 3.497552] systemd[1]: Hostname set to <bpi-r3>.
[ 4.053159] systemd[1]: Queued start job for default target graphical.target.
[ 4.123406] systemd[1]: Created slice system-getty.slice - Slice /system/getty.
[ 4.162531] systemd[1]: Created slice system-modprobe.slice - Slice /system/modprobe.
[ 4.202471] systemd[1]: Created slice system-serial\x2dgetty.slice - Slice /system/serial-getty.
[ 4.242058] systemd[1]: Created slice user.slice - User and Session Slice.
[ 4.281567] systemd[1]: Started systemd-ask-password-console.path - Dispatch Password Requests to Console Directory Watch.
[ 4.321498] systemd[1]: Started systemd-ask-password-wall.path - Forward Password Requests to Wall Directory Watch.
[ 4.361434] systemd[1]: proc-sys-fs-binfmt_misc.automount - Arbitrary Executable File Formats File System Automount Point was skipped because of an unmet condition check (ConditionPathExists=/proc/sys/fs/binfmt_misc).
[ 4.380789] systemd[1]: Expecting device dev-mmcblk0p5.device - /dev/mmcblk0p5...
[ 4.421291] systemd[1]: Expecting device dev-ttyS0.device - /dev/ttyS0...
[ 4.461333] systemd[1]: Reached target cryptsetup.target - Local Encrypted Volumes.
[ 4.501355] systemd[1]: Reached target integritysetup.target - Local Integrity Protected Volumes.
[ 4.541390] systemd[1]: Reached target paths.target - Path Units.
[ 4.581341] systemd[1]: Reached target remote-fs.target - Remote File Systems.
[ 4.621323] systemd[1]: Reached target slices.target - Slice Units.
[ 4.661358] systemd[1]: Reached target swap.target - Swaps.
[ 4.701345] systemd[1]: Reached target veritysetup.target - Local Verity Protected Volumes.
[ 4.741604] systemd[1]: Listening on systemd-initctl.socket - initctl Compatibility Named Pipe.
[ 4.787564] systemd[1]: systemd-journald-audit.socket - Journal Audit Socket was skipped because of an unmet condition check (ConditionSecurity=audit).
[ 4.801790] systemd[1]: Listening on systemd-journald-dev-log.socket - Journal Socket (/dev/log).
[ 4.841786] systemd[1]: Listening on systemd-journald.socket - Journal Socket.
[ 4.881893] systemd[1]: Listening on systemd-networkd.socket - Network Service Netlink Socket.
[ 4.921840] systemd[1]: Listening on systemd-udevd-control.socket - udev Control Socket.
[ 4.961700] systemd[1]: Listening on systemd-udevd-kernel.socket - udev Kernel Socket.
[ 5.001739] systemd[1]: dev-hugepages.mount - Huge Pages File System was skipped because of an unmet condition check (ConditionPathExists=/sys/kernel/mm/hugepages).
[ 5.071481] systemd[1]: Mounting dev-mqueue.mount - POSIX Message Queue File System...
[ 5.113949] systemd[1]: Mounting sys-kernel-debug.mount - Kernel Debug File System...
[ 5.153983] systemd[1]: Mounting sys-kernel-tracing.mount - Kernel Trace File System...
[ 5.194494] systemd[1]: Starting kmod-static-nodes.service - Create List of Static Device Nodes...
[ 5.234354] systemd[1]: Starting [email protected] - Load Kernel Module configfs...
[ 5.284277] systemd[1]: Starting modprobe@dm_mod.service - Load Kernel Module dm_mod...
[ 5.324302] systemd[1]: Starting [email protected] - Load Kernel Module drm...
[ 5.374276] systemd[1]: Starting modprobe@efi_pstore.service - Load Kernel Module efi_pstore...
[ 5.414299] systemd[1]: Starting [email protected] - Load Kernel Module fuse...
[ 5.464381] systemd[1]: Starting [email protected] - Load Kernel Module loop...
[ 5.501974] systemd[1]: systemd-journald.service: unit configures an IP firewall, but the local system does not support BPF/cgroup firewalling.
[ 5.514877] systemd[1]: (This warning is only shown for the first unit using IP firewalling.)
[ 5.525910] systemd[1]: Starting systemd-journald.service - Journal Service...
[ 5.674292] fuse: init (API version 7.39)
[ 5.675638] systemd[1]: Starting systemd-modules-load.service - Load Kernel Modules...
[ 5.724230] systemd[1]: Starting systemd-network-generator.service - Generate network units from Kernel command line...
[ 5.774237] systemd[1]: Starting systemd-remount-fs.service - Remount Root and Kernel File Systems...
[ 5.824201] systemd[1]: Starting systemd-udev-trigger.service - Coldplug All udev Devices...
[ 5.856431] EXT4-fs (mmcblk0p6): re-mounted c4133c1c-a36b-48da-952a-43ee4e59dcfb r/w. Quota mode: disabled.
[ 5.870844] systemd[1]: Started systemd-journald.service - Journal Service.
[ 6.574484] systemd-journald[1455]: Received client request to flush runtime journal.
[ 7.451365] mtdblock: MTD device 'ubi' is NAND, please consider using UBI block devices instead.
[ 7.462158] mtdblock: MTD device 'reserved' is NAND, please consider using UBI block devices instead.
[ 7.465899] mtdblock: MTD device 'fip' is NAND, please consider using UBI block devices instead.
[ 7.469191] mtdblock: MTD device 'bl2' is NAND, please consider using UBI block devices instead.
[ 9.034540] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 9.055390] Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 9.061575] Loaded X.509 cert 'wens: 61c038651aabdcf94bd0ac7ff06c7248db18c600'
[ 10.353689] lanbr0: port 1(lan3) entered blocking state
[ 10.358936] lanbr0: port 1(lan3) entered disabled state
[ 10.364255] mt7530-mdio mdio-bus:1f lan3: entered allmulticast mode
[ 10.370521] mtk_soc_eth 15100000.ethernet eth0: entered allmulticast mode
[ 10.380662] mt7530-mdio mdio-bus:1f lan3: entered promiscuous mode
[ 10.390900] lanbr0: port 2(lan2) entered blocking state
[ 10.397307] lanbr0: port 2(lan2) entered disabled state
[ 10.402575] mt7530-mdio mdio-bus:1f lan2: entered allmulticast mode
[ 10.410124] mt7530-mdio mdio-bus:1f lan2: entered promiscuous mode
[ 10.419545] lanbr0: port 3(lan1) entered blocking state
[ 10.424906] lanbr0: port 3(lan1) entered disabled state
[ 10.430190] mt7530-mdio mdio-bus:1f lan1: entered allmulticast mode
[ 10.437993] mt7530-mdio mdio-bus:1f lan1: entered promiscuous mode
[ 10.446907] lanbr0: port 4(lan0) entered blocking state
[ 10.452212] lanbr0: port 4(lan0) entered disabled state
[ 10.457463] mt7530-mdio mdio-bus:1f lan0: entered allmulticast mode
[ 10.465079] mt7530-mdio mdio-bus:1f lan0: entered promiscuous mode
[ 10.480979] mtk_soc_eth 15100000.ethernet eth0: configuring for fixed/2500base-x link mode
[ 10.490842] mtk_soc_eth 15100000.ethernet eth0: Link is Up - 2.5Gbps/Full - flow control rx/tx
[ 10.494638] mt7530-mdio mdio-bus:1f lan3: configuring for phy/gmii link mode
[ 10.507577] mt7530-mdio mdio-bus:1f lan2: configuring for phy/gmii link mode
[ 10.515739] mt7530-mdio mdio-bus:1f lan1: configuring for phy/gmii link mode
[ 10.523981] mt7530-mdio mdio-bus:1f lan0: configuring for phy/gmii link mode
[ 10.534304] mt7530-mdio mdio-bus:1f lan0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 10.582325] mt7530-mdio mdio-bus:1f wan: configuring for phy/gmii link mode
[ 10.589967] lanbr0: port 4(lan0) entered blocking state
[ 10.596301] lanbr0: port 4(lan0) entered forwarding state
[ 11.371501] random: crng init done
[ 12.598491] mt798x-wmac 18000000.wifi: HW/SW Version: 0x8a108a10, Build Time: 20221012174743a
[ 12.686231] mt798x-wmac 18000000.wifi: WM Firmware Version: ____000000, Build Time: 20221012174805
[ 12.752219] mt798x-wmac 18000000.wifi: WA Firmware Version: DEV_000000, Build Time: 20221012174937
[ 12.897079] mt798x-wmac 18000000.wifi: eeprom load fail, use default bin
[ 173.547685] sfp sfp-2: module removed
[ 176.080873] sfp sfp-1: module FS SFP-2.5G-T rev 1.0 sn G2340039491 dc 231101
I notices this line was present in dmesg with you image, but not here :
[ 1532.119958] mt7530-mdio mdio-bus:1f lan4: switched to phy/2500base-x link mode
[ 1533.279896] mt7530-mdio mdio-bus:1f lan4: PHY [i2c:sfp-2:11] driver [RTL8221B-VB-CG 2.5Gbps PHY (C45)] (irq=POLL)
[ 1538.039888] mt7530-mdio mdio-bus:1f lan4: No phy led trigger registered for speed(1000)
[ 1538.140072] mt7530-mdio mdio-bus:1f lan4: Link is Up - 1Gbps/Full - flow control rx/tx
Do you know what I’m missing ?
Thanks.