mirror of
https://github.com/RinCat/RTL88x2BU-Linux-Driver.git
synced 2024-12-24 09:01:35 +00:00
Update DKMS docs
This commit is contained in:
parent
78206c0591
commit
fac54b523d
30
README.md
30
README.md
@ -24,23 +24,43 @@ And more.
|
|||||||
# How to use this kernel module
|
# How to use this kernel module
|
||||||
* Make sure you have installed the kernel headers
|
* Make sure you have installed the kernel headers
|
||||||
* All commands need to be run in the driver directory
|
* All commands need to be run in the driver directory
|
||||||
* The following commands only build module for the current running kernel
|
* You need rebuild the kernel module everytime you update/change the kernel if you are not using DKMS
|
||||||
* You need rebuild the kernel module everytime you update/change the kernel
|
|
||||||
## Building
|
## Manual installation
|
||||||
|
### Clean
|
||||||
|
* Make sure you cleaned old build files before builds new one
|
||||||
|
```
|
||||||
|
make clean
|
||||||
|
```
|
||||||
|
|
||||||
|
### Building module for current running kernel
|
||||||
```
|
```
|
||||||
make
|
make
|
||||||
```
|
```
|
||||||
|
|
||||||
## Installing
|
### Building module for other kernels
|
||||||
|
```
|
||||||
|
make KSRC=/lib/modules/YOUR_KERNEL_VERSION/build
|
||||||
|
```
|
||||||
|
|
||||||
|
### Installing
|
||||||
```
|
```
|
||||||
sudo make install
|
sudo make install
|
||||||
```
|
```
|
||||||
|
|
||||||
## Uninstalling
|
### Uninstalling
|
||||||
```
|
```
|
||||||
sudo make uninstall
|
sudo make uninstall
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Manual DKMS installation
|
||||||
|
```
|
||||||
|
git clone "https://github.com/RinCat/RTL88x2BU-Linux-Driver.git" /usr/src/rtl88x2bu-git
|
||||||
|
sed -i 's/PACKAGE_VERSION="@PKGVER@"/PACKAGE_VERSION="git"/g' /usr/src/rtl88x2bu-git/dkms.conf
|
||||||
|
dkms add -m rtl88x2bu -v git
|
||||||
|
dkms autoinstall
|
||||||
|
```
|
||||||
|
|
||||||
# USB 3.0 Support
|
# USB 3.0 Support
|
||||||
You can try use `modprobe 88x2bu rtw_switch_usb_mode=1` to force the adapter run under USB 3.0. But if your adapter/port/motherboard not support it, the driver will be in restart loop. Remove the parameter and reload the driver to restore.
|
You can try use `modprobe 88x2bu rtw_switch_usb_mode=1` to force the adapter run under USB 3.0. But if your adapter/port/motherboard not support it, the driver will be in restart loop. Remove the parameter and reload the driver to restore.
|
||||||
|
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
PACKAGE_NAME="rtl88x2bu"
|
PACKAGE_NAME="rtl88x2bu"
|
||||||
PACKAGE_VERSION="@PKGVER@"
|
PACKAGE_VERSION="@PKGVER@"
|
||||||
PROCS_NUM=$(nproc)
|
MAKE="'make' -j$(nproc) KVER=${kernelver} KSRC=/lib/modules/${kernelver}/build"
|
||||||
[ $PROCS_NUM -gt 16 ] && PROCS_NUM=16
|
|
||||||
MAKE="'make' -j${PROCS_NUM} KVER=${kernelver} KSRC=/lib/modules/${kernelver}/build"
|
|
||||||
CLEAN="make clean"
|
CLEAN="make clean"
|
||||||
BUILT_MODULE_NAME[0]="88x2bu"
|
BUILT_MODULE_NAME[0]="88x2bu"
|
||||||
DEST_MODULE_LOCATION[0]="/kernel/drivers/net/wireless"
|
DEST_MODULE_LOCATION[0]="/kernel/drivers/net/wireless"
|
||||||
|
Loading…
Reference in New Issue
Block a user