I want to write a kernel module that will be dynamically loaded and removed using insmod and rmmod. However, this will run on a debian based system that does not have GCC or any other dev tools.
Can I simply compile the module on another system that is running the same kernel as my target system or do I have to do something more? Is there any way to compile the module for my target system on a machine that is running a different version of the kernel to my target machine?
Sorry if this is a noob question - im kinda new at this stuff