- A simple Kernel Module project that display the machine information.
- Make sure you installed the build modules necessary for your Linux Kernel version.
sudo apt update
sudo apt install linux-headers-$(uname -r)
- Run the following commands.
# * Build the module.
make all
# * Insert the module.
make insert-module
# * View the module diagnostic message.
sudo dmesg | tail -10
# * Remove the module.
make remove-module.
# * Clean and remove the generated files.
make clean