Error! install the network card driver( netcore NW392 rtl8812AU)

lyddragon

Member
Jan 3, 2017
13
0
6
44
OS: PVE 6.1-7
$ uname -a
Linux dragon 5.3.18-2-pve #1 SMP PVE 5.3.18-2 (Sat, 15 Feb 2020 15:11:52 +0100) x86_64 GNU/Linux

$ cat /etc/debian_version
10.3

$ DRV_NAME=rtl8812AU
$ DRV_VERSION=5.6.4
$ mkdir /usr/src/${DRV_NAME}-${DRV_VERSION}

$ wget http://download.proxmox.wiki/debian...4/pve-headers-5.3.18-2-pve_5.3.18-2_amd64.deb

$ dpkg -i pve-headers-5.3.18-2-pve_5.3.18-2_amd64.deb

$ dkms build -m ${DRV_NAME} -v ${DRV_VERSION} --kernelsourcedir /usr/src/linux-headers-5.3.18-2-pve

Preparing kernel 5.3.18-2-pve for module build:
(This is not compiling a kernel, just preparing kernel symbols)
Storing current .config to be restored when complete
Running Generic preparation routine
make mrproper...(bad exit status: 2)
Warning: using /usr/src/linux-headers-5.3.18-2-pve/.config
(I hope this is the correct config for this kernel)
make oldconfig...(bad exit status: 2)
make prepare-all...(bad exit status: 2)
Building module:
cleaning build area...
'make' KVER=5.3.18-2-pve...(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.3.18-2-pve (x86_64)
Consult /var/lib/dkms/rtl8812AU/5.6.4/build/make.log for more information.
root@dragon:/usr/src/rtl8812AU-5.6.4# less /var/lib/dkms/rtl8812AU/5.6.4/build/make.log
root@dragon:/usr/src/rtl8812AU-5.6.4# cat /var/lib/dkms/rtl8812AU/5.6.4/build/make.log
DKMS make.log for rtl8812AU-5.6.4 for kernel 5.3.18-2-pve (x86_64)
Tue 02 Jun 2020 10:30:47 PM CST
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.3.18-2-pve/build M=/var/lib/dkms/rtl8812AU/5.6.4/build modules
make[1]: Entering directory '/usr/lib/modules/5.3.18-2-pve/build'
make[1]: *** No rule to make target 'modules'. Stop.
make[1]: Leaving directory '/usr/lib/modules/5.3.18-2-pve/build'
make: *** [Makefile:2289: modules] Error 2
$ cat /var/lib/dkms/rtl8812AU/5.6.4/build/make.log

DKMS make.log for rtl8812AU-5.6.4 for kernel 5.3.18-2-pve (x86_64)
Tue 02 Jun 2020 10:30:47 PM CST
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.3.18-2-pve/build M=/var/lib/dkms/rtl8812AU/5.6.4/build modules
make[1]: Entering directory '/usr/lib/modules/5.3.18-2-pve/build'
make[1]: *** No rule to make target 'modules'. Stop.
make[1]: Leaving directory '/usr/lib/modules/5.3.18-2-pve/build'
make: *** [Makefile:2289: modules] Error 2
 
Maybe this helps. And best use the latest pve-kernel version.
https://github.com/gnab/rtl8812au
$ dkms build -m 8812au -v 4.2.3 --kernelsourcedir /usr/src/linux-headers-5.4.44-2-pve/

Preparing kernel 5.4.44-2-pve for module build:
(This is not compiling a kernel, just preparing kernel symbols)
Storing current .config to be restored when complete
Running Generic preparation routine
make mrproper...(bad exit status: 2)
Warning: using /usr/src/linux-headers-5.4.44-2-pve//.config
(I hope this is the correct config for this kernel)
make oldconfig...(bad exit status: 2)
make prepare-all...(bad exit status: 2)

Building module:
cleaning build area...
'make' all KVER=5.4.44-2-pve...(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.4.44-2-pve (x86_64)
Consult /var/lib/dkms/8812au/4.2.3/build/make.log for more information.

$ cat /var/lib/dkms/8812au/4.2.3/build/make.log
DKMS make.log for 8812au-4.2.3 for kernel 5.4.44-2-pve (x86_64)
Sat 08 Aug 2020 11:07:50 PM CST
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.4.44-2-pve/build M=/var/lib/dkms/8812au/4.2.3/build modules
make[1]: Entering directory '/usr/lib/modules/5.4.44-2-pve/build'
make[1]: *** No rule to make target 'modules'. Stop.
make[1]: Leaving directory '/usr/lib/modules/5.4.44-2-pve/build'
make: *** [Makefile:1068: modules] Error 2

$ make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.4.44-2-pve/build M=/usr/src/8812au-4.2.3 modules
make[1]: Entering directory '/usr/lib/modules/5.4.44-2-pve/build'
make[1]: *** No rule to make target 'modules'. Stop.
make[1]: Leaving directory '/usr/lib/modules/5.4.44-2-pve/build'
make: *** [Makefile:1068: modules] Error 2