garethhards
New Member
pi@raspberrypi:~ $ uname -r
5.10.11-v7l+
pi@raspberrypi:~/usbwifi/rtl8821CU $ sudo apt-get install dkms
Reading package lists... Done
Building dependency tree
Reading state information... Done
dkms is already the newest version (2.6.1-4).
The following packages were automatically installed and are no longer required:
gconf-service gconf2-common libexiv2-14 libgconf-2-4 libgfortran3
libgmime-2.6-0 libncurses5 libssl1.0.2 rpi-eeprom-images uuid-dev
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
pi@raspberrypi:~/usbwifi/rtl8821CU $ DRV_NAME=rtl8821CU
pi@raspberrypi:~/usbwifi/rtl8821CU $ DRV_VERSION=5.2.5.3
pi@raspberrypi:~/usbwifi/rtl8821CU $ sudo mkdir /usr/src/${DRV_NAME}-${DRV_VERSION}
mkdir: cannot create directory ‘/usr/src/rtl8821CU-5.2.5.3’: File exists
pi@raspberrypi:~/usbwifi/rtl8821CU $ git archive master | sudo tar -x -C /usr/src/${DRV_NAME}-${DRV_VERSION}
pi@raspberrypi:~/usbwifi/rtl8821CU $ sudo dkms add -m ${DRV_NAME} -v ${DRV_VERSION}
Creating symlink /var/lib/dkms/rtl8821CU/5.2.5.3/source ->
/usr/src/rtl8821CU-5.2.5.3
DKMS: add completed.
pi@raspberrypi:~/usbwifi/rtl8821CU $ sudo dkms build -m ${DRV_NAME} -v ${DRV_VERSION}
Error! echo
Your kernel headers for kernel 5.10.11-v7l+ cannot be found at
pi@raspberrypi:~/usbwifi/rtl8821CU $ sudo dkms install -m ${DRV_NAME} -v ${DRV_VERSION}
Error! echo
Your kernel headers for kernel 5.10.11-v7l+ cannot be found at
/lib/modules/5.10.11-v7l+/build or /lib/modules/5.10.11-v7l+/source.
pi@raspberrypi:~/usbwifi/rtl8821CU $ sudo dkms build -m ${DRV_NAME} -v ${DRV_VERSION}
Error! echo
Your kernel headers for kernel 5.10.11-v7l+ cannot be found at
/lib/modules/5.10.11-v7l+/build or /lib/modules/5.10.11-v7l+/source.
pi@raspberrypi:~/usbwifi/rtl8821CU $ sudo apt update
Hit:1 https://deb.nodesource.com/node_12.x buster InRelease
Hit:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
Hit:3 http://archive.raspberrypi.org/debian buster InRelease
Get:4 http://packages.microsoft.com/repos/code stable InRelease [10.4 kB]
Get:5 https://dl.yarnpkg.com/debian stable InRelease [17.1 kB]
Get:6 http://packages.microsoft.com/repos/code stable/main arm64 Packages [11.3 kB]
Get:7 http://packages.microsoft.com/repos/code stable/main armhf Packages [11.2 kB]
Get:8 http://packages.microsoft.com/repos/code stable/main amd64 Packages [10.8 kB]
Fetched 60.9 kB in 3s (23.3 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.
pi@raspberrypi:~/usbwifi/rtl8821CU $ sudo apt upgrade
5.10.11-v7l+
pi@raspberrypi:~/usbwifi/rtl8821CU $ sudo apt-get install dkms
Reading package lists... Done
Building dependency tree
Reading state information... Done
dkms is already the newest version (2.6.1-4).
The following packages were automatically installed and are no longer required:
gconf-service gconf2-common libexiv2-14 libgconf-2-4 libgfortran3
libgmime-2.6-0 libncurses5 libssl1.0.2 rpi-eeprom-images uuid-dev
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
pi@raspberrypi:~/usbwifi/rtl8821CU $ DRV_NAME=rtl8821CU
pi@raspberrypi:~/usbwifi/rtl8821CU $ DRV_VERSION=5.2.5.3
pi@raspberrypi:~/usbwifi/rtl8821CU $ sudo mkdir /usr/src/${DRV_NAME}-${DRV_VERSION}
mkdir: cannot create directory ‘/usr/src/rtl8821CU-5.2.5.3’: File exists
pi@raspberrypi:~/usbwifi/rtl8821CU $ git archive master | sudo tar -x -C /usr/src/${DRV_NAME}-${DRV_VERSION}
pi@raspberrypi:~/usbwifi/rtl8821CU $ sudo dkms add -m ${DRV_NAME} -v ${DRV_VERSION}
Creating symlink /var/lib/dkms/rtl8821CU/5.2.5.3/source ->
/usr/src/rtl8821CU-5.2.5.3
DKMS: add completed.
pi@raspberrypi:~/usbwifi/rtl8821CU $ sudo dkms build -m ${DRV_NAME} -v ${DRV_VERSION}
Error! echo
Your kernel headers for kernel 5.10.11-v7l+ cannot be found at
pi@raspberrypi:~/usbwifi/rtl8821CU $ sudo dkms install -m ${DRV_NAME} -v ${DRV_VERSION}
Error! echo
Your kernel headers for kernel 5.10.11-v7l+ cannot be found at
/lib/modules/5.10.11-v7l+/build or /lib/modules/5.10.11-v7l+/source.
pi@raspberrypi:~/usbwifi/rtl8821CU $ sudo dkms build -m ${DRV_NAME} -v ${DRV_VERSION}
Error! echo
Your kernel headers for kernel 5.10.11-v7l+ cannot be found at
/lib/modules/5.10.11-v7l+/build or /lib/modules/5.10.11-v7l+/source.
pi@raspberrypi:~/usbwifi/rtl8821CU $ sudo apt update
Hit:1 https://deb.nodesource.com/node_12.x buster InRelease
Hit:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
Hit:3 http://archive.raspberrypi.org/debian buster InRelease
Get:4 http://packages.microsoft.com/repos/code stable InRelease [10.4 kB]
Get:5 https://dl.yarnpkg.com/debian stable InRelease [17.1 kB]
Get:6 http://packages.microsoft.com/repos/code stable/main arm64 Packages [11.3 kB]
Get:7 http://packages.microsoft.com/repos/code stable/main armhf Packages [11.2 kB]
Get:8 http://packages.microsoft.com/repos/code stable/main amd64 Packages [10.8 kB]
Fetched 60.9 kB in 3s (23.3 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.
pi@raspberrypi:~/usbwifi/rtl8821CU $ sudo apt upgrade