Custom kernel drivers

MikeB mabnhdev at gmail.com
Thu Nov 10 19:02:35 UTC 2016


I asked this on the snapcraft list before this list existed and never
received an answer.  I think this list is more appropriate.

What is the process for distributing custom kernel modules for Ubuntu-Core?

I have several kernel modules that I want to distribute to users.

I see it as I have two options, include them in a custom kernel snap
or distribute them independent of the kernel.

As far as I know, there is currently no straightforward way to include
custom modules in a kernel snap.  Is there a plan to support inclusion
of custom modules in kernel snaps in the future?

FYI - I currently use a custom plugin that derives from the kernel
plugin to stop after the build allowing me to build my custom kernel
modules using the kernel build area, copy the resulting modules into
the install area, perform a depmod, then continue with the staging and
snapping.

Ideally, I'd like to distribute the modules independent of the
kernel/OS.  I'd like to distribute them via a snap.  As far as I know,
there is no current process for distributing kernel modules in snaps.
I think you would need some type of post-processing to at least
perform a depmod and possibly an insmod after installing.  You would
also need some kind of process to keep the modules in sync with the
target's kernel along the lines DKMS.

Any plans or thoughts about distributing kernel modules to Ubuntu-Core?

Regards, Mike



More information about the Devices mailing list