├── COPYING.MIT ├── README.md ├── conf └── layer.conf ├── realtek-wifi-chipsets.md └── recipes-bsp └── drivers ├── rtl8192eu.bb ├── rtl8723bu.bb ├── rtl8723bu └── 0002-realtek-Disable-IPS-mode.patch ├── rtl8723du.bb ├── rtl8723du └── 0001-use-modules_install-as-wanted-by-yocto.patch ├── rtl8812au.bb ├── rtl8812au └── 0001-Use-modules_install-as-wanted-by-yocto.patch ├── rtl8814au.bb ├── rtl8814au └── 0001-Add-make-target-modules_install.patch ├── rtl8821au.bb ├── rtl8821au └── 0001-Use-modules_install-as-wanted-by-yocto.patch ├── rtl8821cu.bb ├── rtl8821cu └── 0001-use-modules_install-as-wanted-by-yocto.patch ├── rtl88x2bu.bb └── rtl88x2bu └── 0001-fix-makefile.patch /COPYING.MIT: -------------------------------------------------------------------------------- 1 | Permission is hereby granted, free of charge, to any person obtaining a copy 2 | of this software and associated documentation files (the "Software"), to deal 3 | in the Software without restriction, including without limitation the rights 4 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 5 | copies of the Software, and to permit persons to whom the Software is 6 | furnished to do so, subject to the following conditions: 7 | 8 | The above copyright notice and this permission notice shall be included in 9 | all copies or substantial portions of the Software. 10 | 11 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 12 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 13 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 14 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 15 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 16 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 17 | THE SOFTWARE. 18 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | meta-rtlwifi 2 | ================================ 3 | 4 | OpenEmbedded/Yocto Project development layer for out of tree Realtek WiFi Linux kernel drivers 5 | 6 | 7 | At the moment, only USB drivers are added by this layer as most IoT devices 8 | lack support of PCIe and other peripheral connection systems to support 9 | other Realtek chipsets. 10 | 11 | [see more information about Realtek WIFI chipsets](realtek-wifi-chipsets.md) 12 | -------------------------------------------------------------------------------- /conf/layer.conf: -------------------------------------------------------------------------------- 1 | # Append conf dir to BBPATH 2 | BBPATH .= ":${LAYERDIR}" 3 | 4 | # Append recipe dir to BBFILES 5 | BBFILES += "${LAYERDIR}/recipes*/*/*.bb ${LAYERDIR}/recipes*/*/*.bbappend" 6 | 7 | LAYERSERIES_COMPAT_rtlwifi = "dunfell kirkstone mickledore gatesgarth scarthgap" 8 | 9 | BBFILE_COLLECTIONS += "rtlwifi" 10 | BBFILE_PRIORITY_rtlwifi = "1" 11 | BBFILE_PATTERN_rtlwifi = "${LAYERDIR}" 12 | -------------------------------------------------------------------------------- /realtek-wifi-chipsets.md: -------------------------------------------------------------------------------- 1 | Realtek wifi chipsets 2 | ===================== 3 | 4 | (2022-12-20) 5 | 6 | * https://www.realtek.com/en/products/communications-network-ics/category/wireless-lan-ics 7 | * https://wikidevi.wi-cat.ru/Realtek 8 | * https://gitlab.com/linux-wifi-collection/realtek 9 | 10 | 11 | 12 | Chipset naming convention 13 | ------------------------- 14 | 15 | Newer chipsets follow this naming scheme: 16 | 17 | ``` 18 | RTLnnnnXU 19 | |___|| 20 | | |____ interface type. U = "USB", E = "PCIe", S/TF/TV = "SDIO/UART 21 | | 22 | | 23 | |_______ chipset number, like 8811A 24 | ``` 25 | 26 | 27 | 28 | 29 | USB WLAN adapter support for Yocto 30 | ---------------------------------- 31 | 32 | - [RTL8192EU](https://www.realtek.com/en/products/communications-network-ics/item/rtl8192eu) - driver included [in this layer](./recipes-bsp/drivers/rtl8192eu.bb) 33 | - [RTL8723BU](https://www.realtek.com/en/products/communications-network-ics/item/rtl8723bu) - driver included [in this layer](./recipes-bsp/drivers/rtl8723bu.bb) 34 | - [RTL8723DU](https://www.realtek.com/en/products/communications-network-ics/item/rtl8723du) - driver in [kernel since 6.2](https://wireless.wiki.kernel.org/en/users/drivers/rtl819x), driver included [in this layer](./recipes-bsp/drivers/rtl8723du.bb) 35 | - RTL8731AU - driver included [in this layer](./recipes-bsp/drivers/rtl8821cu.bb) 36 | - [RTL8811AU](https://www.realtek.com/en/products/communications-network-ics/item/rtl8811au) - driver included [in this layer](./recipes-bsp/drivers/rtl8821au.bb) 37 | - [RTL8811CU](https://www.realtek.com/en/products/communications-network-ics/item/rtl8811cu) - driver included [in this layer](./recipes-bsp/drivers/rtl8821cu.bb) 38 | - [RTL8812AU](https://www.realtek.com/en/products/communications-network-ics/item/rtl8812au) - driver included [in this layer](./recipes-bsp/drivers/rtl8812au.bb) 39 | - [RTL8812BU](https://www.realtek.com/en/products/communications-network-ics/item/rtl8812bu) - driver included [in this layer](./recipes-bsp/drivers/rtl88x2bu.bb) 40 | - [RTL8814AU](https://www.realtek.com/en/products/communications-network-ics/item/rtl8814au) - driver included [in this layer](./recipes-bsp/drivers/rtl8814au.bb) 41 | - [RTL8821AU](https://www.realtek.com/en/products/communications-network-ics/item/rtl8821au) - driver included [in this layer](./recipes-bsp/drivers/rtl8821au.bb) 42 | - [RTL8821CU](https://www.realtek.com/en/products/communications-network-ics/item/rtl8821cu) - driver included [in Linux Kernel since 6.2](https://wireless.wiki.kernel.org/en/users/drivers/rtl819x), driver included [in this layer](./recipes-bsp/drivers/rtl8821cu.bb) 43 | - [RTL8822BU](https://www.realtek.com/en/products/communications-network-ics/item/rtl8822bu) - driver included [in Linux Kernel since 6.2](https://wireless.wiki.kernel.org/en/users/drivers/rtl819x), driver included [in this layer](./recipes-bsp/drivers/rtl88x2bu.bb) 44 | - RTL8822CU - driver included [in Linux Kernel since 6.2](https://wireless.wiki.kernel.org/en/users/drivers/rtl819x) 45 | 46 | 47 | 48 | 49 | Other Realtek adapters 50 | ---------------------- 51 | 52 | ### 802.11ac/abgn 53 | 54 | - [RTL8811AE](https://www.realtek.com/en/products/communications-network-ics/item/rtl8811ae) 55 | - [RTL8812AE](https://www.realtek.com/en/products/communications-network-ics/item/rtl8812ae) 56 | - [RTL8812AR](https://www.realtek.com/en/products/communications-network-ics/item/rtl8812ar) 57 | - [RTL8812BRH](https://www.realtek.com/en/products/communications-network-ics/item/rtl8812brh) 58 | - [RTL8814AE](https://www.realtek.com/en/products/communications-network-ics/item/rtl8814ae) 59 | - [RTL8814AR](https://www.realtek.com/en/products/communications-network-ics/item/rtl8814ar) 60 | 61 | 62 | 63 | 64 | ### 802.11ac/abgn Combo 65 | 66 | - [RTL8821AE](https://www.realtek.com/en/products/communications-network-ics/item/rtl8821ae) - driver included [in Linux Kernel since 3.16](https://wireless.wiki.kernel.org/en/users/drivers/rtl819x) 67 | - [RTL8821AS](https://www.realtek.com/en/products/communications-network-ics/item/rtl8821as) 68 | - [RTL8821CE](https://www.realtek.com/en/products/communications-network-ics/item/rtl8821ce) - driver included [in Linux Kernel](https://wireless.wiki.kernel.org/en/users/drivers/rtl819x) 69 | - [RTL8821CS](https://www.realtek.com/en/products/communications-network-ics/item/rtl8821cs) - driver included [in Linux Kernel since 6.2](https://wireless.wiki.kernel.org/en/users/drivers/rtl819x) 70 | - [RTL8822BE](https://www.realtek.com/en/products/communications-network-ics/item/rtl8822be) - driver included [in Linux Kernel since 6.2](https://wireless.wiki.kernel.org/en/users/drivers/rtl819x) 71 | - [RTL8822BEH-VR](https://www.realtek.com/en/products/communications-network-ics/item/rtl8822beh-vr) 72 | - [RTL8822BS](https://www.realtek.com/en/products/communications-network-ics/item/rtl8822bs) 73 | 74 | 75 | 76 | ### 802.11bgn 77 | 78 | - [RTL8188EE](https://www.realtek.com/en/products/communications-network-ics/item/rtl8188ee) - driver included [in Linux Kernel](https://wireless.wiki.kernel.org/en/users/drivers/rtl819x) 79 | - [RTL8188ETV](https://www.realtek.com/en/products/communications-network-ics/item/rtl8188etv) 80 | - [RTL8188EUS](https://www.realtek.com/en/products/communications-network-ics/item/rtl8188eus) - driver included [in Linux Kernel](https://wireless.wiki.kernel.org/en/users/drivers/rtl819x) 81 | - [RTL8188FTV](https://www.realtek.com/en/products/communications-network-ics/item/rtl8188ftv) 82 | - [RTL8189EM](https://www.realtek.com/en/products/communications-network-ics/item/rtl8189em) 83 | - [RTL8189EM-VI](https://www.realtek.com/en/products/communications-network-ics/item/rtl8189em-vi) 84 | - [RTL8189ES](https://www.realtek.com/en/products/communications-network-ics/item/rtl8189es) 85 | - [RTL8189ETV](https://www.realtek.com/en/products/communications-network-ics/item/rtl8189etv) 86 | - [RTL8189FTV](https://www.realtek.com/en/products/communications-network-ics/item/rtl8189ftv) 87 | - [RTL8192EE](https://www.realtek.com/en/products/communications-network-ics/item/rtl8192ee) - driver included [in Linux Kernel](https://wireless.wiki.kernel.org/en/users/drivers/rtl819x) 88 | - [RTL8192ER](https://www.realtek.com/en/products/communications-network-ics/item/rtl8192er) 89 | - [RTL8192ES](https://www.realtek.com/en/products/communications-network-ics/item/rtl8192es) 90 | - [RTL8194AR](https://www.realtek.com/en/products/communications-network-ics/item/rtl8194ar) 91 | 92 | 93 | 94 | ### 802.11bgn Combo 95 | 96 | - [RTL8723BE](https://www.realtek.com/en/products/communications-network-ics/item/rtl8723be) - driver in [kernel since 3.15](https://wireless.wiki.kernel.org/en/users/drivers/rtl819x) 97 | - [RTL8723BS](https://www.realtek.com/en/products/communications-network-ics/item/rtl8723bs) - driver in [kernel staging since 5.15](https://wireless.wiki.kernel.org/en/users/drivers/rtl819x) 98 | - [RTL8723DE](https://www.realtek.com/en/products/communications-network-ics/item/rtl8723de) - driver in [kernel since 6.2](https://wireless.wiki.kernel.org/en/users/drivers/rtl819x) 99 | - [RTL8723DS](https://www.realtek.com/en/products/communications-network-ics/item/rtl8723ds) - driver in [kernel since 6.2](https://wireless.wiki.kernel.org/en/users/drivers/rtl819x) 100 | 101 | -------------------------------------------------------------------------------- /recipes-bsp/drivers/rtl8192eu.bb: -------------------------------------------------------------------------------- 1 | SUMMARY = "RTL8192AU kernel driver (wifi)" 2 | DESCRIPTION = "RTL8192AU kernel driver" 3 | LICENSE = "GPL-2.0-only" 4 | LIC_FILES_CHKSUM ?= "file://${COMMON_LICENSE_DIR}/GPL-2.0-only;md5=801f80980d171dd6425610833a22dbe6" 5 | 6 | SRC_URI = "git://github.com/Mange/rtl8192eu-linux-driver.git;protocol=https;branch=realtek-4.4.x" 7 | SRCREV = "528ae31705764d78cc117abd604d9b799bd52543" 8 | 9 | S = "${WORKDIR}/git" 10 | 11 | PV = "4.4.1-git" 12 | 13 | DEPENDS = "virtual/kernel" 14 | 15 | inherit module 16 | 17 | EXTRA_OEMAKE = "ARCH=${ARCH}" 18 | EXTRA_OEMAKE += "KSRC=${STAGING_KERNEL_BUILDDIR}" 19 | 20 | do_compile () { 21 | unset LDFLAGS 22 | oe_runmake 23 | } 24 | 25 | do_install () { 26 | install -d ${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION} 27 | install -m 0755 ${B}/8192eu.ko ${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/8192eu.ko 28 | } 29 | 30 | -------------------------------------------------------------------------------- /recipes-bsp/drivers/rtl8723bu.bb: -------------------------------------------------------------------------------- 1 | SUMMARY = "RTL8723 kernel driver (wifi + bluetooth)" 2 | DESCRIPTION = "RTL8723 kernel driver" 3 | LICENSE = "GPL-2.0-only" 4 | LIC_FILES_CHKSUM = "file://Kconfig;md5=ce4c7adf40ddcf6cfca7ee2b333165f0" 5 | 6 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" 7 | PV = "4.3.6.11-git" 8 | SRCREV = "92c19318cb54ef96c2cfb4a22b2c98eb512812d8" 9 | SRC_URI = "git://github.com/lwfinger/rtl8723bu.git;protocol=https;branch=master \ 10 | file://0002-realtek-Disable-IPS-mode.patch " 11 | 12 | S = "${WORKDIR}/git" 13 | 14 | DEPENDS = "virtual/kernel" 15 | 16 | inherit module 17 | 18 | EXTRA_OEMAKE = "ARCH=${ARCH} \ 19 | KSRC=${STAGING_KERNEL_BUILDDIR} \ 20 | USER_EXTRA_CFLAGS='-DCONFIG_IOCTL_CFG80211 -DRTW_USE_CFG80211_STA_EVENT' \ 21 | " 22 | 23 | do_compile () { 24 | oe_runmake 25 | } 26 | 27 | do_install () { 28 | install -d ${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION} 29 | install -m 0755 ${B}/8723bu.ko ${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/8723bu.ko 30 | 31 | install -d ${D}${sysconfdir}/modprobe.d 32 | echo "blacklist rtl8xxxu" > ${D}${sysconfdir}/modprobe.d/rtl8723-blacklist.conf 33 | } 34 | 35 | FILES:${PN} += "${sysconfdir}" 36 | RDEPENDS:${PN} += "linux-firmware-rtl8723" 37 | -------------------------------------------------------------------------------- /recipes-bsp/drivers/rtl8723bu/0002-realtek-Disable-IPS-mode.patch: -------------------------------------------------------------------------------- 1 | From 1aa9545a4c96d866d7039cf4236b6228ceddaebf Mon Sep 17 00:00:00 2001 2 | From: Christophe Priouzeau 3 | Date: Tue, 29 Nov 2016 18:32:07 +0100 4 | Subject: [PATCH 2/2] realtek: Disable IPS mode 5 | 6 | Disabling IPS mode increased the bluetooth range 7 | 8 | Signed-off-by: Patrice Chotard 9 | --- 10 | include/autoconf.h | 2 +- 11 | 1 file changed, 1 insertion(+), 1 deletion(-) 12 | 13 | diff --git a/include/autoconf.h b/include/autoconf.h 14 | index d5556af..6fb6fa9 100644 15 | --- a/include/autoconf.h 16 | +++ b/include/autoconf.h 17 | @@ -71,7 +71,7 @@ 18 | #endif 19 | 20 | 21 | -#define CONFIG_IPS 1 22 | +//#define CONFIG_IPS 1 23 | #ifdef CONFIG_IPS 24 | //#define CONFIG_IPS_LEVEL_2 1 //enable this to set default IPS mode to IPS_LEVEL_2 25 | #endif 26 | -- 27 | 1.9.1 28 | 29 | -------------------------------------------------------------------------------- /recipes-bsp/drivers/rtl8723du.bb: -------------------------------------------------------------------------------- 1 | SUMMARY = "RTL88x2BU kernel driver (wifi)" 2 | DESCRIPTION = "RTL88x2BU kernel driver (like RTL8812BU)" 3 | LICENSE = "GPL-2.0-only" 4 | LIC_FILES_CHKSUM ?= "file://${COMMON_LICENSE_DIR}/GPL-2.0-only;md5=801f80980d171dd6425610833a22dbe6" 5 | 6 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" 7 | SRCREV = "efcaffbd60e8114b5338f51cec8b3f7b6ef51045" 8 | SRC_URI = "\ 9 | git://github.com/lwfinger/rtl8723du;protocol=https;branch=master \ 10 | file://0001-use-modules_install-as-wanted-by-yocto.patch \ 11 | " 12 | PV = "5.13.4-git" 13 | 14 | inherit module 15 | S = "${WORKDIR}/git" 16 | EXTRA_OEMAKE:append = " KSRC=${STAGING_KERNEL_DIR}" 17 | -------------------------------------------------------------------------------- /recipes-bsp/drivers/rtl8723du/0001-use-modules_install-as-wanted-by-yocto.patch: -------------------------------------------------------------------------------- 1 | From 30836d3579b3536ce174082f451acf7fea638a8d Mon Sep 17 00:00:00 2001 2 | From: Andrei Gherzan 3 | Date: Mon, 1 Aug 2016 23:51:45 +0200 4 | Subject: [PATCH] Use modules_install as wanted by yocto 5 | 6 | Upstream-Status: Pending 7 | 8 | Signed-off-by: Andrei Gherzan 9 | --- 10 | Makefile | 3 +++ 11 | 1 file changed, 3 insertions(+) 12 | 13 | diff --git a/Makefile b/Makefile 14 | index 70c609a..b5ecf55 100644 15 | --- a/Makefile 16 | +++ b/Makefile 17 | @@ -1051,6 +1051,9 @@ all: modules 18 | modules: 19 | $(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KSRC) M=$(shell pwd) modules 20 | 21 | +modules_install: 22 | + $(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KSRC) M=$(shell pwd) modules_install 23 | + 24 | strip: 25 | $(CROSS_COMPILE)strip $(MODULE_NAME).ko --strip-unneeded 26 | 27 | -- 28 | 2.1.4 29 | -------------------------------------------------------------------------------- /recipes-bsp/drivers/rtl8812au.bb: -------------------------------------------------------------------------------- 1 | SUMMARY = "Realtek 802.11n WLAN Adapter Linux driver" 2 | LICENSE = "GPL-2.0-only" 3 | LIC_FILES_CHKSUM = "file://LICENSE;md5=b1918d7d89f091725a3188ff95f7c72b" 4 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" 5 | 6 | inherit module 7 | 8 | SRC_URI = " \ 9 | git://github.com/morrownr/8812au-20210820.git;protocol=https;branch=main \ 10 | file://0001-Use-modules_install-as-wanted-by-yocto.patch \ 11 | " 12 | 13 | SRCREV = "c0efee9cd121d9f0c815d9771475f76339a8f7d3" 14 | 15 | PV = "5.13.6-git" 16 | S = "${WORKDIR}/git" 17 | 18 | EXTRA_OEMAKE:append = " KSRC=${STAGING_KERNEL_DIR}" 19 | -------------------------------------------------------------------------------- /recipes-bsp/drivers/rtl8812au/0001-Use-modules_install-as-wanted-by-yocto.patch: -------------------------------------------------------------------------------- 1 | From 30836d3579b3536ce174082f451acf7fea638a8d Mon Sep 17 00:00:00 2001 2 | From: Andrei Gherzan 3 | Date: Mon, 1 Aug 2016 23:51:45 +0200 4 | Subject: [PATCH] Use modules_install as wanted by yocto 5 | 6 | Upstream-Status: Pending 7 | 8 | Signed-off-by: Andrei Gherzan 9 | --- 10 | Makefile | 3 +++ 11 | 1 file changed, 3 insertions(+) 12 | 13 | diff --git a/Makefile b/Makefile 14 | index 70c609a..b5ecf55 100644 15 | --- a/Makefile 16 | +++ b/Makefile 17 | @@ -1051,6 +1051,9 @@ all: modules 18 | modules: 19 | $(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KSRC) M=$(shell pwd) modules 20 | 21 | +modules_install: 22 | + $(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KSRC) M=$(shell pwd) modules_install 23 | + 24 | strip: 25 | $(CROSS_COMPILE)strip $(MODULE_NAME).ko --strip-unneeded 26 | 27 | -- 28 | 2.1.4 29 | -------------------------------------------------------------------------------- /recipes-bsp/drivers/rtl8814au.bb: -------------------------------------------------------------------------------- 1 | SUMMARY = "RTL8814AU kernel driver (wifi)" 2 | DESCRIPTION = "RTL8814ABU kernel driver" 3 | LICENSE = "GPL-2.0-only" 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=ab842b299d0a92fb908d6eb122cd6de9" 5 | 6 | SRCREV = "6f80699e68fd2a9f2bba3f1a56ca06d1b7992bd8" 7 | SRC_URI = "git://github.com/morrownr/8814au;protocol=https;branch=main \ 8 | file://0001-Add-make-target-modules_install.patch \ 9 | " 10 | PV = "5.8.5.1-git" 11 | 12 | inherit module 13 | S = "${WORKDIR}/git" 14 | EXTRA_OEMAKE:append = " KSRC=${STAGING_KERNEL_DIR}" 15 | -------------------------------------------------------------------------------- /recipes-bsp/drivers/rtl8814au/0001-Add-make-target-modules_install.patch: -------------------------------------------------------------------------------- 1 | From e29aadaa5dddbf53965f364d16846cf51b42d0fc Mon Sep 17 00:00:00 2001 2 | From: Yutaka KOBAYASHI 3 | Date: Wed, 2 Aug 2023 19:56:01 +0900 4 | Subject: [PATCH] Add make target(modules_install) 5 | 6 | --- 7 | Makefile | 3 +++ 8 | 1 file changed, 3 insertions(+) 9 | 10 | diff --git a/Makefile b/Makefile 11 | index f32615e..5f85324 100644 12 | --- a/Makefile 13 | +++ b/Makefile 14 | @@ -2392,6 +2392,9 @@ all: modules 15 | modules: 16 | $(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KSRC) M=$(shell pwd) modules 17 | 18 | +modules_install: 19 | + $(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KSRC) M=$(shell pwd) modules_install 20 | + 21 | strip: 22 | $(CROSS_COMPILE)strip $(MODULE_NAME).ko --strip-unneeded 23 | 24 | -------------------------------------------------------------------------------- /recipes-bsp/drivers/rtl8821au.bb: -------------------------------------------------------------------------------- 1 | SUMMARY = "Linux driver for RTL8811AU and RTL8821AU chipsets" 2 | LICENSE = "GPL-2.0-only" 3 | LIC_FILES_CHKSUM = "file://LICENSE;md5=ab842b299d0a92fb908d6eb122cd6de9" 4 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" 5 | 6 | inherit module 7 | 8 | SRC_URI = " \ 9 | git://github.com/morrownr/8821au-20210708.git;protocol=https;branch=main \ 10 | file://0001-Use-modules_install-as-wanted-by-yocto.patch \ 11 | " 12 | 13 | SRCREV = "a133274b0532c17318e8790b771566f4a6b12b7c" 14 | PV = "5.12.5.2-git" 15 | 16 | S = "${WORKDIR}/git" 17 | 18 | EXTRA_OEMAKE:append = " KSRC=${STAGING_KERNEL_DIR}" 19 | -------------------------------------------------------------------------------- /recipes-bsp/drivers/rtl8821au/0001-Use-modules_install-as-wanted-by-yocto.patch: -------------------------------------------------------------------------------- 1 | From 30836d3579b3536ce174082f451acf7fea638a8d Mon Sep 17 00:00:00 2001 2 | From: Andrei Gherzan 3 | Date: Mon, 1 Aug 2016 23:51:45 +0200 4 | Subject: [PATCH] Use modules_install as wanted by yocto 5 | 6 | Upstream-Status: Pending 7 | 8 | Signed-off-by: Andrei Gherzan 9 | --- 10 | Makefile | 3 +++ 11 | 1 file changed, 3 insertions(+) 12 | 13 | diff --git a/Makefile b/Makefile 14 | index 70c609a..b5ecf55 100644 15 | --- a/Makefile 16 | +++ b/Makefile 17 | @@ -1051,6 +1051,9 @@ all: modules 18 | modules: 19 | $(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KSRC) M=$(shell pwd) modules 20 | 21 | +modules_install: 22 | + $(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KSRC) M=$(shell pwd) modules_install 23 | + 24 | strip: 25 | $(CROSS_COMPILE)strip $(MODULE_NAME).ko --strip-unneeded 26 | 27 | -- 28 | 2.1.4 29 | -------------------------------------------------------------------------------- /recipes-bsp/drivers/rtl8821cu.bb: -------------------------------------------------------------------------------- 1 | SUMMARY = "RTL8821CU kernel driver (wifi)" 2 | DESCRIPTION = "RTL8821CU kernel driver" 3 | LICENSE = "GPL-2.0-only" 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=ab842b299d0a92fb908d6eb122cd6de9" 5 | 6 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" 7 | SRCREV = "96c65c58b544241178638e810b333dcc9aa26b91" 8 | SRC_URI = " \ 9 | git://github.com/morrownr/8821cu-20210916;protocol=https;branch=main \ 10 | file://0001-use-modules_install-as-wanted-by-yocto.patch \ 11 | " 12 | PV = "5.12.0.4-git" 13 | 14 | inherit module 15 | S = "${WORKDIR}/git" 16 | EXTRA_OEMAKE:append = " KSRC=${STAGING_KERNEL_DIR}" 17 | -------------------------------------------------------------------------------- /recipes-bsp/drivers/rtl8821cu/0001-use-modules_install-as-wanted-by-yocto.patch: -------------------------------------------------------------------------------- 1 | From 30836d3579b3536ce174082f451acf7fea638a8d Mon Sep 17 00:00:00 2001 2 | From: Andrei Gherzan 3 | Date: Mon, 1 Aug 2016 23:51:45 +0200 4 | Subject: [PATCH] Use modules_install as wanted by yocto 5 | 6 | Upstream-Status: Pending 7 | 8 | Signed-off-by: Andrei Gherzan 9 | --- 10 | Makefile | 3 +++ 11 | 1 file changed, 3 insertions(+) 12 | 13 | diff --git a/Makefile b/Makefile 14 | index 70c609a..b5ecf55 100644 15 | --- a/Makefile 16 | +++ b/Makefile 17 | @@ -1051,6 +1051,9 @@ all: modules 18 | modules: 19 | $(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KSRC) M=$(shell pwd) modules 20 | 21 | +modules_install: 22 | + $(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KSRC) M=$(shell pwd) modules_install 23 | + 24 | strip: 25 | $(CROSS_COMPILE)strip $(MODULE_NAME).ko --strip-unneeded 26 | 27 | -- 28 | 2.1.4 29 | -------------------------------------------------------------------------------- /recipes-bsp/drivers/rtl88x2bu.bb: -------------------------------------------------------------------------------- 1 | SUMMARY = "RTL88x2BU kernel driver (wifi)" 2 | DESCRIPTION = "RTL88x2BU kernel driver (like RTL8812BU)" 3 | LICENSE = "GPL-2.0-only" 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=ca671256c791bbbf7c985ca88dc89fc9" 5 | 6 | SRCREV = "9a04d2bb9d882c7f2708560774d7b96a70d83f4b" 7 | SRC_URI = " \ 8 | git://github.com/morrownr/88x2bu-20210702;protocol=https;branch=main \ 9 | file://0001-fix-makefile.patch \ 10 | " 11 | PV = "5.13.1-git" 12 | 13 | inherit module 14 | S = "${WORKDIR}/git" 15 | EXTRA_OEMAKE:append = " KSRC=${STAGING_KERNEL_DIR}" 16 | -------------------------------------------------------------------------------- /recipes-bsp/drivers/rtl88x2bu/0001-fix-makefile.patch: -------------------------------------------------------------------------------- 1 | diff --git a/Makefile b/Makefile 2 | index 1cd1c6a..af7bd00 100644 3 | --- a/Makefile 4 | +++ b/Makefile 5 | @@ -2502,6 +2502,9 @@ all: modules 6 | modules: 7 | $(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KSRC) M=$(shell pwd) modules 8 | 9 | +modules_install: 10 | + $(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KSRC) M=$(shell pwd) modules_install 11 | + 12 | strip: 13 | $(CROSS_COMPILE)strip $(MODULE_NAME).ko --strip-unneeded 14 | 15 | --------------------------------------------------------------------------------