How to prepare kernel module for deployment?

Sysprogs forums Forums VisualKernel How to prepare kernel module for deployment?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #33543
    urosg
    Participant

    Hi,

    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?

    Thanks!

    #33547
    support
    Keymaster

    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.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.