成功安装deepin15.5外置无线网络驱动(rtl88xxau)
Tofloor
poster avatar
sigurd
deepin
2018-02-23 21:31
Author
本帖最后由 sigurd 于 2018-2-23 18:26 编辑

内置BCM43162无法驱动,只能选择USB外置无线网卡,于是选择了ac1620,支持linux内核版本到4.3.14,但我的deepin15.5内核版本较高,于是退回到了4.3.0,但还是编译失败,我本以为是make版本过高导致的,于是又将make降级到3.81,但还是无法编译,而生产商又不提供linux的技术支持,我现在不知道接下来应该做什么,下面是install.sh的输出信息,似乎有很多错误导致无法编译。
-------------------------------分割线-----------------------------------------
折腾了一整天,发现驱动的安装实际上和指定内核版本没什么多大的关系,只是碰巧ac1620的开发者只开发到4.3.14版本就不更新了,在费劲编译安装好4.3.14的时候,发现该不能用还是不能用
而后直接去搜索rtl8811au的驱动,发现在github上有已经改好的版本
https://github.com/gnab/rtl8812au
这个直接make安装然后载入模块
把网卡插上去闪一闪就可以使用了,我也不知道该驱动都支持什么版本的芯片,但至少rtl8811au 8812au是没有问题的
Reply Favorite View the author
All Replies
avatar
li2966068
deepin
2018-06-23 20:04
#1
你好,我的也是8812AU芯片,也是从github上下载的驱动,编译的时候出现错误,您能帮忙看一下吗?
提示如下:
~/Downloads/rtl8812au-master$ make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.15.0-21deepin-generic/build M=/home/ljj/Downloads/rtl8812au-master  modules
make[1]: Entering directory '/usr/src/linux-headers-4.15.0-21deepin-generic'
Makefile:976: "Cannot use CONFIG_STACK_VALIDATION=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel"
  CC [M]  /home/ljj/Downloads/rtl8812au-master/core/rtw_cmd.o
In file included from /home/ljj/Downloads/rtl8812au-master/include/osdep_service.h:41:0,
                 from /home/ljj/Downloads/rtl8812au-master/include/drv_types.h:32,
                 from /home/ljj/Downloads/rtl8812au-master/core/rtw_cmd.c:22:
/home/ljj/Downloads/rtl8812au-master/include/osdep_service_linux.h: In function ‘_init_timer’:
/home/ljj/Downloads/rtl8812au-master/include/osdep_service_linux.h:257:8: error: ‘_timer {aka struct timer_list}’ has no member named ‘data’
  ptimer->data = (unsigned long)cntx;
        ^~
/home/ljj/Downloads/rtl8812au-master/include/osdep_service_linux.h:258:2: error: implicit declaration of function ‘init_timer’; did you mean ‘_init_timer’? [-Werror=implicit-function-declaration]
  init_timer(ptimer);
  ^~~~~~~~~~
  _init_timer
cc1: some warnings being treated as errors
scripts/Makefile.build:332: recipe for target '/home/ljj/Downloads/rtl8812au-master/core/rtw_cmd.o' failed
make[2]: *** [/home/ljj/Downloads/rtl8812au-master/core/rtw_cmd.o] Error 1
Makefile:1552: recipe for target '_module_/home/ljj/Downloads/rtl8812au-master' failed
make[1]: *** [_module_/home/ljj/Downloads/rtl8812au-master] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-21deepin-generic'
Makefile:1052: recipe for target 'modules' failed
make: *** [modules] Error 2
Reply View the author
avatar
Dracarys
deepin
2018-06-23 20:16
#2
本帖最后由 gaoyanglion 于 2018-6-23 12:17 编辑
  1. Makefile:976: "Cannot use CONFIG_STACK_VALIDATION=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel"
Copy the Code


安装一下 libelf-dev, libelf-devel or elfutils-libelf-devel 试试 ?别的错误看不懂
Reply View the author
avatar
sunooiuvooiuv
deepin
2018-09-09 19:02
#3
本帖最后由 sunooiuvooiuv 于 2018-9-9 11:03 编辑

  CC      /home/dxg/Downloads/rtl8812au-master/8812au.mod.o
  LD [M]  /home/dxg/Downloads/rtl8812au-master/8812au.ko
make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-21deepin-generic'
dxg@dxg-PC:~/Downloads/rtl8812au-master$ sudo make install
[sudo] dxg 的密码:
install -p -m 644 8812au.ko  /lib/modules/4.15.0-21deepin-generic/kernel/drivers/net/wireless/
/sbin/depmod -a 4.15.0-21deepin-generic
dxg@dxg-PC:~/Downloads/rtl8812au-master$


然后 拔了再插。。网卡没反应。。是不是少执行了一步命令
Reply View the author