用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


中文 

按照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.
如何解决,求大神