mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-14 02:44:45 +00:00
ed381e2fb2
For example, Turris MOX SDIO card is using Marvell (NXP) 88W8997 chip. Technical specs of 88W8997: - 28nm - 802.11 ac wave-2 It should support simultaneous dual-band 2.4 GHz and 5 GHz, but it requires to support multiSSID for one Wi-Fi card [1], which is not supported in OpenWrt, yet and if we tried to run two instances of hostapd, it didn't work well, so it's 2.4 GHz or 5 GHz. - 2x2 MU-MIMO - Bluetooth 5.1 with LE support - Unfortunately, there can be connected only 8 clients at the same time (limited by FW, however, there exists "enterprise" chip, its equal chip, it is just different that it uses different FW) Symlink is necessary as mwifiex_sdio tries to load sd8997_uapsta.bin [ 13.651182] mwifiex_sdio mmc0:0001:1: Direct firmware load for mrvl/sd8997_uapsta.bin failed with error -2 [ 13.661065] mwifiex_sdio mmc0:0001:1: Falling back to user helper [ 13.684880] firmware mrvl!sd8997_uapsta.bin: firmware_loading_store: map pages failed [ 13.695910] mwifiex_sdio mmc0:0001:1: Failed to get firmware mrvl/sd8997_uapsta.bin [ 13.703774] mwifiex_sdio mmc0:0001:1: info: _mwifiex_fw_dpc: unregister device Pali Rohár sent two patches [2] [3] into kernel to fix default firmware name for SD8997, so the symlink will not be required in the future versions of kernel, which was accepted and right now, according to my details it was backported to 5.8, 5.7 and 5.4 [1] https://bugs.openwrt.org/index.php?do=details&task_id=3243 [2] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=00eb0cb36fad5 [3] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=2e1fcac52a9ea Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
73 lines
2.7 KiB
Makefile
73 lines
2.7 KiB
Makefile
Package/mwl8k-firmware = $(call Package/firmware-default,Marvell 8366/8687 firmware)
|
|
define Package/mwl8k-firmware/install
|
|
$(INSTALL_DIR) $(1)/lib/firmware/mwl8k
|
|
$(INSTALL_DATA) \
|
|
$(PKG_BUILD_DIR)/mwl8k/fmimage_8366_ap-3.fw \
|
|
$(PKG_BUILD_DIR)/mwl8k/fmimage_8366.fw \
|
|
$(PKG_BUILD_DIR)/mwl8k/helper_8366.fw \
|
|
$(PKG_BUILD_DIR)/mwl8k/fmimage_8687.fw \
|
|
$(PKG_BUILD_DIR)/mwl8k/helper_8687.fw \
|
|
$(1)/lib/firmware/mwl8k/
|
|
endef
|
|
$(eval $(call BuildPackage,mwl8k-firmware))
|
|
|
|
Package/mwifiex-pcie-firmware = $(call Package/firmware-default,Marvell 8897 firmware)
|
|
define Package/mwifiex-pcie-firmware/install
|
|
$(INSTALL_DIR) $(1)/lib/firmware/mrvl
|
|
$(INSTALL_DATA) \
|
|
$(PKG_BUILD_DIR)/mrvl/pcie8897_uapsta.bin \
|
|
$(1)/lib/firmware/mrvl/
|
|
endef
|
|
$(eval $(call BuildPackage,mwifiex-pcie-firmware))
|
|
|
|
Package/mwifiex-sdio-firmware = $(call Package/firmware-default,Marvell 8887/8997 firmware)
|
|
define Package/mwifiex-sdio-firmware/install
|
|
$(INSTALL_DIR) $(1)/lib/firmware/mrvl
|
|
$(INSTALL_DATA) \
|
|
$(PKG_BUILD_DIR)/mrvl/sd8887_uapsta.bin \
|
|
$(PKG_BUILD_DIR)/mrvl/sdsd8997_combo_v4.bin \
|
|
$(1)/lib/firmware/mrvl/
|
|
ln -s ../mrvl/sdsd8997_combo_v4.bin $(1)/lib/firmware/mrvl/sd8997_uapsta.bin
|
|
endef
|
|
$(eval $(call BuildPackage,mwifiex-sdio-firmware))
|
|
|
|
Package/libertas-usb-firmware = $(call Package/firmware-default,Marvell 8388/8682 USB firmware)
|
|
define Package/libertas-usb-firmware/install
|
|
$(INSTALL_DIR) $(1)/lib/firmware/libertas
|
|
$(INSTALL_DATA) \
|
|
$(PKG_BUILD_DIR)/libertas/usb8388_v9.bin \
|
|
$(PKG_BUILD_DIR)/libertas/usb8682.bin \
|
|
$(1)/lib/firmware/libertas/
|
|
endef
|
|
$(eval $(call BuildPackage,libertas-usb-firmware))
|
|
|
|
Package/libertas-sdio-firmware = $(call Package/firmware-default,Marvell 8385/8686/8688 SDIO firmware)
|
|
define Package/libertas-sdio-firmware/install
|
|
$(INSTALL_DIR) $(1)/lib/firmware/libertas
|
|
$(INSTALL_DATA) \
|
|
$(PKG_BUILD_DIR)/libertas/sd8385_helper.bin \
|
|
$(PKG_BUILD_DIR)/libertas/sd8385.bin \
|
|
$(PKG_BUILD_DIR)/libertas/sd8686_v9_helper.bin \
|
|
$(PKG_BUILD_DIR)/libertas/sd8686_v9.bin \
|
|
$(1)/lib/firmware/libertas
|
|
$(INSTALL_DIR) $(1)/lib/firmware/mrvl
|
|
$(INSTALL_DATA) \
|
|
$(PKG_BUILD_DIR)/mrvl/sd8688_helper.bin \
|
|
$(PKG_BUILD_DIR)/mrvl/sd8688.bin \
|
|
$(1)/lib/firmware/mrvl
|
|
ln -s ../mrvl/sd8688_helper.bin $(1)/lib/firmware/libertas/sd8688_helper.bin
|
|
ln -s ../mrvl/sd8688.bin $(1)/lib/firmware/libertas/sd8688.bin
|
|
endef
|
|
$(eval $(call BuildPackage,libertas-sdio-firmware))
|
|
|
|
Package/libertas-spi-firmware = $(call Package/firmware-default,Marvell 8686 SPI firmware)
|
|
define Package/libertas-spi-firmware/install
|
|
$(INSTALL_DIR) $(1)/lib/firmware/libertas
|
|
$(INSTALL_DATA) \
|
|
$(PKG_BUILD_DIR)/libertas/gspi8686_v9_helper.bin \
|
|
$(PKG_BUILD_DIR)/libertas/gspi8686_v9.bin \
|
|
$(1)/lib/firmware/libertas
|
|
endef
|
|
$(eval $(call BuildPackage,libertas-spi-firmware))
|
|
|