How to build supported (externally supported of course) kernel for 15SP7

Hi all!

I’ve kernel module sources (module has not relation with some hardware and only has some manipulation with making control file – this is a test module) that I can build (make by make) and packing into .rpm/.deb package on different Linux, including SUSE.

And after installing this package (module saved into right directory and depmod executed) modprobe can load this module on my request and I can communicate with it as intended. Of course, I see a warning in the dmesq about tainting kernel but all working.

But on SUSE modprobe returns an error that this is an unsupported driver and can be load by modprobe only after allow_unsupported 1.

As far as I understand, I can build my own module (Kernel module package), which will be designated as externally supported.

There are articles about this on the SUSE website contains article about it, but it wrote for very old SUSE (12SP1) and even on this old build some steps not possible to do exactly as described.

Are there any more recent descriptions, or can someone describe how to do what I need?

Thanks,
Alex

Hi and welcome to the Forum :smile:

I see a not here about installing kernel-default-extra packages which does enable “allow_unsupported”

https://documentation.suse.com/sles/15-SP7/html/SLES-all/article-modules.html#art-modules-workstation

But all you need to do is add that to the kernel boot options via YaST Bootloader?

Hi and thank you!

This path is clear.

But I need to build a supported module.

@Alex0Z you can’t, it has to a) be in the kernel and b) provided, tested and suported by SUSE in the kernel. Or provide a patch to SUSE via a support request to see if it can be implemented.

What is the module in question and what are you doing with the module? If it’s an existing kernel module, can’t you use module parameters for changing?