- Update current packages of the system to the latest version.
sudo apt update && sudo apt upgrade -y
- Download and install the essential packages to compile kernels.
sudo apt install build-essential libncurses-dev libssl-dev libelf-dev bison flex -y
sudo apt install linux-headers-$(uname -r)
- Clean up your installed packages.
sudo apt clean && sudo apt autoremove -y
- Compile LKM
Go to Project_ALV_2022 > LKM Folder
sudo make ARCH=$(arch) -j$(nproc)
sudo make
- Load LKM
sudo insmod new_kernel.ko
- To check whether the LKM has loaded successfully or not