diff --git a/Makefile b/Makefile index 2e3841e..5bfa307 100755 --- a/Makefile +++ b/Makefile @@ -116,6 +116,7 @@ CONFIG_MP_VHT_HW_TX_MODE = y ###################### Platform Related ####################### CONFIG_PLATFORM_I386_PC = y 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 @@ -1086,6 +1087,17 @@ MODDESTDIR := /lib/modules/$(KVER)/kernel/drivers/net/wireless/ INSTALL_PREFIX := endif +ifeq ($(CONFIG_PLATFORM_ARM64_RPI), y) +EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN +EXTRA_CFLAGS += -DCONFIG_IOCTL_CFG80211 -DRTW_USE_CFG80211_STA_EVENT +ARCH ?= arm64 +CROSS_COMPILE ?= +KVER ?= $(shell uname -r) +KSRC := /lib/modules/$(KVER)/build +MODDESTDIR := /lib/modules/$(KVER)/kernel/drivers/net/wireless/ +INSTALL_PREFIX := +endif + ifeq ($(CONFIG_PLATFORM_NV_TK1), y) EXTRA_CFLAGS += -DCONFIG_PLATFORM_NV_TK1 EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN @@ -1109,6 +1121,17 @@ KSRC :=/mnt/newdisk/android_sdk/nvidia_tk1/android_L/out/target/product/shieldta MODULE_NAME = wlan endif +ifeq ($(CONFIG_PLATFORM_ARM64), y) +ARCH := arm64 +EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN +EXTRA_CFLAGS += -DCONFIG_IOCTL_CFG80211 -DRTW_USE_CFG80211_STA_EVENT +CROSS_COMPILE := aarch64-linux-gnu- +KVER ?= $(shell uname -r) +KSRC := /lib/modules/$(KVER)/build +MODDESTDIR := /lib/modules/$(KVER)/kernel/drivers/net/wireless/ +INSTALL_PREFIX := +endif + ifeq ($(CONFIG_PLATFORM_ACTIONS_ATM702X), y) EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN -DCONFIG_PLATFORM_ANDROID -DCONFIG_PLATFORM_ACTIONS_ATM702X #ARCH := arm diff --git a/README.md b/README.md index 2582974..3429b65 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,13 @@ For Raspberry (RPI) ``` sudo apt-get install raspberrypi-kernel-headers ``` + +or, on Raspberry Pi 3 Model B+ +``` +CONFIG_PLATFORM_I386_PC = n +CONFIG_PLATFORM_ARM64_RPI = y +``` + For setting monitor mode 1. Fix problematic interference in monitor mode. ``` diff --git a/dkms.conf b/dkms.conf index d4a64b2..281f073 100644 --- a/dkms.conf +++ b/dkms.conf @@ -1,5 +1,5 @@ PACKAGE_NAME="realtek-rtl88xxau" -PACKAGE_VERSION="5.2.20.2~20181107" +PACKAGE_VERSION="5.2.20.2~20181213" CLEAN="'make' clean" BUILT_MODULE_NAME[0]=88XXau PROCS_NUM=`nproc`