Realtek 802.11ac(rtl8812au)
这是 Realtek 802.11ac(rtl8812au)v4.2.2(7502.20130507)驱动程序的一个分支,改进后构建在 Linux 内核版本 >= 3.10 上。
目的
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.
Build
Makefile 已预先配置为处理大多数 x86 / PC 版本。如果您正在编译除 intel x86 架构之外的其他东西,则需要首先选择平台,例如对于 Raspberry Pi,您需要将 I386 设置为 n,将 ARM_RPI 设置为 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
加载模块后,应该可以使用名为Realtek 802.11n WLAN Adapter的无线网络接口。
After loading the module, a wireless network interface namedRealtek 802.11n WLAN Adaptershould be available.
安装
安装驱动程序只需将构建的模块复制到正确的位置并使用depmod方法更新模块依赖关系:
$ sudo cp 8812au.ko /lib/modules/$(uname -r)/kernel/drivers/net/wireless
$ sudo depmod
现在应该自动加载驱动程序模块。
DKMS
自动重建和安装内核更新。DKMS 是 Ubuntu 的官方来源,用于安装:
$ sudo apt-get install build-essential dkms
必须将驱动程序源复制到 /usr/src/8812au-4.2.2
然后将其添加到 DKMS:
$ sudo dkms add -m 8812au -v 4.2.2
$ sudo dkms build -m 8812au -v 4.2.2
$ sudo dkms install -m 8812au -v 4.2.2
检查:
$ sudo dkms status
在启动时自动加载:
$ echo 8812au | sudo tee -a /etc/modules
最终从 DKMS 中删除:
$ sudo dkms remove -m 8812au -v 4.2.2 --all
重启后无法接收 WiFi
https://www.helplib.com/ubuntu/article_158687i
参考