MediaTek MT7915 Wi-Fi Card not working

Hello,

I have purchased the MT7915e wifi card from asiarf.

I have installed the drivers that I though were the best fit for the module which are kmod-mt7915e

When booting there was no wifi and when checking the long this is what stood out.

Sat Jul 29 06:50:28 2023 daemon.notice netifd: radio0 (32662): Could not find PHY for device 'radio0'
Sat Jul 29 06:50:28 2023 daemon.notice netifd: Wireless device 'radio0' set retry=0
Sat Jul 29 06:50:28 2023 daemon.crit netifd: Wireless device 'radio0' setup failed, retry=0
Sat Jul 29 06:50:28 2023 daemon.notice netifd: radio0 (32722): WARNING: Variable 'data' does not exist or is not an array/object
Sat Jul 29 06:50:28 2023 daemon.notice netifd: radio0 (32722): Bug: PHY is undefined for device 'radio0'
Sat Jul 29 06:50:28 2023 daemon.notice netifd: Wireless device 'radio0' is now down

Could someone help me troubleshoot this issue?

you probably need kmod-mt7915-firmware. For my device, kmod-mt7915e is used in openwrt 22.03, whereas kmod-mt7915-firmware is used in newer snapshots and 23.05. Don't ask me why.

1 Like

Hmm, that did not seem to work. I am on version 22.03.5
I do have all of the MT drivers installed, do you think that they would conflict is a way?
I can see the module when I do lspci, comes up as

0001:01:00.0 Unclassified device [0002]: MEDIATEK Corp. MT7915E 802.11ax PCI Express Wireless Network Adapter

You would need to reboot after installing the firmware. I'm sure you know that, but just figured I'd throw it out there.

You should only install the drivers you need. They /shouldn't/ interfere with each other, but it's a good precaution.

How is the device addressed in /etc/config/wireless? Are you using option phy or option path?

So I have uninstalled all of the drivers that are not needed, I kept the dependencies drivers.

It doesn't seem that I am using either, which do you recommend?

config wifi-device 'radio0'
        option type 'mac80211'
        option country 'US'
        option channel 'auto'


config wifi-iface 'default_radio0'
        option device 'radio0'
        option network 'lan'
        option mode 'ap'
        option ssid 'OpenWrt'
        option encryption 'psk-mixed'
        option key '12345678'

Usually it gets auto-detected when you put the card in. I don't know if the fact you are missing the device address in your /etc/config/wireless is because of an issue loading the driver, or if the error with the driver is because there is no addressing for it in /etc/config/wireless

Try option phy phy0 to start, because that's the easiest. Figuring out the right path for option path for a PCIe device is a bit of an arcane art. If phy doesn't work, though, we'll try that.

So my wireless config file looks as followed:

config wifi-device 'radio0'
        option type 'mac80211'
        option country 'US'
        option channel 'auto'
        option phy 'phy0'


config wifi-iface 'default_radio0'
        option device 'radio0'
        option network 'lan'
        option mode 'ap'
        option ssid 'OpenWrt'
        option encryption 'psk-mixed'
        option key '12345678'

I also did a system reboot, and in my logs I still get the messages as stated in the original post.

Those errors are from netifd, not from the driver. Can you post your full dmesg? I would like to see the driver load messages.

