WED and beamforming on BPI-R3

cat /proc/config.gz | gunzip | grep 'WED'

Should work too,somewhere i had a zcat/zgrep definition for systems that don’t have it like yours

looks like there is no file called config.gz in /proc

I hope there is a module named configs…

modprobe configs

Then the file should be there…else you need to recompile kernel with OPTION_IKCONFIG

root@OpenWrt:~# modprobe configs
failed to find a module named configs

:upside_down_face:

Speaking of WED… @dangowrt , I’m using openwrt with 6.1 and WED doesn’t get attached at all, no errors on boot

  0.000000] Booting Linux on physical CPU     0x0000000000 [0x410fd034]
[    0.000000] Linux version 6.1.45 ([email protected]) (aarch64-openwrt-linux-musl-gcc (OpenWrt GCC 12.3.0 r23579-1c56801dd2) 12.3.0, GNU ld (GNU Binutils) 2.40.0) #0 SMP Sat Aug 12 10:10:36 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.4
[    0.000000] percpu: Embedded 17 pages/cpu s30312 r8192 d31128 u69632
[    0.000000] pcpu-alloc: s30312 r8192 d31128 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] alternatives: applying boot alternatives
[    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: 2040132K/2097152K available (8320K kernel code, 890K rwdata, 2428K rodata, 448K init, 287K bss, 57020K 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] 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.000129] Calibrating delay loop (skipped), value calculated using timer frequency.. 26.00 BogoMIPS (lpj=130000)
[    0.000136] pid_max: default: 32768 minimum: 301
[    0.000356] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.000368] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.001039] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    0.001342] cblist_init_generic: Setting adjustable number of callback queues.
[    0.001344] cblist_init_generic: Setting shift to 2 and lim to 1.
[    0.001435] rcu: Hierarchical SRCU implementation.
[    0.001436] rcu: 	Max phase no-delay instances is 1000.
[    0.001746] smp: Bringing up secondary CPUs ...
[    0.002002] Detected VIPT I-cache on CPU1
[    0.002053] cacheinfo: Unable to detect cache hierarchy for CPU 1
[    0.002059] GICv3: CPU1: found redistributor 1 region 0:0x000000000c0a0000
[    0.002085] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.002355] Detected VIPT I-cache on CPU2
[    0.002390] cacheinfo: Unable to detect cache hierarchy for CPU 2
[    0.002394] GICv3: CPU2: found redistributor 2 region 0:0x000000000c0c0000
[    0.002406] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[    0.002650] Detected VIPT I-cache on CPU3
[    0.002682] cacheinfo: Unable to detect cache hierarchy for CPU 3
[    0.002685] GICv3: CPU3: found redistributor 3 region 0:0x000000000c0e0000
[    0.002694] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[    0.002719] smp: Brought up 1 node, 4 CPUs
[    0.002722] SMP: Total of 4 processors activated.
[    0.002724] CPU features: detected: 32-bit EL0 Support
[    0.002727] CPU features: detected: CRC32 instructions
[    0.002749] CPU features: emulated: Privileged Access Never (PAN) using TTBR0_EL1 switching
[    0.002751] CPU: All CPU(s) started at EL2
[    0.002753] alternatives: applying system-wide alternatives
[    0.005700] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.005718] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.005846] pinctrl core: initialized pinctrl subsystem
[    0.006352] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.006601] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations
[    0.006631] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.006657] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.007015] thermal_sys: Registered thermal governor 'fair_share'
[    0.007018] thermal_sys: Registered thermal governor 'bang_bang'
[    0.007020] thermal_sys: Registered thermal governor 'step_wise'
[    0.007022] thermal_sys: Registered thermal governor 'user_space'
[    0.007057] ASID allocator initialised with 65536 entries
[    0.007368] pstore: Registered ramoops as persistent store backend
[    0.007370] ramoops: using 0x10000@0x42ff0000, ecc: 0
[    0.016384] cryptd: max_cpu_qlen set to 1000
[    0.017503] SCSI subsystem initialized
[    0.017600] libata version 3.00 loaded.
[    0.018479] clocksource: Switched to clocksource arch_sys_counter
[    0.019045] NET: Registered PF_INET protocol family
[    0.019176] IP idents hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.020118] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear)
[    0.020135] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.020143] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.020212] TCP bind hash table entries: 16384 (order: 7, 524288 bytes, linear)
[    0.020539] TCP: Hash tables configured (established 16384 bind 16384)
[    0.020628] UDP hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.020656] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.020785] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.020805] PCI: CLS 0 bytes, default 64
[    0.021777] workingset: timestamp_bits=46 max_order=19 bucket_order=0
[    0.024595] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.024603] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.048094] mtk-pcie-gen3 11280000.pcie: host bridge /soc/pcie@11280000 ranges:
[    0.048115] mtk-pcie-gen3 11280000.pcie: Parsing ranges property...
[    0.048123] mtk-pcie-gen3 11280000.pcie:      MEM 0x0020000000..0x002fffffff -> 0x0020000000
[    0.048205] /soc/pcie@11280000: Failed to get clk index: 0 ret: -517
[    0.048214] mtk-pcie-gen3 11280000.pcie: failed to get clocks
[    0.051015] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    0.051704] printk: console [ttyS0] disabled
[    0.071860] 11002000.serial: ttyS0 at MMIO 0x11002000 (irq = 116, base_baud = 2500000) is a ST16650V2
[    0.790549] printk: console [ttyS0] enabled
[    0.815357] 11003000.serial: ttyS1 at MMIO 0x11003000 (irq = 117, base_baud = 1625000) is a ST16650V2
[    0.845114] 11004000.serial: ttyS2 at MMIO 0x11004000 (irq = 118, base_baud = 1625000) is a ST16650V2
[    0.854933] mtk_rng 1020f000.rng: registered RNG driver
[    0.860431] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    0.868835] loop: module loaded
[    0.873106] spi-nor spi0.0: w25q256 (32768 Kbytes)
[    0.878029] 6 fixed-partitions partitions found on MTD device spi0.0
[    0.884388] OF: Bad cell count for /soc/spi@1100a000/flash@0/partitions
[    0.890996] OF: Bad cell count for /soc/spi@1100a000/flash@0/partitions
[    0.897735] Creating 6 MTD partitions on "spi0.0":
[    0.902518] 0x000000c00000-0x000002000000 : "fit"
[    0.923766] no rootfs found after FIT image in "fit"
[    0.928747] 0x000000180000-0x000000c00000 : "recovery"
[    0.934189] 0x000000100000-0x000000180000 : "fip"
[    0.939134] 0x000000080000-0x000000100000 : "reserved2"
[    0.944577] 0x000000040000-0x000000080000 : "u-boot-env"
[    0.950117] 0x000000000000-0x000000040000 : "bl2"
[    1.110999] mtk_soc_eth 15100000.ethernet eth0: mediatek frame engine at 0xffffffc009580000, irq 121
[    1.120789] mtk_soc_eth 15100000.ethernet eth1: mediatek frame engine at 0xffffffc009580000, irq 121
[    1.130353] i2c_dev: i2c /dev entries driver
[    1.136308] mtk-wdt 1001c000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0)
[    1.144826] NET: Registered PF_INET6 protocol family
[    1.150509] Segment Routing with IPv6
[    1.154183] In-situ OAM (IOAM) with IPv6
[    1.158121] NET: Registered PF_PACKET protocol family
[    1.163241] 8021q: 802.1Q VLAN Support v1.8
[    1.168396] pstore: Using crash dump compression: deflate
[    1.181800] mtk-pcie-gen3 11280000.pcie: host bridge /soc/pcie@11280000 ranges:
[    1.189144] mtk-pcie-gen3 11280000.pcie: Parsing ranges property...
[    1.195400] mtk-pcie-gen3 11280000.pcie:      MEM 0x0020000000..0x002fffffff -> 0x0020000000
[    1.225335] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.235865] mmc0: new high speed SDXC card at address 59b4
[    1.242190] mmcblk0: mmc0:59b4 ED2S5 119 GiB 
[    1.250568] Alternate GPT is invalid, using primary GPT.
[    1.256518] FIT: Selected configuration: "config-mt7986a-bananapi-bpi-r3" (OpenWrt bananapi_bpi-r3)
[    1.265558] FIT:           kernel sub-image 0x00001000..0x0053d394 "kernel-1" (ARM64 OpenWrt Linux-6.1.45) 
[    1.275283] FIT:          flat_dt sub-image 0x0053e000..0x005459fc "fdt-1" (ARM64 OpenWrt bananapi_bpi-r3 device tree blob) 
[    1.286482] FIT:          flat_dt sub-image 0x00546000..0x005461dc "fdt-mt7986a-bananapi-bpi-r3-emmc" (ARM64 OpenWrt bananapi_bpi-r3 device tree overlay mt7986a-bananapi-bpi-r3-emmc) 
[    1.302798] FIT:          flat_dt sub-image 0x00547000..0x00547394 "fdt-mt7986a-bananapi-bpi-r3-nand" (ARM64 OpenWrt bananapi_bpi-r3 device tree overlay mt7986a-bananapi-bpi-r3-nand) 
[    1.319112] FIT:          flat_dt sub-image 0x00548000..0x0054838f "fdt-mt7986a-bananapi-bpi-r3-nor" (ARM64 OpenWrt bananapi_bpi-r3 device tree overlay mt7986a-bananapi-bpi-r3-nor) 
[    1.335251] FIT:          flat_dt sub-image 0x00549000..0x00549146 "fdt-mt7986a-bananapi-bpi-r3-sd" (ARM64 OpenWrt bananapi_bpi-r3 device tree overlay mt7986a-bananapi-bpi-r3-sd) 
[    1.351215] FIT:       filesystem sub-image 0x0054a000..0x015a9fff "rootfs-1" (ARM64 OpenWrt bananapi_bpi-r3 rootfs) 
[    1.354950] mtk-pcie-gen3 11280000.pcie: set MEM trans window[0]: cpu_addr = 0x20000000, pci_addr = 0x20000000, size = 0x10000000
[    1.361801] FIT: selecting configured loadable "rootfs-1" to be root filesystem
[    1.373579] mtk-pcie-gen3 11280000.pcie: PCI host bridge to bus 0000:00
[    1.380714]  mmcblk0: p1 p2 p3 p4 p5 p6 p7 p65(rootfs-1) p66(rootfs_data)
[    1.387301] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.399544] pci_bus 0000:00: root bus resource [mem 0x20000000-0x2fffffff]
[    1.406406] pci_bus 0000:00: scanning bus
[    1.410429] pci 0000:00:00.0: [14c3:1f32] type 01 class 0x060400
[    1.416431] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x00007fff 64bit]
[    1.423267] pci 0000:00:00.0: PME# supported from D0 D3hot D3cold
[    1.429347] pci 0000:00:00.0: PME# disabled
[    1.434320] pci_bus 0000:00: fixups for bus
[    1.438495] pci 0000:00:00.0: scanning [bus 00-00] behind bridge, pass 0
[    1.445175] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.453167] pci 0000:00:00.0: scanning [bus 00-00] behind bridge, pass 1
[    1.459924] pci_bus 0000:01: scanning bus
[    1.463943] pci 0000:01:00.0: [14c3:0616] type 00 class 0x028000
[    1.469960] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit pref]
[    1.477177] pci 0000:01:00.0: reg 0x18: [mem 0x00000000-0x00007fff 64bit]
[    1.484081] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[    1.490162] pci 0000:01:00.0: PME# disabled
[    1.518516] pci_bus 0000:01: fixups for bus
[    1.522686] pci_bus 0000:01: bus scan returning with max=01
[    1.528240] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    1.534845] pci_bus 0000:00: bus scan returning with max=01
[    1.540415] pci 0000:00:00.0: BAR 8: assigned [mem 0x20000000-0x200fffff]
[    1.547184] pci 0000:00:00.0: BAR 9: assigned [mem 0x20100000-0x201fffff 64bit pref]
[    1.554908] pci 0000:00:00.0: BAR 0: assigned [mem 0x20200000-0x20207fff 64bit]
[    1.562205] pci 0000:01:00.0: BAR 0: assigned [mem 0x20100000-0x201fffff 64bit pref]
[    1.569941] pci 0000:01:00.0: BAR 2: assigned [mem 0x20000000-0x20007fff 64bit]
[    1.577240] pci 0000:00:00.0: PCI bridge to [bus 01]
[    1.582192] pci 0000:00:00.0:   bridge window [mem 0x20000000-0x200fffff]
[    1.588963] pci 0000:00:00.0:   bridge window [mem 0x20100000-0x201fffff 64bit pref]
[    1.596805] pcieport 0000:00:00.0: assign IRQ: got 128
[    1.601936] pcieport 0000:00:00.0: enabling device (0000 -> 0002)
[    1.608019] pcieport 0000:00:00.0: enabling bus mastering
[    1.613807] mtk-pcie-gen3 11280000.pcie: msi#0x0 address_hi 0x0 address_lo 0x11280c00 data 0
[    1.622233] mtk-pcie-gen3 11280000.pcie: msi#0x1 address_hi 0x0 address_lo 0x11280c00 data 1
[    1.630651] mtk-pcie-gen3 11280000.pcie: msi#0x2 address_hi 0x0 address_lo 0x11280c00 data 2
[    1.639071] mtk-pcie-gen3 11280000.pcie: msi#0x3 address_hi 0x0 address_lo 0x11280c00 data 3
[    1.647486] mtk-pcie-gen3 11280000.pcie: msi#0x4 address_hi 0x0 address_lo 0x11280c00 data 4
[    1.655903] mtk-pcie-gen3 11280000.pcie: msi#0x5 address_hi 0x0 address_lo 0x11280c00 data 5
[    1.664319] mtk-pcie-gen3 11280000.pcie: msi#0x6 address_hi 0x0 address_lo 0x11280c00 data 6
[    1.672736] mtk-pcie-gen3 11280000.pcie: msi#0x7 address_hi 0x0 address_lo 0x11280c00 data 7
[    1.681153] mtk-pcie-gen3 11280000.pcie: msi#0x8 address_hi 0x0 address_lo 0x11280c00 data 8
[    1.689570] mtk-pcie-gen3 11280000.pcie: msi#0x9 address_hi 0x0 address_lo 0x11280c00 data 9
[    1.697984] mtk-pcie-gen3 11280000.pcie: msi#0xa address_hi 0x0 address_lo 0x11280c00 data 10
[    1.706486] mtk-pcie-gen3 11280000.pcie: msi#0xb address_hi 0x0 address_lo 0x11280c00 data 11
[    1.714990] mtk-pcie-gen3 11280000.pcie: msi#0xc address_hi 0x0 address_lo 0x11280c00 data 12
[    1.723493] mtk-pcie-gen3 11280000.pcie: msi#0xd address_hi 0x0 address_lo 0x11280c00 data 13
[    1.731996] mtk-pcie-gen3 11280000.pcie: msi#0xe address_hi 0x0 address_lo 0x11280c00 data 14
[    1.740500] mtk-pcie-gen3 11280000.pcie: msi#0xf address_hi 0x0 address_lo 0x11280c00 data 15
[    1.749003] mtk-pcie-gen3 11280000.pcie: msi#0x10 address_hi 0x0 address_lo 0x11280c00 data 16
[    1.757591] mtk-pcie-gen3 11280000.pcie: msi#0x11 address_hi 0x0 address_lo 0x11280c00 data 17
[    1.766182] mtk-pcie-gen3 11280000.pcie: msi#0x12 address_hi 0x0 address_lo 0x11280c00 data 18
[    1.774773] mtk-pcie-gen3 11280000.pcie: msi#0x13 address_hi 0x0 address_lo 0x11280c00 data 19
[    1.783364] mtk-pcie-gen3 11280000.pcie: msi#0x14 address_hi 0x0 address_lo 0x11280c00 data 20
[    1.791953] mtk-pcie-gen3 11280000.pcie: msi#0x15 address_hi 0x0 address_lo 0x11280c00 data 21
[    1.800544] mtk-pcie-gen3 11280000.pcie: msi#0x16 address_hi 0x0 address_lo 0x11280c00 data 22
[    1.809134] mtk-pcie-gen3 11280000.pcie: msi#0x17 address_hi 0x0 address_lo 0x11280c00 data 23
[    1.817721] mtk-pcie-gen3 11280000.pcie: msi#0x18 address_hi 0x0 address_lo 0x11280c00 data 24
[    1.826310] mtk-pcie-gen3 11280000.pcie: msi#0x19 address_hi 0x0 address_lo 0x11280c00 data 25
[    1.834901] mtk-pcie-gen3 11280000.pcie: msi#0x1a address_hi 0x0 address_lo 0x11280c00 data 26
[    1.843491] mtk-pcie-gen3 11280000.pcie: msi#0x1b address_hi 0x0 address_lo 0x11280c00 data 27
[    1.852080] mtk-pcie-gen3 11280000.pcie: msi#0x1c address_hi 0x0 address_lo 0x11280c00 data 28
[    1.860670] mtk-pcie-gen3 11280000.pcie: msi#0x1d address_hi 0x0 address_lo 0x11280c00 data 29
[    1.869260] mtk-pcie-gen3 11280000.pcie: msi#0x1e address_hi 0x0 address_lo 0x11280c00 data 30
[    1.877847] mtk-pcie-gen3 11280000.pcie: msi#0x1f address_hi 0x0 address_lo 0x11280c00 data 31
[    1.886795] mtk-pcie-gen3 11280000.pcie: msi#0x0 address_hi 0x0 address_lo 0x11280c00 data 0
[    1.895310] pcieport 0000:00:00.0: PME: Signaling with IRQ 129
[    1.901290] pcieport 0000:00:00.0: AER: enabled with IRQ 129
[    1.906995] pcieport 0000:00:00.0: saving config space at offset 0x0 (reading 0x1f3214c3)
[    1.915168] pcieport 0000:00:00.0: saving config space at offset 0x4 (reading 0x100406)
[    1.923152] pcieport 0000:00:00.0: saving config space at offset 0x8 (reading 0x6040001)
[    1.931223] pcieport 0000:00:00.0: saving config space at offset 0xc (reading 0x10000)
[    1.939120] pcieport 0000:00:00.0: saving config space at offset 0x10 (reading 0x20200004)
[    1.947360] pcieport 0000:00:00.0: saving config space at offset 0x14 (reading 0x0)
[    1.954996] pcieport 0000:00:00.0: saving config space at offset 0x18 (reading 0x10100)
[    1.962980] pcieport 0000:00:00.0: saving config space at offset 0x1c (reading 0x1f1)
[    1.970790] pcieport 0000:00:00.0: saving config space at offset 0x20 (reading 0x20002000)
[    1.979033] pcieport 0000:00:00.0: saving config space at offset 0x24 (reading 0x20112011)
[    1.987273] pcieport 0000:00:00.0: saving config space at offset 0x28 (reading 0x0)
[    1.994910] pcieport 0000:00:00.0: saving config space at offset 0x2c (reading 0x0)
[    2.002546] pcieport 0000:00:00.0: saving config space at offset 0x30 (reading 0x0)
[    2.010184] pcieport 0000:00:00.0: saving config space at offset 0x34 (reading 0x80)
[    2.017904] pcieport 0000:00:00.0: saving config space at offset 0x38 (reading 0x0)
[    2.025543] pcieport 0000:00:00.0: saving config space at offset 0x3c (reading 0x20180)
[    2.055822] mt7530-mdio mdio-bus:1f: configuring for fixed/2500base-x link mode
[    2.064954] mt7530-mdio mdio-bus:1f: Link is Up - 2.5Gbps/Full - flow control rx/tx
[    2.073642] mt7530-mdio mdio-bus:1f wan (uninitialized): PHY [mt7530-0:00] driver [MediaTek MT7531 PHY] (irq=130)
[    2.093894] mt7530-mdio mdio-bus:1f lan1 (uninitialized): PHY [mt7530-0:01] driver [MediaTek MT7531 PHY] (irq=131)
[    2.113974] mt7530-mdio mdio-bus:1f lan2 (uninitialized): PHY [mt7530-0:02] driver [MediaTek MT7531 PHY] (irq=132)
[    2.134015] mt7530-mdio mdio-bus:1f lan3 (uninitialized): PHY [mt7530-0:03] driver [MediaTek MT7531 PHY] (irq=133)
[    2.154097] mt7530-mdio mdio-bus:1f lan4 (uninitialized): PHY [mt7530-0:04] driver [MediaTek MT7531 PHY] (irq=134)
[    2.165442] device eth0 entered promiscuous mode
[    2.170090] DSA: tree 0 setup
[    2.178418] VFS: Mounted root (squashfs filesystem) readonly on device 259:0.
[    2.185741] Freeing unused kernel memory: 448K
[    2.238570] Run /sbin/init as init process
[    2.242651]   with arguments:
[    2.245602]     /sbin/init
[    2.248293]   with environment:
[    2.251424]     HOME=/
[    2.253769]     TERM=linux
[    2.374997] init: Console is alive
[    2.378556] init: - watchdog -
[    2.706779] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    2.750139] usbcore: registered new interface driver usbfs
[    2.755652] usbcore: registered new interface driver hub
[    2.761021] usbcore: registered new device driver usb
[    2.767038] mt7986a-pinctrl 1001f000.pinctrl: pin GPIO_4 already requested by 11280000.pcie; cannot claim for pinctrl_moore:420
[    2.778518] mt7986a-pinctrl 1001f000.pinctrl: pin-9 (pinctrl_moore:420) status -22
[    2.786068] gpio-keys: probe of gpio-keys failed with error -22
[    2.795010] xhci-mtk 11200000.usb: supply vbus not found, using dummy regulator
[    2.802429] xhci-mtk 11200000.usb: supply vusb33 not found, using dummy regulator
[    2.810644] xhci-mtk 11200000.usb: xHCI Host Controller
[    2.815868] xhci-mtk 11200000.usb: new USB bus registered, assigned bus number 1
[    2.826326] xhci-mtk 11200000.usb: hcc params 0x01403f99 hci version 0x110 quirks 0x0000000000210010
[    2.835475] xhci-mtk 11200000.usb: irq 135, io mem 0x11200000
[    2.841303] xhci-mtk 11200000.usb: xHCI Host Controller
[    2.846513] xhci-mtk 11200000.usb: new USB bus registered, assigned bus number 2
[    2.853895] xhci-mtk 11200000.usb: Host supports USB 3.2 Enhanced SuperSpeed
[    2.861270] hub 1-0:1.0: USB hub found
[    2.865025] hub 1-0:1.0: 2 ports detected
[    2.869301] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    2.877629] hub 2-0:1.0: USB hub found
[    2.881422] hub 2-0:1.0: 1 port detected
[    2.889522] usbcore: registered new interface driver usb-storage
[    2.895727] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    2.911742] init: - preinit -
[    3.115200] mtk_soc_eth 15100000.ethernet eth0: configuring for fixed/2500base-x link mode
[    3.123655] mtk_soc_eth 15100000.ethernet eth0: Link is Up - 2.5Gbps/Full - flow control rx/tx
[    3.132758] mt7530-mdio mdio-bus:1f lan1: configuring for phy/gmii link mode
[    3.318468] usb 1-1: new high-speed USB device number 2 using xhci-mtk
[    3.499232] hub 1-1:1.0: USB hub found
[    3.503101] hub 1-1:1.0: 4 ports detected
[    3.648503] usb 2-1: new SuperSpeed USB device number 2 using xhci-mtk
[    3.679681] usb-storage 2-1:1.0: USB Mass Storage device detected
[    3.686000] scsi host0: usb-storage 2-1:1.0
[    3.918466] usb 1-1.2: new high-speed USB device number 3 using xhci-mtk
[    4.729020] scsi 0:0:0:0: Direct-Access     WD       Elements 2620    1023 PQ: 0 ANSI: 6
[    4.737652] sd 0:0:0:0: [sda] 3906963456 512-byte logical blocks: (2.00 TB/1.82 TiB)
[    4.745670] sd 0:0:0:0: [sda] Write Protect is off
[    4.750452] sd 0:0:0:0: [sda] Mode Sense: 47 00 10 08
[    4.755757] sd 0:0:0:0: [sda] No Caching mode page found
[    4.761056] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    4.962494]  sda: sda1
[    4.965040] sd 0:0:0:0: [sda] Attached SCSI disk
[    5.583297] F2FS-fs (mmcblk0p66): Mounted with checkpoint version = 30a3e8a8
[    5.593655] mount_root: loading kmods from internal overlay
[    5.605281] kmodloader: loading kernel modules from /tmp/overlay/upper/etc/modules-boot.d/*
[    5.614473] kmodloader: done loading kernel modules from /tmp/overlay/upper/etc/modules-boot.d/*
[    7.208503] block: attempting to load /etc/config/fstab
[    7.217320] block: unable to load configuration (fstab: Entry not found)
[    7.224057] block: no usable configuration
[    7.229260] mount_root: switching to f2fs overlay
[    7.238366] overlayfs: null uuid detected in lower fs '/', falling back to xino=off,index=off,nfs_export=off.
[    7.254818] urandom-seed: Seeding with /etc/urandom.seed
[    7.282759] random: procd: uninitialized urandom read (4 bytes read)
[    7.285200] procd: - early -
[    7.292099] procd: - watchdog -
[    7.825097] procd: - watchdog -
[    7.829284] procd: - ubus -
[    9.568467] random: crng init done
[    9.576191] procd: - init -
[    9.853138] kmodloader: loading kernel modules from /etc/modules.d/*
[    9.914125] i2c-gpio i2c-gpio-0: using lines 427 (SDA) and 428 (SCL)
[    9.920857] i2c-gpio i2c-gpio-1: using lines 429 (SDA) and 430 (SCL)
[    9.929809] GACT probability on
[    9.933626] Mirror/redirect action on
[    9.941316] u32 classifier
[    9.944031]     input device check on
[    9.947682]     Actions configured
[    9.955877] crypto-safexcel 10320000.crypto: EIP97:230(0,1,4,4)-HIA:270(0,5,5),PE:150/433(alg:7fcdfc00)/0/0/0
[    9.995309] Loading modules backported from Linux version v6.1.24-0-g0102425ac76b
[    9.998045] urngd: v1.0.2 started.
[   10.002815] Backport generated by backports.git v5.15.92-1-44-gd6ea70fafd36
[   10.019562] sfp sfp-1: Host maximum power 1.0W
[   10.024589] sfp sfp-2: Host maximum power 1.0W
[   10.030793] usbcore: registered new interface driver ums-alauda
[   10.037219] usbcore: registered new interface driver ums-cypress
[   10.043901] usbcore: registered new interface driver ums-datafab
[   10.050543] usbcore: registered new interface driver ums-freecom
[   10.057073] usbcore: registered new interface driver ums-isd200
[   10.063643] usbcore: registered new interface driver ums-jumpshot
[   10.070359] usbcore: registered new interface driver ums-karma
[   10.076818] usbcore: registered new interface driver ums-sddr09
[   10.083318] usbcore: registered new interface driver ums-sddr55
[   10.089894] usbcore: registered new interface driver ums-usbat
[   10.102513] xt_time: kernel timezone is -0000
[   10.358009] sfp sfp-1: module RBS              OP5420D-43       rev      sn JUB22041420845   dc 220425  
[   10.367501] mtk_soc_eth 15100000.ethernet eth1: switched to inband/1000base-x link mode
[   10.407218] hwmon hwmon2: temp1_input not attached to any thermal zone
[   10.562095] mt798x-wmac 18000000.wifi: HW/SW Version: 0x8a108a10, Build Time: 20221012174743a
[   10.562095] 
[   10.686686] mt798x-wmac 18000000.wifi: WM Firmware Version: ____000000, Build Time: 20221012174805
[   10.783862] mt798x-wmac 18000000.wifi: WA Firmware Version: DEV_000000, Build Time: 20221012174937
[   13.553941] PPP generic driver version 2.4.2
[   13.558999] NET: Registered PF_PPPOX protocol family
[   13.566213] kmodloader: done loading kernel modules from /etc/modules.d/*
[   16.770117] EXT4-fs (sda1): recovery complete
[   16.774658] EXT4-fs (sda1): mounted filesystem with ordered data mode. Quota mode: disabled.
[   18.602868] mtk_soc_eth 15100000.ethernet eth0: Link is Down
[   18.614254] mtk_soc_eth 15100000.ethernet eth0: configuring for fixed/2500base-x link mode
[   18.622675] mtk_soc_eth 15100000.ethernet eth0: Link is Up - 2.5Gbps/Full - flow control rx/tx
[   18.623715] mt7530-mdio mdio-bus:1f lan1: configuring for phy/gmii link mode
[   18.641386] br-lan: port 1(lan1) entered blocking state
[   18.646626] br-lan: port 1(lan1) entered disabled state
[   18.655273] device lan1 entered promiscuous mode
[   18.661219] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   18.673026] mt7530-mdio mdio-bus:1f lan2: configuring for phy/gmii link mode
[   18.682925] br-lan: port 2(lan2) entered blocking state
[   18.688162] br-lan: port 2(lan2) entered disabled state
[   18.695094] device lan2 entered promiscuous mode
[   18.703366] mt7530-mdio mdio-bus:1f lan3: configuring for phy/gmii link mode
[   18.713568] br-lan: port 3(lan3) entered blocking state
[   18.715283] mt7530-mdio mdio-bus:1f lan3: Link is Up - 1Gbps/Full - flow control off
[   18.718832] br-lan: port 3(lan3) entered disabled state
[   18.720718] device lan3 entered promiscuous mode
[   18.737467] br-lan: port 3(lan3) entered blocking state
[   18.742694] br-lan: port 3(lan3) entered forwarding state
[   18.751327] mt7530-mdio mdio-bus:1f lan4: configuring for phy/gmii link mode
[   18.758957] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   18.765527] br-lan: port 4(lan4) entered blocking state
[   18.770771] br-lan: port 4(lan4) entered disabled state
[   18.778060] device lan4 entered promiscuous mode
[   18.787118] mt7530-mdio mdio-bus:1f sfp2: configuring for inband/2500base-x link mode
[   18.796877] br-lan: port 5(sfp2) entered blocking state
[   18.802117] br-lan: port 5(sfp2) entered disabled state
[   18.809501] device sfp2 entered promiscuous mode
[   18.817576] mtk_soc_eth 15100000.ethernet eth1: configuring for inband/1000base-x link mode
[   18.827515] br-wan: port 1(eth1) entered blocking state
[   18.832820] br-wan: port 1(eth1) entered disabled

You need to edit /etc/modules.conf to enable WED. Add a line as follow:

options mt7915e wed_enable=Y

Already did. Didn’t help.

cat /sys/module/mt7915e/parameters/wed_enable

Returns Y. I briefly compared the 6.1 config with 5.15, dts, patches… seems to be ok. Have you tried enabling WED on 6.1?

I think it’s because offload_version is missing from the soc_data struct on mtk_eth_soc.c

Yes, I also just found that this slipped through when adding the patches for Linux 6.1. Can you try build from my staging tree?

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

Something is wrong… It doesn’t seem to boot successfully with your repo (kernel 6.1). I’ll attach UART tomorrow. Did you try it on bpi-r3 yourself?

Yes, briefly tried to boot initramfs and seemed all fine.

Ok I used my usual build config which includes several packages, It might be that. Although there’s nothing special there. Let’s wait for the UART log then.

Do you want me to send you the image I built? I’m not sure when I’ll be able to test it again

@dangowrt Is this the commit that brings back support for WED in bpir3? https://git.openwrt.org/?p=openwrt/staging/dangole.git;a=commit;h=f1606a8360a8d707202d9608f4253e4e1f77b235 I don’t see anything specific to WED there, could you tell which part of it is relevant for WED?

@Dale do you have an example of what should we see in the logs if the WED worked? I will try to get it to run on my bpir as well.

It’s here in this commit. The patch is re-added, it has accidentally been dropped when copying patches from 5.15 to 6.1.

Can you test the 6.1 kernel?

can it be 6.4.11 ? (additional characters to satisfy minimum lenght)

What do you mean? You can either build with openwrt with 5.15 or 6.1 (unless you modify everything ofc)

I have totally custom setup with nixos :slight_smile:

is this patch enough or do i need anything else in 6.1? how to check if wed works?