Skip to main content

Install Driver

http://web.joang.com:8084/uploads/images/gallery/2023-07/20230702-072944.jpg

https://github.com/morrownr/8821cu-20210916



pi@raspberrypi:~ $ sudo apt update && sudo apt upgrade
... ...
... ...
pi@raspberrypi:~ $ 
pi@raspberrypi:~ $ sudo reboot
... ...
pi@raspberrypi:~ $ sudo apt install -y raspberrypi-kernel-headers build-essential bc dkms git
... ...
pi@raspberrypi:~ $ sudo vi /boot/config.txt
--> arm_64bit=0 <====================== Then anywhere in that file enter the following new line:
pi@raspberrypi:~ $ sudo reboot
... ...
pi@raspberrypi:~ $ mkdir -p ~/src
pi@raspberrypi:~ $ cd ~/src
pi@raspberrypi:~/src $ git clone https://github.com/morrownr/8821cu-20210916.git
Cloning into '8821cu-20210916'...
remote: Enumerating objects: 1468, done.
remote: Counting objects: 100% (261/261), done.
remote: Compressing objects: 100% (114/114), done.
remote: Total 1468 (delta 152), reused 247 (delta 145), pack-reused 1207
Receiving objects: 100% (1468/1468), 14.27 MiB | 9.49 MiB/s, done.
Resolving deltas: 100% (701/701), done.


pi@raspberrypi:~/src $ cd 8821cu-20210916/

pi@raspberrypi:~/src/8821cu-20210916 $ sudo sh install-driver.sh
: ---------------------------
: install-driver.sh v20230227
: armv7l (architecture)
: 4/4 (in-use/total processing units)
: 3878088 (total system memory)
: 5.10.103-v7l+ (kernel version)
: gcc (Raspbian 8.3.0-6+rpi1) 8.3.0
: dkms:2.6
: ---------------------------

Checking for previously installed drivers.
: ---------------------------

Starting installation.
Installing 8821cu.conf to /etc/modprobe.d
The dkms installation routines are in use.
Copying source files to /usr/src/rtl8821cu-5.12.0.4

Creating symlink /var/lib/dkms/rtl8821cu/5.12.0.4/source ->
                 /usr/src/rtl8821cu-5.12.0.4

DKMS: add completed.
The driver was added to dkms successfully.
: ---------------------------

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
./dkms-make.sh...................................................
cleaning build area...

DKMS: build completed.
The driver was built by dkms successfully.
: ---------------------------

8821cu.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.10.103-v7l+/updates/dkms/

depmod...

DKMS: install completed.
The driver was installed by dkms successfully.
: ---------------------------

Info: Upgrade this driver with the following commands as needed:
$ git pull
$ sudo sh install-driver.sh
Note: Upgrades to this driver should be performed before distro upgrades.
Note: Upgrades can be performed as often as you like.
Note: Work on this driver is continuous.
: ---------------------------

Do you want to edit the driver options file now? (recommended) [Y/n] Y
Do you want to apply the new options by rebooting now? (recommended) [Y/n] Y
Connection to 192.168.0.12 closed by remote host.
Connection to 192.168.0.12 closed.
hyunsu@JOANG:~$ ssh pi@192.168.0.12
pi@192.168.0.12's password: 
Linux raspberrypi 5.10.103-v7l+ #1529 SMP Tue Mar 8 12:24:00 GMT 2022 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sun Jul  2 07:22:32 2023
pi@raspberrypi:~ $ Connection to 192.168.0.12 closed by remote host.
Connection to 192.168.0.12 closed.
hyunsu@JOANG:~$