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)

Build With Me: AI-Powered Adaptive Web Scraper with LLMs

Join us for a hands-on session with Zia Ahmad where we build an AI-driven web scraper that adapts to site changes in real-time. Code along and level up your automation skills.

Tune in to the full event

DEV is partnering to bring live events to the community. Join us or dismiss this billboard if you're not interested. ❤️