Skip to content

Commit

Permalink
add 8812eu support
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelscholle committed Aug 22, 2024
1 parent 8a81f09 commit 0271d39
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
7 changes: 6 additions & 1 deletion scripts/patches/openhd_utils.patch
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ diff --git a/lib/utils.sh b/lib/utils.sh
index bdb1bcd..2b5dd86 100644
--- a/lib/utils.sh
+++ b/lib/utils.sh
@@ -199,6 +199,36 @@ prepare_source() {
@@ -199,6 +199,41 @@ prepare_source() {
git reset --hard FETCH_HEAD
git clean -ffd
git switch --detach $origin/$BSP_BRANCH
Expand All @@ -20,6 +20,7 @@ index bdb1bcd..2b5dd86 100644
+ rm -Rf rtl88x2bu
+ git clone https://github.com/openhd/rtl8812au/
+ git clone https://github.com/openhd/rtl88x2bu/
+ git clone https://github.com/openhd/rtl88x2eu/
+ git clone https://github.com/openhd/rtl88x2bu/ -b initial52-1 rtl8852bu
+ cd rtl8812au
+ sed -i 's/CONFIG_PLATFORM_I386_PC = y/CONFIG_PLATFORM_I386_PC = n/' Makefile
Expand All @@ -29,6 +30,10 @@ index bdb1bcd..2b5dd86 100644
+ sed -i 's/CONFIG_PLATFORM_I386_PC = y/CONFIG_PLATFORM_I386_PC = n/' Makefile
+ sed -i 's/CONFIG_PLATFORM_ARM64_RPI = n/CONFIG_PLATFORM_ARM64_RPI = y/' Makefile
+ cd ..
+ cd rtl88x2eu
+ sed -i 's/CONFIG_PLATFORM_I386_PC = y/CONFIG_PLATFORM_I386_PC = n/' Makefile
+ sed -i 's/CONFIG_PLATFORM_ARM64_RPI = n/CONFIG_PLATFORM_ARM64_RPI = y/' Makefile
+ cd ..
+ cd rtl8852bu
+ sed -i 's/aarch64\.l/arm64/' Makefile
+ cd ../../../../
Expand Down
9 changes: 6 additions & 3 deletions scripts/patches/openhd_wifi.patch
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,27 @@ diff --git a/drivers/net/wireless/Kconfig b/drivers/net/wireless/Kconfig
index 46f5cc40788a..c00af2f6ac00 100644
--- a/drivers/net/wireless/Kconfig
+++ b/drivers/net/wireless/Kconfig
@@ -49,6 +49,8 @@ source "drivers/net/wireless/ti/Kconfig"
@@ -49,6 +49,9 @@ source "drivers/net/wireless/ti/Kconfig"
source "drivers/net/wireless/zydas/Kconfig"
source "drivers/net/wireless/quantenna/Kconfig"
source "drivers/net/wireless/rockchip_wlan/Kconfig"
+source "drivers/net/wireless/rtl8812au/Kconfig"
+source "drivers/net/wireless/rtl88x2bu/Kconfig"
+source "drivers/net/wireless/rtl88x2eu/Kconfig"

config PCMCIA_RAYCS
tristate "Aviator/Raytheon 2.4GHz wireless support"
diff --git a/drivers/net/wireless/Makefile b/drivers/net/wireless/Makefile
index 5671364ae98d..bff5de684f50 100644
--- a/drivers/net/wireless/Makefile
+++ b/drivers/net/wireless/Makefile
@@ -31,3 +31,5 @@ obj-$(CONFIG_MAC80211_HWSIM) += mac80211_hwsim.o
@@ -31,3 +31,6 @@ obj-$(CONFIG_MAC80211_HWSIM) += mac80211_hwsim.o

obj-$(CONFIG_VIRT_WIFI) += virt_wifi.o
obj-$(CONFIG_WL_ROCKCHIP) += rockchip_wlan/
+obj-m += rtl8812au/
+obj-m += rtl88x2bu/
+obj-m += rtl88x2eu/
diff --git a/drivers/net/wireless/realtek/Kconfig b/drivers/net/wireless/realtek/Kconfig
index 474843277fa1..d8dbd0596395 100644
--- a/drivers/net/wireless/realtek/Kconfig
Expand Down Expand Up @@ -55,12 +57,13 @@ diff --git a/arch/arm64/configs/rockchip_linux_defconfig b/arch/arm64/configs/ro
index a792f479958a..7c7d54ea5907 100644
--- a/arch/arm64/configs/rockchip_linux_defconfig
+++ b/arch/arm64/configs/rockchip_linux_defconfig
@@ -690,6 +690,8 @@ CONFIG_WIFI_BUILD_MODULE=y
@@ -690,6 +690,9 @@ CONFIG_WIFI_BUILD_MODULE=y
CONFIG_AP6XXX=m
CONFIG_RTL8852BE=m
CONFIG_RTL8852BU=m
+CONFIG_RTL8812AU=m
+CONFIG_RTL8822BU=m
+CONFIG_RTL8822EU=m
CONFIG_USB_NET_RNDIS_WLAN=y
# CONFIG_IEEE802154_DRIVERS is not set
CONFIG_LTE=y

0 comments on commit 0271d39

Please sign in to comment.