Here are the full kernel logs.

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd082]
[    0.000000] Linux version 5.10.176 (root@1ffe9f7b637e) (aarch64-openwrt-linux-musl-gcc (OpenWrt GCC 11.2.0 r20134-5f15225c1e) 11.2.0, GNU ld (GNU Binutils) 2.37) #0 SMP PREEMPT Thu Apr 27 20:28:15 2023
[    0.000000] Machine model: LS1046A RDB Board
[    0.000000] earlycon: uart8250 at MMIO 0x00000000021c0500 (options '')
[    0.000000] printk: bootconsole [uart8250] enabled
[    0.000000] OF: reserved mem: initialized node bman-fbpr, compatible id fsl,bman-fbpr
[    0.000000] NUMA: No NUMA configuration found
[    0.000000] NUMA: Faking a node at [mem 0x0000000080000000-0x00000008fc7fffff]
[    0.000000] NUMA: NODE_DATA [mem 0x8fc02b100-0x8fc02cfff]
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000080000000-0x00000000ffffffff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   [mem 0x0000000100000000-0x00000008fc7fffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000080000000-0x00000000fbdfffff]
[    0.000000]   node   0: [mem 0x0000000880000000-0x00000008f8ffffff]
[    0.000000]   node   0: [mem 0x00000008fc000000-0x00000008fc7fffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x00000008fc7fffff]
[    0.000000] On node 0 totalpages: 1005056
[    0.000000]   DMA zone: 8192 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 507392 pages, LIFO batch:63
[    0.000000]   Normal zone: 7776 pages used for memmap
[    0.000000]   Normal zone: 497664 pages, LIFO batch:63
[    0.000000] cma: Reserved 16 MiB at 0x00000000fac00000
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv0.2 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: Trusted OS migration not required
[    0.000000] percpu: Embedded 23 pages/cpu s53784 r8192 d32232 u94208
[    0.000000] pcpu-alloc: s53784 r8192 d32232 u94208 alloc=23*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Detected PIPT I-cache on CPU0
[    0.000000] CPU features: detected: Spectre-v2
[    0.000000] CPU features: detected: Spectre-v4
[    0.000000] CPU features: detected: Spectre-BHB
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 989088
[    0.000000] Policy zone: Normal
[    0.000000] Kernel command line: console=ttyS0,115200 earlycon=uart8250,mmio,0x21c0500 root=PARTUUID=f779ba14-03 rw rootwait board_name=ls1046ardb serdes1=1133
[    0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[    0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] software IO TLB: mapped [mem 0x00000000f6c00000-0x00000000fac00000] (64MB)
[    0.000000] Memory: 3841580K/4020224K available (11134K kernel code, 1162K rwdata, 2896K rodata, 576K init, 360K bss, 162260K reserved, 16384K cma-reserved)
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu: 	RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=4.
[    0.000000] 	Trampoline variant of Tasks RCU enabled.
[    0.000000] 	Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GIC: Adjusting CPU interface base to 0x000000000142f000
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] arch_timer: cp15 timer(s) running at 25.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x5c40939b5, max_idle_ns: 440795202646 ns
[    0.000002] sched_clock: 56 bits at 25MHz, resolution 40ns, wraps every 4398046511100ns
[    0.008277] Console: colour dummy device 80x25
[    0.012777] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.023187] pid_max: default: 32768 minimum: 301
[    0.027929] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.035386] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.043978] rcu: Hierarchical SRCU implementation.
[    0.048874] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[    0.056765] smp: Bringing up secondary CPUs ...
[    0.062569] Detected PIPT I-cache on CPU1
[    0.062590] CPU1: Booted secondary processor 0x0000000001 [0x410fd082]
[    0.063665] Detected PIPT I-cache on CPU2
[    0.063680] CPU2: Booted secondary processor 0x0000000002 [0x410fd082]
[    0.064750] Detected PIPT I-cache on CPU3
[    0.064765] CPU3: Booted secondary processor 0x0000000003 [0x410fd082]
[    0.064797] smp: Brought up 1 node, 4 CPUs
[    0.100659] SMP: Total of 4 processors activated.
[    0.105383] CPU features: detected: 32-bit EL0 Support
[    0.110546] CPU features: detected: CRC32 instructions
[    0.115735] CPU features: emulated: Privileged Access Never (PAN) using TTBR0_EL1 switching
[    0.125290] CPU: All CPU(s) started at EL2
[    0.129409] alternatives: patching kernel code
[    0.136385] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.146276] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.153769] NET: Registered protocol family 16
[    0.158773] DMA: preallocated 512 KiB GFP_KERNEL pool for atomic allocations
[    0.165923] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.173824] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.182126] thermal_sys: Registered thermal governor 'step_wise'
[    0.182483] cpuidle: using governor menu
[    0.192522] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.199383] ASID allocator initialised with 65536 entries
[    0.204901] Serial: AMBA PL011 UART driver
[    0.219561] Machine: LS1046A RDB Board
[    0.223330] SoC family: QorIQ LS1046A
[    0.227004] SoC ID: svr:0x87070010, Revision: 1.0
[    0.238017] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[    0.244768] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
[    0.251502] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.258245] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
[    0.265857] cryptd: max_cpu_qlen set to 1000
[    0.271049] raid6: skip pq benchmark and using algorithm neonx8
[    0.277005] raid6: using neon recovery algorithm
[    0.282747] iommu: Default domain type: Passthrough 
[    0.287799] vgaarb: loaded
[    0.290644] SCSI subsystem initialized
[    0.294476] libata version 3.00 loaded.
[    0.294927] imx-i2c 2180000.i2c: can't get pinctrl, bus recovery not supported
[    0.302329] i2c i2c-0: IMX I2C adapter registered
[    0.307076] i2c i2c-0: using dma0chan16 (tx) and dma0chan17 (rx) for DMA transfers
[    0.315105] imx-i2c 2190000.i2c: can't get pinctrl, bus recovery not supported
[    0.322399] i2c i2c-1: IMX I2C adapter registered
[    0.327216] imx-i2c 21a0000.i2c: can't get pinctrl, bus recovery not supported
[    0.334588] i2c i2c-2: IMX I2C adapter registered
[    0.339375] imx-i2c 21b0000.i2c: can't get pinctrl, bus recovery not supported
[    0.346666] i2c i2c-3: IMX I2C adapter registered
[    0.351599] pps_core: LinuxPPS API ver. 1 registered
[    0.356585] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.365794] PTP clock support registered
[    0.370283] clocksource: Switched to clocksource arch_sys_counter
[    0.376506] VFS: Disk quotas dquot_6.6.0
[    0.380473] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.389392] NET: Registered protocol family 2
[    0.394015] IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.402458] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear)
[    0.411064] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.419136] TCP bind hash table entries: 32768 (order: 7, 524288 bytes, linear)
[    0.426737] TCP: Hash tables configured (established 32768 bind 32768)
[    0.433349] UDP hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    0.440126] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    0.447406] NET: Registered protocol family 1
[    0.451795] PCI: CLS 0 bytes, default 64
[    0.456062] hw perfevents: enabled with armv8_cortex_a72 PMU driver, 7 counters available
[    0.466183] workingset: timestamp_bits=44 max_order=20 bucket_order=0
[    0.472887] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.478755] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.488671] fuse: init (API version 7.32)
[    0.492740] SGI XFS with security attributes, realtime, no debug enabled
[    0.499795] xor: measuring software checksum speed
[    0.505962]    8regs           :  7321 MB/sec
[    0.511471]    32regs          :  8700 MB/sec
[    0.517120]    arm64_neon      :  7710 MB/sec
[    0.521497] xor: using function: 32regs (8700 MB/sec)
[    0.526587] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.535091] layerscape-pcie 3400000.pcie: host bridge /soc/pcie@3400000 ranges:
[    0.542458] layerscape-pcie 3400000.pcie:       IO 0x4000010000..0x400001ffff -> 0x0000000000
[    0.551037] layerscape-pcie 3400000.pcie:      MEM 0x4040000000..0x407fffffff -> 0x0040000000
[    0.559677] layerscape-pcie 3400000.pcie: PCI host bridge to bus 0000:00
[    0.566417] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.571931] pci_bus 0000:00: root bus resource [io  0x0000-0xffff]
[    0.578141] pci_bus 0000:00: root bus resource [mem 0x4040000000-0x407fffffff] (bus address [0x40000000-0x7fffffff])
[    0.588738] pci 0000:00:00.0: [1957:81c0] type 01 class 0x060400
[    0.594785] pci 0000:00:00.0: reg 0x38: [mem 0x4040000000-0x40400007ff pref]
[    0.601897] pci 0000:00:00.0: supports D1 D2
[    0.606183] pci 0000:00:00.0: PME# supported from D0 D1 D2 D3hot
[    0.613638] pci 0000:00:00.0: BAR 6: assigned [mem 0x4040000000-0x40400007ff pref]
[    0.621255] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[    0.626593] pcieport 0000:00:00.0: PME: Signaling with IRQ 79
[    0.632471] pcieport 0000:00:00.0: AER: enabled with IRQ 79
[    0.638195] layerscape-pcie 3600000.pcie: host bridge /soc/pcie@3600000 ranges:
[    0.645593] layerscape-pcie 3600000.pcie:       IO 0x5000010000..0x500001ffff -> 0x0000000000
[    0.654172] layerscape-pcie 3600000.pcie:      MEM 0x5040000000..0x507fffffff -> 0x0040000000
[    0.662805] layerscape-pcie 3600000.pcie: PCI host bridge to bus 0001:00
[    0.669540] pci_bus 0001:00: root bus resource [bus 00-ff]
[    0.675056] pci_bus 0001:00: root bus resource [io  0x10000-0x1ffff] (bus address [0x0000-0xffff])
[    0.684067] pci_bus 0001:00: root bus resource [mem 0x5040000000-0x507fffffff] (bus address [0x40000000-0x7fffffff])
[    0.694660] pci 0001:00:00.0: [1957:81c0] type 01 class 0x060400
[    0.700706] pci 0001:00:00.0: reg 0x38: [mem 0x5040000000-0x50400007ff pref]
[    0.707810] pci 0001:00:00.0: supports D1 D2
[    0.712099] pci 0001:00:00.0: PME# supported from D0 D1 D2 D3hot
[    0.718968] pci 0001:01:00.0: [14c3:7915] type 00 class 0x000280
[    0.725080] pci 0001:01:00.0: reg 0x10: [mem 0x5040100000-0x50401fffff 64bit pref]
[    0.732738] pci 0001:01:00.0: reg 0x18: [mem 0x5040200000-0x5040203fff 64bit pref]
[    0.740400] pci 0001:01:00.0: reg 0x20: [mem 0x5040204000-0x5040204fff 64bit pref]
[    0.748275] pci 0001:01:00.0: supports D1 D2
[    0.752568] pci 0001:01:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[    0.780967] pci 0001:00:00.0: BAR 15: assigned [mem 0x5040000000-0x50401fffff 64bit pref]
[    0.789188] pci 0001:00:00.0: BAR 6: assigned [mem 0x5040200000-0x50402007ff pref]
[    0.796806] pci 0001:01:00.0: BAR 0: assigned [mem 0x5040000000-0x50400fffff 64bit pref]
[    0.804973] pci 0001:01:00.0: BAR 2: assigned [mem 0x5040100000-0x5040103fff 64bit pref]
[    0.813139] pci 0001:01:00.0: BAR 4: assigned [mem 0x5040104000-0x5040104fff 64bit pref]
[    0.821304] pci 0001:00:00.0: PCI bridge to [bus 01-ff]
[    0.826554] pci 0001:00:00.0:   bridge window [mem 0x5040000000-0x50401fffff 64bit pref]
[    0.834767] pcieport 0001:00:00.0: PME: Signaling with IRQ 80
[    0.840631] pcieport 0001:00:00.0: AER: enabled with IRQ 80
[    0.853107] bman_portal 508000000.bman-portal: Portal initialised, cpu 0
[    0.859892] bman_portal 508010000.bman-portal: Portal initialised, cpu 1
[    0.866681] bman_portal 508020000.bman-portal: Portal initialised, cpu 2
[    0.873466] bman_portal 508030000.bman-portal: Portal initialised, cpu 3
[    0.880530] qman_portal 500000000.qman-portal: Portal initialised, cpu 0
[    0.887308] qman_portal 500010000.qman-portal: Portal initialised, cpu 1
[    0.894093] qman_portal 500020000.qman-portal: Portal initialised, cpu 2
[    0.901222] qman_portal 500030000.qman-portal: Portal initialised, cpu 3
[    0.908533] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.915482] printk: console [ttyS0] disabled
[    0.919798] 21c0500.serial: ttyS0 at MMIO 0x21c0500 (irq = 48, base_baud = 21875000) is a 16550A
[    0.928651] printk: console [ttyS0] enabled
[    0.937025] printk: bootconsole [uart8250] disabled
[    0.946958] 21c0600.serial: ttyS1 at MMIO 0x21c0600 (irq = 48, base_baud = 21875000) is a 16550A
[    0.955901] 21d0500.serial: ttyS2 at MMIO 0x21d0500 (irq = 49, base_baud = 21875000) is a 16550A
[    0.964842] 21d0600.serial: ttyS3 at MMIO 0x21d0600 (irq = 49, base_baud = 21875000) is a 16550A
[    0.976977] brd: module loaded
[    0.981494] loop: module loaded
[    1.044240] spi-nor spi0.0: found w25q128, expected m25p80
[    1.049726] spi-nor spi0.0: w25q128 (16384 Kbytes)
[    1.070568] fsl_dpaa_mac 1ae2000.ethernet: FMan MEMAC
[    1.075618] fsl_dpaa_mac 1ae2000.ethernet: FMan MAC address: f6:62:a1:a0:42:87
[    1.082995] fsl_dpaa_mac 1ae4000.ethernet: FMan MEMAC
[    1.088040] fsl_dpaa_mac 1ae4000.ethernet: FMan MAC address: 02:ca:51:90:aa:2c
[    1.095393] fsl_dpaa_mac 1ae6000.ethernet: FMan MEMAC
[    1.100442] fsl_dpaa_mac 1ae6000.ethernet: FMan MAC address: 9a:d9:7c:6a:d7:6f
[    1.107828] fsl_dpaa_mac 1ae8000.ethernet: FMan MEMAC
[    1.112876] fsl_dpaa_mac 1ae8000.ethernet: FMan MAC address: b2:88:dd:4a:b0:32
[    1.120261] fsl_dpaa_mac 1aea000.ethernet: FMan MEMAC
[    1.125308] fsl_dpaa_mac 1aea000.ethernet: FMan MAC address: 7e:46:40:d9:b8:52
[    1.132804] fsl_dpaa_mac 1af0000.ethernet: FMan MEMAC
[    1.137849] fsl_dpaa_mac 1af0000.ethernet: FMan MAC address: b2:56:ac:8f:4f:35
[    1.145519] fsl_dpaa_mac 1af2000.ethernet: FMan MEMAC
[    1.150569] fsl_dpaa_mac 1af2000.ethernet: FMan MAC address: 22:41:78:ff:19:54
[    1.167016] fsl_dpaa_mac 1ae2000.ethernet eth0: Probed interface eth0
[    1.181387] fsl_dpaa_mac 1ae4000.ethernet eth1: Probed interface eth1
[    1.194863] fsl_dpaa_mac 1ae6000.ethernet eth2: Probed interface eth2
[    1.208350] fsl_dpaa_mac 1ae8000.ethernet eth3: Probed interface eth3
[    1.221929] fsl_dpaa_mac 1aea000.ethernet eth4: Probed interface eth4
[    1.235533] fsl_dpaa_mac 1af0000.ethernet eth5: Probed interface eth5
[    1.249030] fsl_dpaa_mac 1af2000.ethernet eth6: Probed interface eth6
[    1.256548] VFIO - User Level meta-driver version: 0.3
[    1.261840] mousedev: PS/2 mouse device common for all mice
[    1.267780] i2c /dev entries driver
[    1.271837] ptp_qoriq 1afe000.ptp-timer: IRQ index 0 not found
[    1.277665] ptp_qoriq: irq not in device tree
[    1.293305] thermal thermal_zone0: failed to read out thermal zone (-61)
[    1.300986] qoriq-cpufreq qoriq-cpufreq: Freescale QorIQ CPU frequency scaling driver
[    1.309243] sdhci: Secure Digital Host Controller Interface driver
[    1.315427] sdhci: Copyright(c) Pierre Ossman
[    1.319775] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.325932] caam 1700000.crypto: Linux CAAM Queue I/F driver initialised
[    1.332638] caam 1700000.crypto: RNG4 SH0 was previously instantiated without prediction resistance. Tearing it down
[    1.343160] caam 1700000.crypto: Deinstantiated RNG4 SH0
[    1.348468] caam 1700000.crypto: Instantiated RNG4 SH0
[    1.350295] mmc0: SDHCI controller on 1560000.esdhc [1560000.esdhc] using ADMA 64-bit
[    1.353600] caam 1700000.crypto: RNG4 SH1 was previously instantiated without prediction resistance. Tearing it down
[    1.371939] caam 1700000.crypto: Deinstantiated RNG4 SH1
[    1.377246] caam 1700000.crypto: Instantiated RNG4 SH1
[    1.382380] caam 1700000.crypto: device ID = 0x0a11030100000000 (Era 8)
[    1.388987] caam 1700000.crypto: job rings = 3, qi = 1
[    1.397685] caam algorithms registered in /proc/crypto
[    1.403510] caam 1700000.crypto: caam pkc algorithms registered in /proc/crypto
[    1.410819] caam 1700000.crypto: registering rng-caam
[    1.417988] caam 1700000.crypto: algorithms registered in /proc/crypto
[    1.425742] NET: Registered protocol family 10
[    1.430839] Segment Routing with IPv6
[    1.434517] NET: Registered protocol family 17
[    1.438966] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    1.451964] 8021q: 802.1Q VLAN Support v1.8
[    1.457170] Btrfs loaded, crc32c=crc32c-generic
[    1.463590] Waiting for root device PARTUUID=f779ba14-03...
[    1.474428] mmc0: new HS200 MMC card at address 0001
[    1.479663] mmcblk0: mmc0:0001 88A398 7.28 GiB 
[    1.484357] mmcblk0boot0: mmc0:0001 88A398 partition 1 4.00 MiB
[    1.490301] random: crng init done
[    1.490446] mmcblk0boot1: mmc0:0001 88A398 partition 2 4.00 MiB
[    1.499642] mmcblk0rpmb: mmc0:0001 88A398 partition 3 4.00 MiB, chardev (244:0)
[    1.507428]  mmcblk0: p1 p2 p3
[    1.557577] EXT4-fs (mmcblk0p3): recovery complete
[    1.562497] EXT4-fs (mmcblk0p3): mounted filesystem with ordered data mode. Opts: (null)
[    1.570638] VFS: Mounted root (ext4 filesystem) on device 179:3.
[    1.576795] Freeing unused kernel memory: 576K
[    1.620364] Run /sbin/init as init process
[    1.624452]   with arguments:
[    1.624455]     /sbin/init
[    1.624457]   with environment:
[    1.624459]     HOME=/
[    1.624460]     TERM=linux
[    1.624462]     board_name=ls1046ardb
[    1.624464]     serdes1=1133
[    1.652936] init: Console is alive
[    1.656439] init: - watchdog -
[    1.833504] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    1.873827] Key type encrypted registered
[    1.885554] usbcore: registered new interface driver usbfs
[    1.891157] usbcore: registered new interface driver hub
[    1.896505] usbcore: registered new device driver usb
[    1.905586] device-mapper: ioctl: 4.43.0-ioctl (2020-10-01) initialised: dm-devel@redhat.com
[    1.917692] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.926316] ahci-qoriq 3200000.sata: AHCI 0001.0301 32 slots 1 ports 6 Gbps 0x1 impl platform mode
[    1.935301] ahci-qoriq 3200000.sata: flags: 64bit ncq sntf pm clo only pmp fbs pio slum part ccc sds apst 
[    1.945342] scsi host0: ahci-qoriq
[    1.948842] ata1: SATA max UDMA/133 mmio [mem 0x03200000-0x0320ffff] port 0x100 irq 59
[    2.281756] ata1: SATA link down (SStatus 0 SControl 300)
[    2.290423] fsl-ehci: Freescale EHCI Host controller driver
[    2.296506] ehci-platform: EHCI generic platform driver
[    2.303186] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    2.309730] ohci-platform: OHCI generic platform driver
[    2.315953] uhci_hcd: USB Universal Host Controller Interface driver
[    2.328795] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[    2.334313] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
[    2.342089] xhci-hcd xhci-hcd.0.auto: hcc params 0x0220f66d hci version 0x100 quirks 0x0000000002010810
[    2.351513] xhci-hcd xhci-hcd.0.auto: irq 56, io mem 0x02f00000
[    2.357494] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[    2.362979] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
[    2.370635] xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0 SuperSpeed
[    2.377369] hub 1-0:1.0: USB hub found
[    2.381129] hub 1-0:1.0: 1 port detected
[    2.385378] hub 2-0:1.0: USB hub found
[    2.389132] hub 2-0:1.0: 1 port detected
[    2.393235] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[    2.398717] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 3
[    2.406439] xhci-hcd xhci-hcd.1.auto: hcc params 0x0220f66d hci version 0x100 quirks 0x0000000002010810
[    2.415872] xhci-hcd xhci-hcd.1.auto: irq 57, io mem 0x03000000
[    2.421855] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[    2.427335] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 4
[    2.434992] xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0 SuperSpeed
[    2.441704] hub 3-0:1.0: USB hub found
[    2.445454] hub 3-0:1.0: 1 port detected
[    2.449664] hub 4-0:1.0: USB hub found
[    2.453420] hub 4-0:1.0: 1 port detected
[    2.457516] xhci-hcd xhci-hcd.2.auto: xHCI Host Controller
[    2.463003] xhci-hcd xhci-hcd.2.auto: new USB bus registered, assigned bus number 5
[    2.470764] xhci-hcd xhci-hcd.2.auto: hcc params 0x0220f66d hci version 0x100 quirks 0x0000000002010810
[    2.480165] xhci-hcd xhci-hcd.2.auto: irq 58, io mem 0x03100000
[    2.486145] xhci-hcd xhci-hcd.2.auto: xHCI Host Controller
[    2.491629] xhci-hcd xhci-hcd.2.auto: new USB bus registered, assigned bus number 6
[    2.499279] xhci-hcd xhci-hcd.2.auto: Host supports USB 3.0 SuperSpeed
[    2.506009] hub 5-0:1.0: USB hub found
[    2.509759] hub 5-0:1.0: 1 port detected
[    2.513983] hub 6-0:1.0: USB hub found
[    2.517733] hub 6-0:1.0: 1 port detected
[    2.525237] usbcore: registered new interface driver usb-storage
[    2.531399] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    2.545899] init: - preinit -
[    2.730350] usb 3-1: new full-speed USB device number 2 using xhci-hcd
[    6.691583] mount_root: mounting /dev/root
[    6.696221] EXT4-fs (mmcblk0p3): re-mounted. Opts: (null)
[    6.704186] urandom-seed: Seeding with /etc/urandom.seed
[    7.283209] procd: - early -
[    7.286153] procd: - watchdog -
[    7.816357] procd: - watchdog -
[    7.821209] procd: - ubus -
[    7.874404] procd: - init -
[    7.965011] urngd: v1.0.2 started.
[    8.180815] kmodloader: loading kernel modules from /etc/modules.d/*
[    8.219072] NET: Registered protocol family 15
[    8.224483] Initializing XFRM netlink socket
[    8.229911] tun: Universal TUN/TAP device driver, 1.6
[    8.258288] GACT probability on
[    8.261876] Mirror/redirect action on
[    8.267454] u32 classifier
[    8.270155]     input device check on
[    8.273815]     Actions configured
[    8.288386] Bridge firewalling registered
[    8.293161] usbcore: registered new interface driver cdc_wdm
[    8.299234] Loading modules backported from Linux version v5.15.92-0-ge515b9902f5f
[    8.306865] Backport generated by backports.git v5.15.92-1-0-gdfe0f60c
[    8.345325] usbcore: registered new interface driver usbserial_generic
[    8.352232] usbserial: USB Serial support registered for generic
[    8.359230] usbcore: registered new interface driver cdc_xr_usb_serial
[    8.365763] xr_usb_serial_common: Exar USB UART (serial port) driver
[    8.381431] xt_time: kernel timezone is -0000
[    8.386576] usbcore: registered new interface driver cdc_ether
[    8.393541] usbcore: registered new interface driver cdc_ncm
[    8.399702] usbcore: registered new interface driver cdc_subset
[    8.418652] Intel(R) Wireless WiFi driver for Linux
[    8.440764] PPP generic driver version 2.4.2
[    8.445662] NET: Registered protocol family 24
[    8.451065] usbcore: registered new interface driver qmi_wwan
[    8.467456] usbcore: registered new interface driver cdc_mbim
[    8.480091] usbcore: registered new interface driver option
[    8.485708] usbserial: USB Serial support registered for GSM modem (1-port)
[    8.493848] kmodloader: done loading kernel modules from /etc/modules.d/*
[   10.101632] br-lan: port 1(eth0) entered blocking state
[   10.106866] br-lan: port 1(eth0) entered disabled state
[   10.112501] device eth0 entered promiscuous mode
[   10.126581] br-lan: port 2(eth2) entered blocking state
[   10.132052] br-lan: port 2(eth2) entered disabled state
[   10.137510] device eth2 entered promiscuous mode
[   10.149762] br-lan: port 3(eth3) entered blocking state
[   10.155035] br-lan: port 3(eth3) entered disabled state
[   10.160388] device eth3 entered promiscuous mode
[   10.171618] br-lan: port 4(eth4) entered blocking state
[   10.176850] br-lan: port 4(eth4) entered disabled state
[   10.182250] device eth4 entered promiscuous mode
[   10.192893] br-lan: port 5(eth5) entered blocking state
[   10.198125] br-lan: port 5(eth5) entered disabled state
[   10.203506] device eth5 entered promiscuous mode
[   10.214188] br-lan: port 6(eth6) entered blocking state
[   10.219419] br-lan: port 6(eth6) entered disabled state
[   10.224853] device eth6 entered promiscuous mode
[   11.160794] br-lan: port 5(eth5) entered blocking state
[   11.166021] br-lan: port 5(eth5) entered forwarding state
[   11.171670] br-lan: port 6(eth6) entered blocking state
[   11.176893] br-lan: port 6(eth6) entered forwarding state
[   11.183332] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   11.930443] usb 2-1: new SuperSpeed Gen 1 USB device number 2 using xhci-hcd
[   12.137342] usb 2-1: Enable of device-initiated U1 failed.
[   12.201336] usb 2-1: Enable of device-initiated U2 failed.
[   12.233370] option 2-1:1.0: GSM modem (1-port) converter detected
[   12.239639] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB0
[   12.246934] option 2-1:1.1: GSM modem (1-port) converter detected
[   12.253465] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB1
[   12.260730] option 2-1:1.2: GSM modem (1-port) converter detected
[   12.267243] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB2
[   12.274886] option 2-1:1.3: GSM modem (1-port) converter detected
[   12.281317] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB3
[   12.297535] qmi_wwan 2-1:1.4: cdc-wdm0: USB WDM device
[   12.303312] qmi_wwan 2-1:1.4 wwan0: register 'qmi_wwan' at usb-xhci-hcd.0.auto-1, WWAN/QMI device, 0a:4b:d7:0c:da:6c
[   12.329319] usb 2-1: Enable of device-initiated U1 failed.
[   12.393304] usb 2-1: Enable of device-initiated U2 failed.
[   13.320889] br-lan: port 4(eth4) entered blocking state
[   13.326120] br-lan: port 4(eth4) entered forwarding state
[   14.281088] br-lan: port 3(eth3) entered blocking state
[   14.286314] br-lan: port 3(eth3) entered forwarding state
[   14.360755] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[ 3807.291052] br-lan: port 4(eth4) entered disabled state
[ 3809.369367] br-lan: port 4(eth4) entered blocking state
[ 3809.374599] br-lan: port 4(eth4) entered forwarding state
[ 3822.891449] br-lan: port 4(eth4) entered disabled state
[ 3824.969635] br-lan: port 4(eth4) entered blocking state
[ 3824.974865] br-lan: port 4(eth4) entered forwarding state
[ 3839.531883] br-lan: port 4(eth4) entered disabled state
[ 3841.609906] br-lan: port 4(eth4) entered blocking state
[ 3841.615142] br-lan: port 4(eth4) entered forwarding state
[ 3856.173536] br-lan: port 4(eth4) entered disabled state
[ 3858.260175] br-lan: port 4(eth4) entered blocking state
[ 3858.265410] br-lan: port 4(eth4) entered forwarding state

Hmm I'm not sure but I do see this here:

Either I would assume this could indicate two things.

  1. intel driver forms as a place holder when the driver is unknown as fallback for generic intel drivers.

  2. or you got a concurent driver which OpenWrt seems to see as default.

When I look more up in the logs I do see some pci-e allocations and no errors, so I guess that loaded fine.

What does the normal log say after a fresh restart at the beginning?, Or if it was normal log what does kernel log say?

Normally the normal log sometimes also show interesting things like how the mt7915e firmware mounts or when it needs it, on 22.05.0-RC1 I had to install it which on prior versions I had not to.

Neither, it just means that the iwlwifi kmod package is installed (the package hooks into /etc/modules.d/ and will load the module unconditionally), not that the hardware is present (there would be much more log noise if it were). The module gets loaded, wastes a little RAM, but otherwise doesn't do anything, as it can't find supported hardware.

1 Like

The good news is that the card is getting recognized on the PCI bus (0.718968 in the log)
The bad news is I'm not seeing any messages from the 7915 driver. I would expect to see:

[    7.907626] mt7915e 0000:01:00.0: assign IRQ: got 148
[    7.912755] mt7915e 0000:01:00.0: enabling device (0000 -> 0002)
[    7.918961] mt7915e 0000:01:00.0: enabling bus mastering
[    7.932230] mt7622-wmac 18000000.wmac: HW/SW Version: 0x8a108a10, Build Time: 20190801210006a

[    7.970596] mt7622-wmac 18000000.wmac: N9 Firmware Version: _reserved_, Build Time: 20220630094834
[    8.037238] mt7915e 0000:01:00.0: attaching wed device 0 version 1
[    8.044803] mtk_soc_eth 1b100000.ethernet eth0: Link is Down
[    8.055754] mtk_soc_eth 1b100000.ethernet eth0: configuring for fixed/2500base-x link mode
[    8.064239] mtk_soc_eth 1b100000.ethernet eth0: Link is Up - 2.5Gbps/Full - flow control rx/tx
[    8.069592] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    8.107494] mt7915e 0000:01:00.0: HW/SW Version: 0x8a108a10, Build Time: 20220929104113a

[    8.191153] mt7915e 0000:01:00.0: WM Firmware Version: ____000000, Build Time: 20220929104145
[    8.226686] mt7915e 0000:01:00.0: WA Firmware Version: DEV_000000, Build Time: 20220929104205

Try:

  • lspci -v to see what the pci subsystem says about the device. The last line of output for the card should say "Kernel driver in use: mt7915e"
  • lsmod to check what kernel modules are loaded. You should have mac80211, mt76, mtk76_connac_lib, mt7915e
  • If the modules aren't being loaded, check /etc/modules.d and see if mt7915e is listed there.

0001:01:00.0 Unclassified device [0002]: MEDIATEK Corp. MT7915E 802.11ax PCI Express Wireless Network Adapter (prog-if 80)
        Subsystem: MEDIATEK Corp. MT7915E 802.11ax PCI Express Wireless Network Adapter
        Flags: bus master, fast devsel, latency 0
        Memory at 5040000000 (64-bit, prefetchable) [size=1M]
        Memory at 5040100000 (64-bit, prefetchable) [size=16K]
        Memory at 5040104000 (64-bit, prefetchable) [size=4K]
        Capabilities: [80] Express Endpoint, MSI 00
        Capabilities: [e0] MSI: Enable- Count=1/32 Maskable+ 64bit+
        Capabilities: [f8] Power Management version 3
        Capabilities: [100] Vendor Specific Information: ID=1556 Rev=1 Len=008 <?>
        Capabilities: [108] Latency Tolerance Reporting
        Capabilities: [110] L1 PM Substates
        Capabilities: [200] Advanced Error Reporting

So the modules (mt76, mtk76_connac_lib, mt7915e) are not listed in lsmod and they aren't listed /etc/modules.d. I built this image with them pre-installed and they are coming up as installed in my software tab.

Do you mean the system logs?

For some reason in the boot image the driver wasn't set to auto-load in /etc/modules.d. You can try to fix that with...
echo mt7915e > /etc/module.d/mt7915e
...and reboot

Or you can try to reinstall the driver:
opkg --force-reinstall install kmod-mt7915e

I'd try that in order. Should get you up and running.

This command returned:

/bin/ash: can't create /etc/module.d/mt7915e: nonexistent directory

UPDATE: But after I ran:

echo mt7915e > /etc/modules.d/mt7915e

And this command took, but the results during boot are the same as below.

And running force install returned:

Removing package kmod-mt7915e from root...
Installing kmod-mt7915e (5.10.176+2022-09-06-d7054646-5) to root...
Downloading https://downloads.openwrt.org/releases/22.03.5/targets/layerscape/armv8_64b/packages/kmod-mt7915e_5.10.176%2b2022-09-06-d7054646-5_aarch64_generic.ipk
Configuring kmod-mt7915e.
[  286.552479] kmodloader: loading kernel modules from /etc/modules.d/*
[  286.562268] mt7915e: disagrees about version of symbol module_layout
[  286.568705] kmodloader: 1 module could not be probed
[  286.573710] kmodloader: - mt7915e - 0

Whoops, sorry. Typo when I replied.

Ok, so your installation is set to download packages, but the build you made has an incompatible kernel. The build you made should have placed all the kernel modules it compiled into the openwrt/bin/targets/[platform]/[target]/packages folder. Do you still have that build?

EDIT:

Oh, I missed that my first read. Ummmmm.... ok, there is something hinky with your build. Did you make some changes to the kernel config? You may need to make a new build.

I did not make any changes, I have no problem making a new build. Is there anything I should look for after running make kernel_menuconfig?

Running kernel_menuconfig at all is often not compatible with using out-of-tree kernel modules, which is what almost all OpenWrt's kernel modules are. It's especially bad for using kernel modules from the repository. What changes are you making in the kernel config?

I really wasn't changing anything. I am just wondering if there is something in there that may be causing an incompatibility with this module.