802.11n⽆线⽹卡驱动linux,Ubuntu⽆线⽹卡驱动安装教程Realtek 802.11ac(rtl8812au)
⽬的
My D-Link DWA-171 wireless dual-band 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
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 是 的官⽅来源,⽤于安装:
$ sudo -get install build-essential dkms
必须将驱动程序源复制到 /usr/src/8812au-4.2.2
ubuntu安装教程然后将其添加到 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
参考
发布评论