MediaTek 7915e Not Functional on Latest Snapshot

Hi Folks,

I'm running the latest snapshot (r28018-6490c88c75). I'm unable to get my MediaTek 7915e radio to show up on LUCI or generate config via "wifi config" command. I haven't tried this with previous snapshots. The stable build isn't available for the Raspberry Pi 5 hardware.

For hardware, I have a Raspberry Pi 5 with a MiniPCIe HAT. The MiniPCIe card is an AsiaRF AW7915-NPD

Here's what's showing up on the CLI:

dmesg

[    8.278576] mt7915e 0000:01:00.0: enabling device (0000 -> 0002)
[    8.284646] mt7915e 0000:01:00.0: disabling ASPM L0s
[    8.408782] mt7915e: probe of 0000:01:00.0 failed with error -12

Shows up as a PCI device:

root@OpenWrt:~# lspci
0000:00:00.0 PCI bridge: Broadcom Inc. and subsidiaries BCM2712 PCIe Bridge (rev 30)
0000:01:00.0 Unclassified device [0002]: MEDIATEK Corp. MT7915E 802.11ax PCI Express Wireless Network Adapter
0001:00:00.0 PCI bridge: Broadcom Inc. and subsidiaries BCM2712 PCIe Bridge (rev 30)
0001:01:00.0 Ethernet controller: Raspberry Pi Ltd RP1 PCIe 2.0 South Bridge

mt7915e package installed

root@OpenWrt:~# opkg list  | grep mt7915
kmod-mt7915-firmware - 6.6.59.2024.10.11.1~ecca0e77-r1 - MediaTek MT7915 firmware
kmod-mt7915-firmware - 6.6.59.2024.10.11.1~ecca0e77-r1 - MediaTek MT7915 firmware
kmod-mt7915e - 6.6.59.2024.10.11.1~ecca0e77-r1 - MediaTek MT7915e wireless driver
kmod-mt7915e - 6.6.59.2024.10.11.1~ecca0e77-r1 - MediaTek MT7915e wireless driver

/etc/config/wireless only shows the integrated RPI5 radio

config wifi-device 'radio0'
        option type 'mac80211'
        option path 'platform/axi/1001100000.mmc/mmc_host/mmc1/mmc1:0001/mmc1:0001:1'
        option band '5g'
        option channel '36'
        option htmode 'VHT80'
        option disabled '1'

config wifi-iface 'default_radio0'
        option device 'radio0'
        option network 'lan'
        option mode 'ap'
        option ssid 'OpenWrt'
        option encryption 'none'

Any direction would be appreciated. Happy to provide outputs etc. I got the 7915 hoping it would work out of the box. :sweat_smile:

I'm not sure I'd called this progress, but I found another post talking about DMA needs for wireless cards. This led me to adding the following to /boot/config.txt

dtoverlay=pcie-32bit-dma-pi5

After doing so and rebooting, I'm seeing something different in dmesg:

root@OpenWrt:~# dmesg |grep mt7915e
[    8.389716] mt7915e 0000:01:00.0: enabling device (0000 -> 0002)
[    8.395797] mt7915e 0000:01:00.0: disabling ASPM L0s
[    8.532925] mt7915e 0000:01:00.0: Direct firmware load for mediatek/mt7915_rom_patch.bin failed with error -2
[    8.542893] mt7915e 0000:01:00.0: Falling back to sysfs fallback for: mediatek/mt7915_rom_patch.bin
[    8.557275] mt7915e: probe of 0000:01:00.0 failed with error -12

I'm still plugging away, but thought I'd share.

For anyone who runs across this, I had to also install the following package

kmod-mt7915-firmware

After that and adding the following to /boot/config.txt, the card is working. :blush:

dtoverlay=pcie-32bit-dma-pi5
1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.