DEV Community

classx
classx

Posted on

Two problem DKMS on the Amazon Linux 2

The best way to load the driver into the kernel is to use dkms.

Step 1

to unzip source code to /usr/src

Step 2

register driver into dkms service
dkms add -m DRIVERNAME -v VERSION

Step 3

to build the source against the current kernel
dkms build -m DRIVERNAME -v VERSION

Step 4

install driver
dkms install -m DRIVERNAME -v VERSION

Step 5

Load driver
modprobe DRIVERNAME

That all.

From here began problems.
I have checked step 4 on the Ubuntu 20, RedHat 8, CentOS 7, CentOS 8, and everywhere the driver does not load automatically on step 4 except for Amazon Linux.

Discussion (0)