I've been struggling to get this to work for a couple of days now and I still do.
lsusb gives:
Code:
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 046a:b103 Cherry GmbH
Bus 001 Device 002: ID 0bda:c811 Realtek Semiconductor Corp.
Bus 001 Device 004: ID 046a:0023 Cherry GmbH CyMotion Master Linux Keyboard G230
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
So the device is found.
I'm using Linux Mint 19.1 so I apologize if this is the wrong forum. I tried different kernels versions: 5.2.5-050205-generic (x86_64) and 4.20.17-042017-generic (x86_64)
Everything mentioned works except
Code:
sudo dkms build -m ${DRV_NAME} -v ${DRV_VERSION}
.
I get
Code:
Kernel preparation unnecessary for this kernel. Skipping...
Building module:
cleaning build area...
'make' KVER=4.20.17-042017-generic..........(bad exit status: 2)
ERROR (dkms apport): binary package for rtl8821CU: 5.2.5.3 not found
Error! Bad return status for module build on kernel: 4.20.17-042017-generic (x86_64)
Consult /var/lib/dkms/rtl8821CU/5.2.5.3/build/make.log for more information.
as the output (same output on both versions except the kernel version listed).
In the make.log file it says
Code:
cc1: some warnings being treated as errors
scripts/Makefile.build:291: recipe for target '/var/lib/dkms/rtl8821CU/5.2.5.3/build/os_dep/linux/ioctl_cfg80211.o' failed
make[2]: *** [/var/lib/dkms/rtl8821CU/5.2.5.3/build/os_dep/linux/ioctl_cfg80211.o] Error 1
Makefile:1562: recipe for target '_module_/var/lib/dkms/rtl8821CU/5.2.5.3/build' failed
make[1]: *** [_module_/var/lib/dkms/rtl8821CU/5.2.5.3/build] Error 2
make[1]: Verzeichnis „/usr/src/linux-headers-4.20.17-042017-generic“ wird verlassen
Makefile:1923: recipe for target 'modules' failed
make: *** [modules] Error 2
in addition to a lot of -Werrors.
Any idea?
Bookmarks