在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 

 

 

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值