在ubuntu18.04 /树莓派编译安装 edimax7811(rtl8812) 的驱动

 

$ sudo apt update

$ sudo apt upgrade

$ sudo reboot

-----------------------------------------------------------------------------------------------------------

For general PC:

$ sudo apt install linux-headers-$(uname -r)

$ sudo apt install build-essential dkms git

 

For RPI4/RPI3:

$ sudo apt install raspberrypi-kernel-headers

$ ls /lib/modules/$(uname -r)

You should be able to see a build/ folder with the 2nd command above.  If you don't see it, something is wrong.  You need to check the installation one more time.  Here's an example.

 

 

 

$ git clone https://github.com/aircrack-ng/rtl8812au.git

$ cd rtl8812au/

------------------------------------------------------------------------------------------

For RPI4/RPI3:

$ nano Makefile
[ Note:  nano is my Text Editor of choice.  You can use any one you preferred like vi.]

-- Change the following lines:

Line #110 — CONFIG_PLATFORM_I386_PC from y to n
Line #158 — CONFIG_PLATFORM_ARM_RPI from n to y

-- Save the file

---------------------------------------------------------------------------------------------

$ make

$ sudo make install

$ sudo reboot

 

How to uninstall driver?

$ cd rtl8812au/

$ sudo make uninstall

$ make clean

$ sudo reboot

 

How about RPI?

Please help read  belllow link for reference.

https://github.com/aircrack-ng/rtl8812au

 

另外 如果信号不好,或者5g连不上,那么要查看7811的硬件特性和路由器是否匹配

sudo iw dev   or  sudo iw phy

 

查看哪个5g频段的收发能力最好(dbm最高),然后设置下路由器。

 

ps:Linux执行.sh文件,提示No such file or directory的问题

vim 打开该sh文件

输入:
:set ff  
回车,显示fileformat=dos,重新设置下文件格式:
:set ff=unix  
:wq 

 

 

你可能感兴趣的:(Embeded,linux)