T
T
Twelfth Doctor2017-05-01 15:43:29
linux
Twelfth Doctor, 2017-05-01 15:43:29

How not to lose a Linux kernel module when upgrading?

Hello! Such a question: Ubuntu 16.04.2 LTS is currently installed with a kernel version of 4.4.0-75. To ensure the normal operation of the wifi adapter, a kernel module is installed (installed via DKMS).
Installed with these commands:

sudo apt-get install git build-essential linux-headers-generic dkms
git clone https://github.com/dz0ny/rt8192cu.git --depth 1
cd rt8192cu
sudo make dkms

The driver for the TP-Link WN822N wireless adapter based on the Realtek 8192CU chipset was taken from here
How not to lose this module when updating the kernel to version 4.10.13?
I update the kernel using the Ubuntu Kernel Update Utility (Ukuu)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
chupasaurus, 2017-05-01
@chupasaurus

It is necessary to execute in the directory with the module sudo dkms add -m 8192cu -v 4.0.29(the version number can be read from the dkms.conf file , too lazy to invent a regular expression).
In dkms.conf add the line "MAKE=make dkms"

E
Erelecano Oioraen, 2017-05-01
@Erelecano

https://github.com/pvaret/rtl8192cu-fixes
Ensure you have the necessary prerequisites installed:
sudo apt-get update
sudo apt-get install git linux-headers-generic build-essential dkms
Clone this repository:
git clone https:/ /github.com/pvaret/rtl8192cu-fixes.git
Set it up as a DKMS module:
sudo dkms add ./rtl8192cu-fixes
Build and install it:
sudo dkms install 8192cu/1.10
Refresh the module list:
sudo depmod -a
Ensure the native (and broken) kernel driver is blacklisted:
sudo cp ./rtl8192cu-fixes/blacklist-native-rtl8192.conf /etc/modprobe.d/
And reboot. You're done.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question