I have a debugging machine on which the module works, now I want to prepare it to deploy on production machine – which will not run the exact same kernel version as for debugging I had to rebuild kernel manually (Debian 11).
Is it enough to just pack the source files and generated Makefile and run make on target machine or do I have to do something else?
If you would like to load it manually, just copying the .ko file and running modprobe/insmod should suffice (as long as it’s exactly the same kernel, you don’t need to rebuild it).
You can also copy the sources + Makefile and run make (note that the make command line would need to reference the kernel module script directory, e.g. see this page). Making the module load automatically depends on your Linux version and is usually described in your distro’s documentation. VisualKernel does not configure it automatically.