You are not logged in.

#1 2024-05-18 10:04:51

portalbyte
Member
Registered: 2024-05-18
Posts: 1

MT7961 drivers have an invalid (file)name.

I just upgraded the Linux kernel from 6.8.x -> 6.9.1 & firmware to 20240510, and bluetooth no longer works as it cannot find the drivers. I am using the MediaTek MT7921 chipset with the MT7961 drivers.

Running sudo dmesg | grep -i bluetooth returns this:

[   18.170503] Bluetooth: Core ver 2.22
[   18.170532] NET: Registered PF_BLUETOOTH protocol family
[   18.170534] Bluetooth: HCI device and connection manager initialized
[   18.170538] Bluetooth: HCI socket layer initialized
[   18.170540] Bluetooth: L2CAP socket layer initialized
[   18.170543] Bluetooth: SCO socket layer initialized
[   18.189078] bluetooth hci0: Direct firmware load for mediatek/BT_RAM_CODE_MT7961_1a_2_hdr.bin failed with error -2
[   18.189082] Bluetooth: hci0: Failed to load firmware file (-2)
[   18.189084] Bluetooth: hci0: Failed to set up firmware (-2)
[   18.189086] Bluetooth: hci0: HCI Enhanced Setup Synchronous Connection command is advertised, but not supported.
[   18.246799] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   18.246803] Bluetooth: BNEP filters: protocol multicast
[   18.246807] Bluetooth: BNEP socket layer initialized

It appears to be looking for BT_RAM_CODE_MT7961_1a_2_hdr.bin. However, looking at the /lib/firmware/mediatek folder, it appears to be a compressed file called BT_RAM_CODE_MT7961_1_2_hdr.bin.zst. Decompressing & renaming BT_RAM_CODE_MT7961_1_2_hdr.bin.zst to BT_RAM_CODE_MT7961_1a_2_hdr.bin makes bluetooth work flawlessly again.

Am I the only one with this issue / should I report it elsewhere?

Offline

#2 2024-05-18 12:08:12

Asutorufa
Member
Registered: 2024-05-18
Posts: 1

Re: MT7961 drivers have an invalid (file)name.

I can confirm it, downgrade to 6.8.8 can fix it.

[    9.391480] bluetooth hci0: Direct firmware load for mediatek/BT_RAM_CODE_MT7961_1a_2_hdr.bin failed with error -2
[    9.391484] Bluetooth: hci0: Failed to load firmware file (-2)
[    9.392346] Bluetooth: hci0: Failed to set up firmware (-2)

Offline

#3 2024-05-18 12:42:02

loqs
Member
Registered: 2014-03-06
Posts: 18,399

Offline

#4 2024-05-18 13:47:34

Penglyn
Member
Registered: 2021-06-22
Posts: 7

Re: MT7961 drivers have an invalid (file)name.

thanks, now i know why my bluetooth broke smile

Offline

#5 2024-05-18 15:36:46

loqs
Member
Registered: 2014-03-06
Posts: 18,399

Re: MT7961 drivers have an invalid (file)name.

Penglyn wrote:

thanks, now i know why my bluetooth broke smile

Does the patch from the stable-queue resolve the issue on your system?

Offline

#6 2024-05-19 16:18:42

LogicalKarma
Member
Registered: 2024-05-19
Posts: 18

Re: MT7961 drivers have an invalid (file)name.

I can also confirm. A kernel downgrade to 6.8.9-arch1-2 fixed my issue.

Offline

#7 2024-05-19 17:05:33

loqs
Member
Registered: 2014-03-06
Posts: 18,399

Re: MT7961 drivers have an invalid (file)name.

linux-6.9.1.arch1with https://git.kernel.org/pub/scm/linux/ke … 7921.patch applied:
https://drive.google.com/file/d/16e5h9g … sp=sharing linux-6.9.1.arch1-1.1-x86_64.pkg.tar.zst
https://drive.google.com/file/d/1P09LP8 … sp=sharing linux-headers-6.9.1.arch1-1.1-x86_64.pkg.tar.zst

Offline

#8 2024-05-20 15:41:20

Smoerrebroed
Member
From: Germany
Registered: 2011-07-24
Posts: 111

Re: MT7961 drivers have an invalid (file)name.

Seems to fix it for me.

Edit: Maybe not. Back on 6.8.9 now where it works.

Last edited by Smoerrebroed (2024-05-20 15:50:36)

Offline

#9 2024-05-20 17:15:05

loqs
Member
Registered: 2014-03-06
Posts: 18,399

Re: MT7961 drivers have an invalid (file)name.

Smoerrebroed wrote:

Seems to fix it for me.

Edit: Maybe not. Back on 6.8.9 now where it works.

If upstream's fix does not resolve the issue it may be a different issue or the fix may need changes.  In either case please consider reporting your findings to upstream.

Offline

#10 2024-05-21 01:44:38

Kxuan
Member
Registered: 2017-03-18
Posts: 2

Re: MT7961 drivers have an invalid (file)name.

This patch works on my system.

Here is some infomation:

$ uname -r
6.9.1-arch1-1.1
# I patched the kernel and added a '.1' suffix to the version code

$ lsusb -d 0e8d:0608   
Bus 001 Device 002: ID 0e8d:0608 MediaTek Inc. Wireless_Device

Offline

#11 2024-05-26 18:12:20

GuessWhatBBQ
Member
Registered: 2022-01-27
Posts: 1

Re: MT7961 drivers have an invalid (file)name.

This was fixed by the latest linux kernel version 6.9.2.arch1-1

Offline

Board footer

Powered by FluxBB