-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for rtl8821cu WiFi Dongle (#1899)
* Add rtl8821cu driver * buildroot ee56159464...666868435d (1): > Merge pull request #2 from s-ol/fix-usb_modeswitch-systemd * Add rtl8821cu support to all boards Signed-off-by: s-ol <[email protected]> Co-authored-by: Stefan Agner <[email protected]>
- Loading branch information
Showing
17 changed files
with
60 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
buildroot-external/package/rtl8821cu/0001-allow-arm-i386-external-control.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Makefile: expose platform variables | ||
|
||
Signed-off-by: s-ol <[email protected]> | ||
|
||
diff --git a/Makefile b/Makefile | ||
index 22bd0e0..72321a4 100755 | ||
--- a/Makefile | ||
+++ b/Makefile | ||
@@ -96,9 +96,9 @@ | ||
###################### MP HW TX MODE FOR VHT ####################### | ||
CONFIG_MP_VHT_HW_TX_MODE = n | ||
###################### Platform Related ####################### | ||
-CONFIG_PLATFORM_I386_PC = y | ||
-CONFIG_PLATFORM_ARM_RPI = n | ||
-CONFIG_PLATFORM_ARM64_RPI = n | ||
+CONFIG_PLATFORM_I386_PC ?= n | ||
+CONFIG_PLATFORM_ARM_RPI ?= n | ||
+CONFIG_PLATFORM_ARM64_RPI ?= n | ||
CONFIG_PLATFORM_ANDROID_X86 = n | ||
CONFIG_PLATFORM_ANDROID_INTEL_X86 = n | ||
CONFIG_PLATFORM_JB_X86 = n |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
config BR2_PACKAGE_RTL8821CU | ||
tristate "Realtek 8821cu USB WiFi" | ||
depends on BR2_LINUX_KERNEL | ||
---help--- | ||
Driver for RTL8821CU USB WiFi adapters (no firmware needed). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
RTL8821CU_VERSION = 8c2226a74ae718439d56248bd2e44ccf717086d5 | ||
RTL8821CU_SITE = $(call github,brektrou,rtl8821CU,$(RTL8821CU_VERSION)) | ||
RTL8821CU_LICENSE = GPL-2.0 | ||
RTL8821CU_LICENSE_FILES = LICENSE | ||
|
||
RTL8821CU_MODULE_MAKE_OPTS = \ | ||
CONFIG_RTL8821CU=m \ | ||
KVER=$(LINUX_VERSION_PROBED) \ | ||
KBASE=$(LINUX_DIR) \ | ||
CROSS_COMPILE=$(TARGET_CROSS) | ||
|
||
ifeq (arm, $(filter arm, $(KERNEL_ARCH))) | ||
RTL8821CU_MODULE_MAKE_OPTS += CONFIG_PLATFORM_ARM_RPI=y | ||
RTL8821CU_MODULE_MAKE_OPTS += CONFIG_PLATFORM_ARM64_RPI=y | ||
else | ||
RTL8821CU_MODULE_MAKE_OPTS += CONFIG_PLATFORM_I386_PC=y | ||
endif | ||
|
||
$(eval $(kernel-module)) | ||
$(eval $(generic-package)) |