[Seek Help] 8812BU无线网卡安装驱动问题
Tofloor
poster avatar
hzxssss
deepin
2021-08-01 00:16
Author

按照https://github.com/fastoe/RTL8812BU/

网页中的步骤操作,运行完

sudo dkms build -m rtl88x2bu -v ${VER}

出现:Kernel preparation unnecessary for this kernel.  Skipping...

 

Building module:

cleaning build area...

make -j8 KERNELRELEASE=5.10.36-amd64-desktop KVER=5.10.36-amd64-desktop src=/usr/src/rtl88x2bu-5.6.1...(bad exit status: 2)

Error! Bad return status for module build on kernel: 5.10.36-amd64-desktop (x86_64)

Consult /var/lib/dkms/rtl88x2bu/5.6.1/build/make.log for more information.

如何解决,求大神

Reply Favorite View the author
All Replies
hzxssss
deepin
2021-08-01 00:38
#1

用make则出现:

make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.10.36-amd64-desktop/build M=/home/hzx/Desktop/RTL8812BU  modules

make[1]: 进入目录“/usr/src/linux-headers-5.10.36-amd64-desktop”

  CC [M]  /home/hzx/Desktop/RTL8812BU/core/rtw_cmd.o

In file included from /home/hzx/Desktop/RTL8812BU/include/drv_conf.h:17,

                 from /home/hzx/Desktop/RTL8812BU/include/drv_types.h:25,

                 from /home/hzx/Desktop/RTL8812BU/core/rtw_cmd.c:17:

/home/hzx/Desktop/RTL8812BU/include/autoconf.h:183: warning: "CONFIG_RTW_SW_LED" redefined

  #define CONFIG_RTW_SW_LED

 

: note: this is the location of the previous definition

In file included from /home/hzx/Desktop/RTL8812BU/include/drv_types.h:79,

                 from /home/hzx/Desktop/RTL8812BU/core/rtw_cmd.c:17:

/home/hzx/Desktop/RTL8812BU/include/rtw_security.h:257:8: error: redefinition of ‘struct sha256_state’

 struct sha256_state {

        ^~~~~~~~~~~~

In file included from ./include/linux/filter.h:24,

                 from ./include/net/sock.h:59,

                 from ./include/linux/tcp.h:19,

                 from ./include/linux/ipv6.h:87,

                 from ./include/net/addrconf.h:50,

                 from /home/hzx/Desktop/RTL8812BU/include/osdep_service_linux.h:48,

                 from /home/hzx/Desktop/RTL8812BU/include/osdep_service.h:50,

                 from /home/hzx/Desktop/RTL8812BU/include/drv_types.h:27,

                 from /home/hzx/Desktop/RTL8812BU/core/rtw_cmd.c:17:

./include/crypto/sha.h:84:8: note: originally defined here

 struct sha256_state {

        ^~~~~~~~~~~~

/home/hzx/Desktop/RTL8812BU/core/rtw_cmd.c:5748:1: fatal error: opening dependency file /home/hzx/Desktop/RTL8812BU/core/.rtw_cmd.o.d: 权限不够

 }

 ^

compilation terminated.

make[2]: *** [scripts/Makefile.build:279:/home/hzx/Desktop/RTL8812BU/core/rtw_cmd.o] 错误 1

make[1]: *** [Makefile:1821:/home/hzx/Desktop/RTL8812BU] 错误 2

make[1]: 离开目录“/usr/src/linux-headers-5.10.36-amd64-desktop”

make: *** [Makefile:2288:modules] 错误 2

 

Reply View the author
辉辉
deepin
2021-08-01 02:33
#2

一样无法使用,你是什么型号?我是comfast的cf-812AC

Reply View the author
from-mail_1xx-xxxx-007
deepin
2021-08-01 04:35
#3
Reply View the author
from-mail_1xx-xxxx-007
deepin
2021-08-01 04:42
#4
Reply View the author
木炼黎
deepin
2021-08-01 18:12
#5

其实DEEPIN内置了这个驱动的,你把驱动版本改一下就可以安上,我就是这么解决的

Reply View the author
hzxssss
deepin
2021-08-05 06:30
#6
木炼黎

其实DEEPIN内置了这个驱动的,你把驱动版本改一下就可以安上,我就是这么解决的

怎么改呢

Reply View the author
hzxssss
deepin
2021-08-05 06:30
#7
辉辉

一样无法使用,你是什么型号?我是comfast的cf-812AC

看楼下

Reply View the author