[openwrt/openwrt] linux-firmware: package MediaTek MT792[12] Bluetooth firmware

LEDE Commits lede-commits at lists.infradead.org
Fri Sep 9 13:09:26 PDT 2022


dangole pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/2510a587a69101e0f2e7f73a84e1c348e0113d2a

commit 2510a587a69101e0f2e7f73a84e1c348e0113d2a
Author: Daniel Golle <daniel at makrotopia.org>
AuthorDate: Fri Sep 9 20:29:10 2022 +0100

    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 <daniel at makrotopia.org>
---
 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))




More information about the lede-commits mailing list