#1108599 firmware-linux-free: please add support MT7921/MT7925 WIFI Combo Cards

#1108599#5
Date:
2025-07-01 08:06:34 UTC
From:
To:
Dear Maintainer,

1. Please help to include firmware for MT7921 and MT7925 WIFI Combo
cards.
The firmware should support both WIFI and BT features.
2. To include these firmware in the DVD or netinst LiveCD is also
suggested.

Tested hardware:
1. MT7921E M.2 PCIE dongle.
2. MediaTek Genio 1200 EVK.

Installed from:
debian-testing-arm64-netinst-20250630-1.iso

Kernel error log:
[    4.684020] bluetooth hci0: firmware:
failed to load mediatek/BT_RAM_CODE_MT7961_1_2_hdr.bin (-2)
[    4.784652] mt7921e 0000:01:00.0: firmware:
failed to load mediatek/WIFI_MT7961_patch_mcu_1_2_hdr.bin (-2)

The following firmware should be included:
1. For MT7921 family.
BT_RAM_CODE_MT7922_1_1_hdr.bin
BT_RAM_CODE_MT7961_1_2_hdr.bin
BT_RAM_CODE_MT7961_1a_2_hdr.bin
WIFI_MT7922_patch_mcu_1_1_hdr.bin
WIFI_MT7961_patch_mcu_1_2_hdr.bin
WIFI_MT7961_patch_mcu_1a_2_hdr.bin
WIFI_RAM_CODE_MT7922_1.bin
WIFI_RAM_CODE_MT7961_1.bin
WIFI_RAM_CODE_MT7961_1a.bin

2. For MT7925 family.
BT_RAM_CODE_MT7925_1_1_hdr.bin
WIFI_MT7925_PATCH_MCU_1_1_hdr.bin
WIFI_RAM_CODE_MT7925_1_1.bin

Thanks
Macpaul Lin

#1108599#10
Date:
2025-07-02 18:14:54 UTC
From:
To:
Control: reassign -1 hw-detect
Control: tag -1 moreinfo

Your firmware is non-free, so it is packaged separately (source package
firmware-nonfree, binary package firmware-mediatek).  But it is also
included in the netinst image.

The netinst and live CD images are 2 different things.
[...]

The installer should detect these log messages, then:

1. Install the required firmware package
2. Remove and reload the driver

Is that not happening?

Ben.

#1108599#23
Date:
2025-07-04 07:25:26 UTC
From:
To:
The latest netint image I've tested is
'debian-testing-arm64-netinst-20250704-1.iso'.
There is no such error log during the installation but I think the card
was not probed.

I could only locate 'lo' and 'end0' via 'ip link'.

I've also found there is a defered probe pending for 112f0000.pcie. I'm
not sure which device use this port. Need to double check it later.

Thanks for explanation. I've tested netinst CD image.
nonfree/firmware-mediatek_20250410-2_all.deb' by command
'zcat /cdrom/dists/trixie/non-free-firmware/binary-arm64/Package.gz |
grep mediatek'.
And also file '/cdrom/firmware/firmware-mediatek_20250410-2_all.deb'

After installation via ethernet, I've added 'non-free-firmware' port to
'/etc/apt/sources.list'.
After 'apt update', I was able to install 'firmware-linux-nonfree' and
firwmare-mediatek. The WIFI card could be probed with loading correct
firmware after reboot.

I think the issue could be closed and we should focus on the detection
failure in the installer.

Thanks
Macpaul Lin

#1108599#28
Date:
2025-07-06 15:41:52 UTC
From:
To:
For that device the PHY driver appears to be phy-mtk-pcie, which is
*not* currently included in the installer.

For the other PCIe port the PHY driver appears to be phy-mtk-tphy which
*is* included in the installer.

Can you confirm whether I am right about the PHY drivers?

Is it possible that you originally tested the WiFi/BT card in port 1,
and then tested it in port 0 this time?

[...]

I already reassigned this to the relevant installer component
(hw-detect) because I thought the only issue was failure to handle the
firmware installation.

However, the kernel package (linux) controls the selection of drivers to
be included in the installer, so a missing PHY driver is a bug there.  I
will duplicate and reassign the bug report again if necessary.

Ben.