diff --git a/README.md b/README.md index e8e1417..28d4aaa 100644 --- a/README.md +++ b/README.md @@ -24,23 +24,43 @@ And more. # How to use this kernel module * Make sure you have installed the kernel headers * 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 -## Building +* You need rebuild the kernel module everytime you update/change the kernel if you are not using DKMS + +## Manual installation +### Clean +* Make sure you cleaned old build files before builds new one +``` +make clean +``` + +### Building module for current running kernel ``` make ``` -## Installing +### Building module for other kernels +``` +make KSRC=/lib/modules/YOUR_KERNEL_VERSION/build +``` + +### Installing ``` sudo make install ``` -## Uninstalling +### Uninstalling ``` 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 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. diff --git a/dkms.conf b/dkms.conf index dc979fa..92cab19 100644 --- a/dkms.conf +++ b/dkms.conf @@ -1,8 +1,6 @@ PACKAGE_NAME="rtl88x2bu" PACKAGE_VERSION="@PKGVER@" -PROCS_NUM=$(nproc) -[ $PROCS_NUM -gt 16 ] && PROCS_NUM=16 -MAKE="'make' -j${PROCS_NUM} KVER=${kernelver} KSRC=/lib/modules/${kernelver}/build" +MAKE="'make' -j$(nproc) KVER=${kernelver} KSRC=/lib/modules/${kernelver}/build" CLEAN="make clean" BUILT_MODULE_NAME[0]="88x2bu" DEST_MODULE_LOCATION[0]="/kernel/drivers/net/wireless"