[openwrt/openwrt] linux-firmware: package MediaTek MT7925 Bluetooth firmware
LEDE Commits
lede-commits at lists.infradead.org
Sun Dec 22 09:34:32 PST 2024
hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/dc655dcfca9a8e527cdea9eb395bea4aff276b30
commit dc655dcfca9a8e527cdea9eb395bea4aff276b30
Author: Rani Hod <rani.hod at gmail.com>
AuthorDate: Sun Dec 22 02:53:51 2024 +0200
linux-firmware: package MediaTek MT7925 Bluetooth firmware
`btusb` fails to start on MT7925 hardware without the appropriate
firmware being loaded first:
```
bluetooth hci0: Direct firmware load for mediatek/mt7925/BT_RAM_CODE_MT7925_1_1_hdr.bin failed with error -2
bluetooth hci0: Falling back to sysfs fallback for: mediatek/mt7925/BT_RAM_CODE_MT7925_1_1_hdr.bin
```
Package firmware for MediaTek MT7925 Bluetooth from `linux-firmware`.
Signed-off-by: Rani Hod <rani.hod at gmail.com>
Link: https://github.com/openwrt/openwrt/pull/17331
Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
package/firmware/linux-firmware/mediatek.mk | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/package/firmware/linux-firmware/mediatek.mk b/package/firmware/linux-firmware/mediatek.mk
index d520557196..cbc1c70d81 100644
--- a/package/firmware/linux-firmware/mediatek.mk
+++ b/package/firmware/linux-firmware/mediatek.mk
@@ -69,6 +69,15 @@ define Package/mt7922bt-firmware/install
endef
$(eval $(call BuildPackage,mt7922bt-firmware))
+Package/mt7925bt-firmware = $(call Package/firmware-default,mt7925bt firmware,,LICENCE.mediatek)
+define Package/mt7925bt-firmware/install
+ $(INSTALL_DIR) $(1)/lib/firmware/mediatek/mt7925
+ $(INSTALL_DATA) \
+ $(PKG_BUILD_DIR)/mediatek/mt7925/BT_RAM_CODE_MT7925_1_1_hdr.bin \
+ $(1)/lib/firmware/mediatek/mt7925
+endef
+$(eval $(call BuildPackage,mt7925bt-firmware))
+
Package/mt7981-wo-firmware = $(call Package/firmware-default,MT7981 offload firmware,,LICENCE.mediatek)
define Package/mt7981-wo-firmware/install
$(INSTALL_DIR) $(1)/lib/firmware/mediatek
More information about the lede-commits
mailing list