I added it to /drivers/net/wireless/Realtek/rtlwifi, and modified the makefiles.
First, I renamed it as rtl8812au.
Then, In /drivers/net/wireless/Realtek/rtlwifi makefile, I add this: obj-$(CONFIG_88XXAU) += rtl8812au/, and in /drivers/net/wireless/Realtek/rtlwifi Kconfig, I add this :
config 88XXAU
tristate "Realtek RTL8812AU USB Wireless Network Adapter"
depends on USB
select RTLWIFI
select RTLWIFI_USB
help
This is the driver for Realtek RTL8812AU USB
Additionally, I did this: change export CONFIG_88XXAU = m to export CONFIG_88XXAU = y, and add ZYNQ support like this:
ifeq ($(CONFIG_PLATFORM_ADI_ZYNQ), y)
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
ARCH := arm
CROSS_COMPILE := arm-linux-gnueabihf-
KVER := 4.9.0
KSRC ?= /home/hjw/Downloads/linux-xlnk-xilink-v2017.4
endif
At last, I changed CONFIG_PLATFORM_I386_PC = y to CONFIG_PLATFORM_I386_PC = n, add this: CONFIG_PLATFORM_ADI_ZYNQ = y.
I just want to let it run in a ZYNQ board, but I met such problems when building the petalinux project.
I added it to /drivers/net/wireless/Realtek/rtlwifi, and modified the makefiles. First, I renamed it as rtl8812au. Then, In /drivers/net/wireless/Realtek/rtlwifi makefile, I add this: obj-$(CONFIG_88XXAU) += rtl8812au/, and in /drivers/net/wireless/Realtek/rtlwifi Kconfig, I add this : config 88XXAU tristate "Realtek RTL8812AU USB Wireless Network Adapter" depends on USB select RTLWIFI select RTLWIFI_USB help This is the driver for Realtek RTL8812AU USB Additionally, I did this: change export CONFIG_88XXAU = m to export CONFIG_88XXAU = y, and add ZYNQ support like this: ifeq ($(CONFIG_PLATFORM_ADI_ZYNQ), y) EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN ARCH := arm CROSS_COMPILE := arm-linux-gnueabihf-
KVER := 4.9.0 KSRC ?= /home/hjw/Downloads/linux-xlnk-xilink-v2017.4 endif At last, I changed CONFIG_PLATFORM_I386_PC = y to CONFIG_PLATFORM_I386_PC = n, add this: CONFIG_PLATFORM_ADI_ZYNQ = y. I just want to let it run in a ZYNQ board, but I met such problems when building the petalinux project.