RTL8812AU/21AU and RTL8814AU drivers and linux driver

Product: RTL8812A USB Software Package - Linux Driver
Version: v5.2.20.2_28373.20180619

下载地址:
https://github.com/aircrack-ng/rtl8812au

Release History:

v5.2.20.2_28373.20180619

Update phydm to improve TP stability

RHEL8下相应的命令是:

# dnf install -y dkms kernel-devel-$(uname -r)
# systemctl enable dkms

下载下来的源码里有个文件“dkms-install.sh”,直接执行脚本,可是却出现了错误,修改一下脚本。

cp -r …/DRVDIR/usr/src/{DRV_DIR} /usr/src/DRVD​IR/usr/src/{DRV_NAME}-${DRV_VERSION}

直接文本打开文件“dkms-install.sh,找到这一句修改成下面的样式,
这样进入源码目录,再次运行./dkms-install.sh即可安装。

mkdir /usr/src/${DRV_NAME}-${DRV_VERSION}
cp -r . /usr/src/${DRV_NAME}-${DRV_VERSION}

RTL8812AU/21AU and RTL8814AU drivers

with monitor mode and frame injection

DKMS

This driver can be installed using [DKMS]. This is a system which will automatically recompile and install a kernel module when a new kernel gets installed or updated. To make use of DKMS, install the dkms package, which on Debian (based) systems is done like this:

sudo apt-get install dkms

Installation of Driver

In order to install the driver open a terminal in the directory with the source code and execute the following command:

sudo ./dkms-install.sh

Removal of Driver

In order to remove the driver from your system open a terminal in the directory with the source code and execute the following command:

sudo ./dkms-remove.sh

Make

For building & installing the driver with ‘make’ use

make
make install

Notes

Download

git clone -b v5.2.20 https://github.com/aircrack-ng/rtl8812au.git
cd rtl*

Package / Build dependencies (Kali)

sudo apt-get install build-essential
sudo apt-get install bc
sudo apt-get install libelf-dev
sudo apt-get install linux-headers-`uname -r`

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.
airmon-ng check kill

You may also uncheck the box “Automatically connect to this network when it is avaiable” in nm-connection-editor. This only works if you have a saved wifi connection.

  1. Set interface down
sudo ip link set wlan0 down
  1. Set monitor mode
sudo iw dev wlan0 set type monitor
  1. Set interface up
sudo ip link set wlan0 up

For setting TX power

sudo iw wlan0 set txpower fixed 3000

LED control

You can now control LED behaviour statically by Makefile, for example:

CONFIG_LED_ENABLE = n

value can be y or n

statically by module parameter in /etc/modprobe.d/8812au.conf or wherever, for example:

options 88XXau rtw_led_enable=0

value can be 0 or 1

or dynamically by writing to /proc/net/rtl8812au/$(your interface name)/led_enable, for example:

$ echo "0" > /proc/net/rtl8812au/$(your interface name)/led_enable

value can be 0 or 1

check current value:

$ cat /proc/net/rtl8812au/$(your interface name)/led_enable

NetworkManager

Newer versions of NetworkManager switches to random MAC address. Some users would prefer to use a fixed address.
Simply add these lines below

[device]
wifi.scan-rand-mac-address=no

at the end of file /etc/NetworkManager/NetworkManager.conf and restart NetworkManager with the command:

sudo service NetworkManager restart

RTL8812AU/21AU and RTL8814AU drivers and linux driver相关推荐

  1. Ambarella Ethernet PHY rtl9000 Linux driver 调试

    Ambarella Ethernet PHY rtl9000 Linux driver 调试 记录在ambarella CV22平台 调试rtl9000 phy驱动. rtl9000 工作原理 如图, ...

  2. Linux Driver教程PPT

    http://blog.csdn.net/jgw2008/article/details/52700662 国内外有很多大学的教学PPT都是公开,这一点十分有利于大家学习. 下面的链接,是来自 旧金山 ...

  3. Writing device drivers in Linux: A brief tutorial

    Writing device drivers in Linux: A brief tutorial FROM:http://www.freesoftwaremagazine.com/articles/ ...

  4. [中英对照]User-Space Device Drivers in Linux: A First Look | 初识Linux用户态设备驱动程序...

    如对Linux用户态驱动程序开发有兴趣,请阅读本文,否则请飘过. User-Space Device Drivers in Linux: A First Look | 初识Linux用户态设备驱动程序 ...

  5. linux编写gpio驱动程序,linux driver ------ GPIO的驱动编写和调用

    判断哪些文件被编译进内核: 1.通过 make menuconfig 查看 2.比如查看gpio类型的文件,输入 ls drivers/gpio/*.o,有生成.o文件表示被编译进内核 在编写驱动程序 ...

  6. Linux Driver 和Device匹配过程分析

    Linux Driver 和Device匹配过程分析 1,总线注册匹配过程 1.1 struct platform_driver 1.2 struct device_driver 1.3 PCIe总线 ...

  7. linux x86板级文件,Linux driver 板级文件跟踪一般方法

    /*********************************************************************************** * Linux driver ...

  8. linux driver开发

    1 开发linux driver时的调试思路 基本上是打印调试,原因很简单,方便.或者使用工具挂住cpu. 转载于:https://www.cnblogs.com/hustdc/p/7416383.h ...

  9. DM9006 linux driver

    DM9006 linux driver http://www.dacomwest.de/en/produktauswahl/davicom/23-switch-hub-controllers/232- ...

最新文章

  1. mysql的一主多从和双主浅析
  2. bzoj2720 [Violet 5]列队春游
  3. HDU4367(线段相交与斐波那契数列)
  4. 开源HTTP解析器---http-parser和fast-http
  5. 新手思考如何开发自己的软件
  6. 基于卡尔曼滤波器的回声消除算法
  7. 租住南山的互联网大厂人:年入70万,睡城中村单间
  8. 优秀数智生态伙伴|上海用诚软件廖晓军:以人才迭代推动云转型,实现专业化发展...
  9. 配置Eureka-client报EMERGENCY! EUREKA MAY BE INCORRECTLY CLAIMING INSTANCES ARE UP WHEN THEY'RE NOT...
  10. [随笔]魏晋风度与竹林七贤系列之二 嵇康任气有侠名
  11. 专有钉钉下载(windows、IOS、Android)地址
  12. ONVIF 视频对接,ODM无法显示NVT
  13. 傻瓜交换机带来的问题
  14. Ansys Zemax / Speos | 关于汽车投影灯解决方案
  15. 三自由度无人机飞手培训、PID调试、飞行教学、飞控算法验证、故障仿真平台
  16. Apache配置域名-绑定到指定项目目录
  17. WGS84转换为三大图商(百度、高德、腾讯)坐标,Gcj02转换为WGS84
  18. taLend入门_简单使用
  19. DBeaver 快捷键大全
  20. Zend Framework教程-Zend_Db-数据库概述

热门文章

  1. 为了保证页面输出安全,我们经常需要对一些特殊的字符进行转义,请写一个函数 escapeHtml,将<, >, , “进行转义
  2. librtmp h265 推流
  3. Elment ui中el-table 实现表格拖拽
  4. 了解模型预测控制2--什么是模型预测控制(MPC)
  5. Qt QTableWidget的使用方式
  6. 电路中滤波电容和退耦电容_去耦电路中,耦合电容容量越大越好吗?
  7. OpenGL-GLSL语言入门教程(1)
  8. Python for循环遍历字典(dict)的方法
  9. symbol(唯一)
  10. [图形学] 经典算法 - Kajiya三维纹理渲染毛发