cancel
Showing results for 
Search instead for 
Did you mean: 

Problems using mini PCIe MT7921 wireless network card with SMT32MP257F-EV1

zhangtinglu
Associate III

HI: 

I install the mini PCIe MT7921 wireless network card on stm32mp257f-ev1 board.

zhangtinglu_1-1730442533745.png

 

root@stm32mp2:/# lspci
00:00.0 PCI bridge: Synopsys, Inc. Device 0550 (rev 01)
01:00.0 Network controller: MEDIATEK Corp. MT7921 802.11ax PCI Express Wireless Network Adapter

The device is normal.configure the kernel and use MT2791(pcie) ,after compilation, update the kernel and modules using the scp command.

zhangtinglu_2-1730442906073.png

root@stm32mp2:/lib/modules/6.1.82/kernel/drivers/net/wireless/mediatek/mt76/mt7921# modinfo mt7921e.ko
filename: /lib/modules/6.1.82/kernel/drivers/net/wireless/mediatek/mt76/mt7921/mt7921e.ko
license: Dual BSD/GPL
author: Lorenzo Bianconi <lorenzo@kernel.org>
author: Sean Wang <sean.wang@mediatek.com>
firmware: mediatek/WIFI_MT7922_patch_mcu_1_1_hdr.bin
firmware: mediatek/WIFI_RAM_CODE_MT7922_1.bin
firmware: mediatek/WIFI_MT7961_patch_mcu_1_2_hdr.bin
firmware: mediatek/WIFI_RAM_CODE_MT7961_1.bin
alias: pci:v000014C3d00000616sv*sd*bc*sc*i*
alias: pci:v000014C3d00000608sv*sd*bc*sc*i*
alias: pci:v000014C3d00007922sv*sd*bc*sc*i*
alias: pci:v000014C3d00007961sv*sd*bc*sc*i*
depends: mt76-connac-lib,mt76,mt7921-common
intree: Y
name: mt7921e
vermagic: 6.1.82 SMP preempt mod_unload modversions aarch64
parm: disable_aspm:disable PCI ASPM support (bool)

Get MT7921 firmware form :

https://github.com/coolpi-george/linuxfirmware/tree/002583713fbcfb167a411c522e9ada1581b85d4c

put into the path /lib/fireware/mediatek. load the corresponding module.

insmod mac80211.ko.

insmod mt76.ko

insmod mt76-connac-lib.ko

insmod mt7921-common.ko

insmod mt7921e.ko

Output the following logs:

[ 1249.751742] mt7921e 0000:01:00.0: enabling device (0000 -> 0002)
[ 1249.772624] mt7921e 0000:01:00.0: ASIC revision: 79610010
root@stm32mp2:/lib/modules/6.1.82/kernel/drivers/net/wireless/mediatek/mt76/mt7921# [ 1249.860336] mt7921e 0000:01:00.0: HW/SW Version: 0x3e0a3c68, Build Time:
[ 1249.860336]
[ 1249.860336]
[ 1249.860336]
[ 1249.860336]
[ 1249.860336]
[ 1249.860336] <!DOCTYPE
[ 1249.971327] mt7921e 0000:01:00.0: HW/SW Version: 0x3e0a3c68, Build Time:
[ 1249.971327]
[ 1249.971327]
[ 1249.971327]
[ 1249.971327]
[ 1249.971327]
[ 1249.971327] <!DOCTYPE
[ 1250.079225] mt7921e 0000:01:00.0: HW/SW Version: 0x3e0a3c68, Build Time:
[ 1250.079225]
[ 1250.079225]
[ 1250.079225]
[ 1250.079225]
[ 1250.079225]
[ 1250.079225] <!DOCTYPE
[ 1250.187206] mt7921e 0000:01:00.0: HW/SW Version: 0x3e0a3c68, Build Time:
[ 1250.187206]
[ 1250.187206]
[ 1250.187206]
[ 1250.187206]
[ 1250.187206]
[ 1250.187206] <!DOCTYPE
[ 1250.295201] mt7921e 0000:01:00.0: HW/SW Version: 0x3e0a3c68, Build Time:
[ 1250.295201]
[ 1250.295201]
[ 1250.295201]
[ 1250.295201]
[ 1250.295201]
[ 1250.295201] <!DOCTYPE
[ 1250.403194] mt7921e 0000:01:00.0: HW/SW Version: 0x3e0a3c68, Build Time:
[ 1250.403194]
[ 1250.403194]
[ 1250.403194]
[ 1250.403194]
[ 1250.403194]
[ 1250.403194] <!DOCTYPE
[ 1250.511153] mt7921e 0000:01:00.0: HW/SW Version: 0x3e0a3c68, Build Time:
[ 1250.511153]
[ 1250.511153]
[ 1250.511153]
[ 1250.511153]
[ 1250.511153]
[ 1250.511153] <!DOCTYPE
[ 1250.619063] mt7921e 0000:01:00.0: HW/SW Version: 0x3e0a3c68, Build Time:
[ 1250.619063]
[ 1250.619063]
[ 1250.619063]
[ 1250.619063]
[ 1250.619063]
[ 1250.619063] <!DOCTYPE
[ 1250.727088] mt7921e 0000:01:00.0: HW/SW Version: 0x3e0a3c68, Build Time:
[ 1250.727088]
[ 1250.727088]
[ 1250.727088]
[ 1250.727088]
[ 1250.727088]
[ 1250.727088] <!DOCTYPE
[ 1250.835134] mt7921e 0000:01:00.0: HW/SW Version: 0x3e0a3c68, Build Time:
[ 1250.835134]
[ 1250.835134]
[ 1250.835134]
[ 1250.835134]
[ 1250.835134]
[ 1250.835134] <!DOCTYPE
[ 1250.940915] mt7921e 0000:01:00.0: hardware init failed

 

The MT7921 isn't working properly. Please help me analyze the reasons! Thanks a lot!

 

 

 

 

 

 

 

 

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

The firmware of MT7921 is incorrect.repalced with RTL8188EE,it can be used now.

View solution in original post

2 REPLIES 2
Erwan SZYMANSKI
ST Employee

Hello @zhangtinglu ,
Do you still have troubles to make your device working ? 

Kind regards,
Erwan.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

The firmware of MT7921 is incorrect.repalced with RTL8188EE,it can be used now.