Kernel module compiling

To compile a kernel module I had to compile the kernel from source code and use those files (binaries. headers, etc) to compile the kernel module. The Linux kernel will not load kernel modules that don’t match it’s exact version.

Have a look at this topic to see some examples of compiling kernel modules: