From 2510a587a69101e0f2e7f73a84e1c348e0113d2a Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Fri, 9 Sep 2022 20:29:10 +0100 Subject: [PATCH] linux-firmware: package MediaTek MT792[12] Bluetooth firmware btusb fails to start on MT792[12] hardware without the appropriate firmware being loaded first: [ 9.750285] bluetooth hci0: Direct firmware load for mediatek/BT_RAM_CODE_MT7961_1_2_hdr.bin failed with error -2 [ 9.765723] bluetooth hci0: Falling back to sysfs fallback for: mediatek/BT_RAM_CODE_MT7961_1_2_hdr.bin Package firmware for MediaTek MT792[12] Bluetooth from linux-firmware. Signed-off-by: Daniel Golle --- package/firmware/linux-firmware/mediatek.mk | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/package/firmware/linux-firmware/mediatek.mk b/package/firmware/linux-firmware/mediatek.mk index 18677bc748..9c8f68b889 100644 --- a/package/firmware/linux-firmware/mediatek.mk +++ b/package/firmware/linux-firmware/mediatek.mk @@ -50,3 +50,21 @@ define Package/mt7622bt-firmware/install $(1)/lib/firmware/mediatek endef $(eval $(call BuildPackage,mt7622bt-firmware)) + +Package/mt7921bt-firmware = $(call Package/firmware-default,mt7921bt firmware) +define Package/mt7921bt-firmware/install + $(INSTALL_DIR) $(1)/lib/firmware/mediatek + $(INSTALL_DATA) \ + $(PKG_BUILD_DIR)/mediatek/BT_RAM_CODE_MT7961_1_2_hdr.bin \ + $(1)/lib/firmware/mediatek +endef +$(eval $(call BuildPackage,mt7921bt-firmware)) + +Package/mt7922bt-firmware = $(call Package/firmware-default,mt7922bt firmware) +define Package/mt7922bt-firmware/install + $(INSTALL_DIR) $(1)/lib/firmware/mediatek + $(INSTALL_DATA) \ + $(PKG_BUILD_DIR)/mediatek/BT_RAM_CODE_MT7922_1_1_hdr.bin \ + $(1)/lib/firmware/mediatek +endef +$(eval $(call BuildPackage,mt7922bt-firmware)) -- 2.30.2