You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rtl8821CU/README.md

62 lines
1.7 KiB
Markdown

7 years ago
# Realtek RTL8811CU/RTL8821CU USB wifi adapter driver version 5.4.1 for Linux 4.20.x
7 years ago
Before build this driver make sure `make`, `gcc`, `linux-header` and `git` have been installed.
7 years ago
## First, clone this repository
7 years ago
```
7 years ago
mkdir -p ~/build
cd ~/build
7 years ago
git clone https://github.com/brektrou/rtl8821CU.git
```
## Build and install with DKMS
DKMS is a system which will automatically recompile and install a kernel module when a new kernel gets installed or updated. To make use of DKMS, install the dkms package.
### Debian/Ubuntu:
7 years ago
```
sudo apt-get install dkms
```
### Arch Linux/Manjaro:
7 years ago
```
sudo pacman -S dkms
```
To make use of the **DKMS** feature with this project, do the following:
```
DRV_NAME=rtl8821CU
DRV_VERSION=5.4.1
7 years ago
sudo cp -r ~/build/${DRV_NAME} /usr/src/${DRV_NAME}-${DRV_VERSION}
7 years ago
sudo dkms add -m ${DRV_NAME} -v ${DRV_VERSION}
sudo dkms build -m ${DRV_NAME} -v ${DRV_VERSION}
sudo dkms install -m ${DRV_NAME} -v ${DRV_VERSION}
```
7 years ago
If you later on want to remove it, do the following:
7 years ago
```
DRV_NAME=rtl8821CU
DRV_VERSION=5.4.1
sudo dkms remove ${DRV_NAME}/${DRV_VERSION} --all
```
## Build and install without DKMS
7 years ago
Use following commands:
```
7 years ago
cd ~/build/rtl8821CU
make
sudo make install
```
7 years ago
If you later on want to remove it, do the following:
7 years ago
```
cd ~/build/rtl8821CU
sudo make uninstall
```
7 years ago
## Checking installed driver
7 years ago
If you successfully install the driver, the driver is installed on `/lib/modules/<linux version>/kernel/drivers/net/wireless/realtek/rtl8821cu`. Check the driver with the `ls` command:
7 years ago
```
7 years ago
ls /lib/modules/$(uname -r)/kernel/drivers/net/wireless/realtek/rtl8821cu
7 years ago
```
Make sure `8821cu.ko` file present on that directory
7 years ago
### Check with **DKMS** (if installing via **DKMS**):
7 years ago
7 years ago
``
sudo dkms status
``