Go to file
Ole Petter Bang 4fa0ce3ef9
Merge pull request #249 from andriytk/fix-build-on-5.15
Fix build on Ubuntu 22.04 / 5.15 kernel
2022-08-09 06:56:27 +02:00
core Fix build on Ubuntu 22.04 / 5.15 kernel 2022-07-03 17:53:09 +01:00
debian Add debian directory,support for building debian package 2021-06-10 13:58:41 +08:00
hal [Fixed simple compiler waring] 2018-12-12 06:11:25 -05:00
include Merge pull request #247 from fsantini/fix_kernel_5.18 2022-07-28 09:13:29 +02:00
os_dep remove unused mm_segment_t references; change definition of is_*_mac_addr 2022-06-13 17:40:15 +02:00
project Test files for WiFi driver fork 2019-10-08 09:44:35 +02:00
.gitignore 🙈 Add .8812au.mod.cmd to ignore list 2020-12-26 22:40:41 -03:00
dkms.conf Minor pkg version typo 2020-04-18 21:49:28 -04:00
ifcfg-wlan0 Add existing files. 2013-11-19 21:24:49 +01:00
install.sh Replaced insmod, which doesn't load depedencies, with modprobe, which does 2021-12-10 19:13:20 -05:00
Kconfig Add existing files. 2013-11-19 21:24:49 +01:00
Makefile Added raspberry x64 arch 2022-08-08 23:39:46 +04:00
module.clean Add debian directory,support for building debian package 2021-06-10 13:58:41 +08:00
README.md Updated README with new DKMS installation/removal. 2020-09-27 14:41:49 +02:00
repoTest1.js Test files for WiFi driver fork 2019-10-08 09:44:35 +02:00
repoTest2.htm Test files for WiFi driver fork 2019-10-08 09:44:35 +02:00
runwpa Fixed to work with kernel versions 5.0.x 2019-03-17 05:22:44 -04:00
wlan0dhcp Add existing files. 2013-11-19 21:24:49 +01:00

Changes

2019-07-11: Updated to compile against kernel 5.2

Realtek 802.11ac (rtl8812au)

This is a fork of the Realtek 802.11ac (rtl8812au) v4.2.2 (7502.20130507) driver altered to build on Linux kernel version >= 3.10.

Purpose

My D-Link DWA-171 wireless dual-band USB adapter needs the Realtek 8812au driver to work under Linux.

The current rtl8812au version (per nov. 20th 2013) doesn't compile on Linux kernels >= 3.10 due to a change in the proc entry API, specifically the deprecation of the create_proc_entry() and create_proc_read_entry() functions in favor of the new proc_create() function.

Building

The Makefile is preconfigured to handle most x86/PC versions. If you are compiling for something other than an intel x86 architecture, you need to first select the platform, e.g. for the Raspberry Pi, you need to set the I386 to n and the ARM_RPI to y:

...
CONFIG_PLATFORM_I386_PC = n
...
CONFIG_PLATFORM_ARM_RPI = y

There are many other platforms supported and some other advanced options, e.g. PCI instead of USB, but most won't be needed.

The driver is built by running make, and can be tested by loading the built module using insmod:

$ make
$ sudo insmod 8812au.ko

After loading the module, a wireless network interface named Realtek 802.11n WLAN Adapter should be available.

Installing

Installing the driver is simply a matter of copying the built module into the correct location and updating module dependencies using depmod:

$ sudo cp 8812au.ko /lib/modules/$(uname -r)/kernel/drivers/net/wireless
$ sudo depmod

The driver module should now be loaded automatically.

DKMS

Automatically rebuilds and installs on kernel updates. DKMS is in official sources of Ubuntu, for installation do:

$ sudo apt-get install build-essential dkms 

Install the driver to DKMS with:

sudo make dkms_install

Automatically load at boot:

$ echo 8812au | sudo tee -a /etc/modules

Eventually remove from DKMS with:

$ sudo make dkms_remove

References