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.

Top comments (0)

👋 Kindness is contagious

Engage with a wealth of insights in this thoughtful article, cherished by the supportive DEV Community. Coders of every background are encouraged to bring their perspectives and bolster our collective wisdom.

A sincere “thank you” often brightens someone’s day—share yours in the comments below!

On DEV, the act of sharing knowledge eases our journey and forges stronger community ties. Found value in this? A quick thank-you to the author can make a world of difference.

Okay