li2966068
deepin
2018-06-23 20:04 你好,我的也是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
提示如下:
~/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 Like 0 View the author


中文 

内置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是没有问题的