mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-13 02:14:53 +00:00
3fe253c6ab
Linux upstream commit9370f2d05a
add load firmware file through request_firmware,this affect the nanopi r2s and some USB adapters in kernel 5.10 with this error: 'r8152 4-1:1.0: unable to load firmware patch rtl_nic/rtl8153b-2.fw' This patch split the USB NIC firmware files from r8169 firmware, and adds r8152-firmware to r8152 driver. Add kmod-usb-net-cdc-ncm to support RTL8156A and RTL8156B 2.5G ethernet adapters supported since v5.13-rc1.195aae321c
Signed-off-by: Marty Jones <mj8263788@gmail.com>
118 lines
5.2 KiB
Makefile
118 lines
5.2 KiB
Makefile
Package/r8152-firmware = $(call Package/firmware-default,RealTek RTL8152 firmware)
|
|
define Package/r8152-firmware/install
|
|
$(INSTALL_DIR) $(1)/lib/firmware/rtl_nic
|
|
$(CP) \
|
|
$(PKG_BUILD_DIR)/rtl_nic/rtl8153* \
|
|
$(PKG_BUILD_DIR)/rtl_nic/rtl8156* \
|
|
$(1)/lib/firmware/rtl_nic
|
|
endef
|
|
$(eval $(call BuildPackage,r8152-firmware))
|
|
|
|
Package/r8169-firmware = $(call Package/firmware-default,RealTek RTL8169 firmware)
|
|
define Package/r8169-firmware/install
|
|
$(INSTALL_DIR) $(1)/lib/firmware/rtl_nic
|
|
$(CP) \
|
|
$(PKG_BUILD_DIR)/rtl_nic/rtl810* \
|
|
$(PKG_BUILD_DIR)/rtl_nic/rtl8125* \
|
|
$(PKG_BUILD_DIR)/rtl_nic/rtl8168* \
|
|
$(PKG_BUILD_DIR)/rtl_nic/rtl84* \
|
|
$(1)/lib/firmware/rtl_nic
|
|
endef
|
|
$(eval $(call BuildPackage,r8169-firmware))
|
|
|
|
Package/rtl8188eu-firmware = $(call Package/firmware-default,RealTek RTL8188EU firmware)
|
|
define Package/rtl8188eu-firmware/install
|
|
$(INSTALL_DIR) $(1)/lib/firmware/rtlwifi
|
|
$(CP) \
|
|
$(PKG_BUILD_DIR)/rtlwifi/rtl8188eufw.bin \
|
|
$(1)/lib/firmware/rtlwifi
|
|
endef
|
|
$(eval $(call BuildPackage,rtl8188eu-firmware))
|
|
|
|
Package/rtl8192ce-firmware = $(call Package/firmware-default,RealTek RTL8192CE firmware)
|
|
define Package/rtl8192ce-firmware/install
|
|
$(INSTALL_DIR) $(1)/lib/firmware/rtlwifi
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/rtlwifi/rtl8192cfw.bin $(1)/lib/firmware/rtlwifi
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/rtlwifi/rtl8192cfwU.bin $(1)/lib/firmware/rtlwifi
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/rtlwifi/rtl8192cfwU_B.bin $(1)/lib/firmware/rtlwifi
|
|
endef
|
|
$(eval $(call BuildPackage,rtl8192ce-firmware))
|
|
|
|
Package/rtl8192cu-firmware = $(call Package/firmware-default,RealTek RTL8192CU firmware)
|
|
define Package/rtl8192cu-firmware/install
|
|
$(INSTALL_DIR) $(1)/lib/firmware/rtlwifi
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/rtlwifi/rtl8192cufw.bin $(1)/lib/firmware/rtlwifi
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/rtlwifi/rtl8192cufw_A.bin $(1)/lib/firmware/rtlwifi
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/rtlwifi/rtl8192cufw_B.bin $(1)/lib/firmware/rtlwifi
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/rtlwifi/rtl8192cufw_TMSC.bin $(1)/lib/firmware/rtlwifi
|
|
endef
|
|
$(eval $(call BuildPackage,rtl8192cu-firmware))
|
|
|
|
Package/rtl8192de-firmware = $(call Package/firmware-default,RealTek RTL8192DE firmware)
|
|
define Package/rtl8192de-firmware/install
|
|
$(INSTALL_DIR) $(1)/lib/firmware/rtlwifi
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/rtlwifi/rtl8192defw.bin $(1)/lib/firmware/rtlwifi
|
|
endef
|
|
$(eval $(call BuildPackage,rtl8192de-firmware))
|
|
|
|
Package/rtl8192eu-firmware = $(call Package/firmware-default,RealTek RTL8192EU firmware)
|
|
define Package/rtl8192eu-firmware/install
|
|
$(INSTALL_DIR) $(1)/lib/firmware/rtlwifi
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/rtlwifi/rtl8192eu_nic.bin $(1)/lib/firmware/rtlwifi
|
|
endef
|
|
$(eval $(call BuildPackage,rtl8192eu-firmware))
|
|
|
|
Package/rtl8192se-firmware = $(call Package/firmware-default,RealTek RTL8192SE firmware)
|
|
define Package/rtl8192se-firmware/install
|
|
$(INSTALL_DIR) $(1)/lib/firmware/rtlwifi
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/rtlwifi/rtl8192sefw.bin $(1)/lib/firmware/rtlwifi
|
|
endef
|
|
$(eval $(call BuildPackage,rtl8192se-firmware))
|
|
|
|
Package/rtl8192su-firmware = $(call Package/firmware-default,RealTek RTL8192SU firmware)
|
|
define Package/rtl8192su-firmware/install
|
|
$(INSTALL_DIR) $(1)/lib/firmware/rtlwifi
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/rtlwifi/rtl8712u.bin $(1)/lib/firmware/rtlwifi
|
|
endef
|
|
$(eval $(call BuildPackage,rtl8192su-firmware))
|
|
|
|
Package/rtl8723au-firmware = $(call Package/firmware-default,RealTek RTL8723AU firmware)
|
|
define Package/rtl8723au-firmware/install
|
|
$(INSTALL_DIR) $(1)/lib/firmware/rtlwifi
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/rtlwifi/rtl8723aufw_A.bin $(1)/lib/firmware/rtlwifi
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/rtlwifi/rtl8723aufw_B.bin $(1)/lib/firmware/rtlwifi
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/rtlwifi/rtl8723aufw_B_NoBT.bin $(1)/lib/firmware/rtlwifi
|
|
endef
|
|
$(eval $(call BuildPackage,rtl8723au-firmware))
|
|
|
|
Package/rtl8723bu-firmware = $(call Package/firmware-default,RealTek RTL8723BU firmware)
|
|
define Package/rtl8723bu-firmware/install
|
|
$(INSTALL_DIR) $(1)/lib/firmware/rtlwifi
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/rtlwifi/rtl8723bu_nic.bin $(1)/lib/firmware/rtlwifi
|
|
ln -s rtl8723bu_nic.bin $(1)/lib/firmware/rtlwifi/rtl8723bs_nic.bin
|
|
endef
|
|
$(eval $(call BuildPackage,rtl8723bu-firmware))
|
|
|
|
Package/rtl8821ae-firmware = $(call Package/firmware-default,RealTek RTL8821AE firmware)
|
|
define Package/rtl8821ae-firmware/install
|
|
$(INSTALL_DIR) $(1)/lib/firmware/rtlwifi
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/rtlwifi/rtl8821aefw.bin $(1)/lib/firmware/rtlwifi
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/rtlwifi/rtl8821aefw_wowlan.bin $(1)/lib/firmware/rtlwifi
|
|
endef
|
|
$(eval $(call BuildPackage,rtl8821ae-firmware))
|
|
|
|
Package/rtl8822be-firmware = $(call Package/firmware-default,RealTek RTL8822BE firmware)
|
|
define Package/rtl8822be-firmware/install
|
|
$(INSTALL_DIR) $(1)/lib/firmware/rtw88
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/rtw88/rtw8822b_fw.bin $(1)/lib/firmware/rtw88
|
|
endef
|
|
$(eval $(call BuildPackage,rtl8822be-firmware))
|
|
|
|
Package/rtl8822ce-firmware = $(call Package/firmware-default,RealTek RTL8822CE firmware)
|
|
define Package/rtl8822ce-firmware/install
|
|
$(INSTALL_DIR) $(1)/lib/firmware/rtw88
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/rtw88/rtw8822c_fw.bin $(1)/lib/firmware/rtw88
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/rtw88/rtw8822c_wow_fw.bin $(1)/lib/firmware/rtw88
|
|
endef
|
|
$(eval $(call BuildPackage,rtl8822ce-firmware))
|