Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 6025

Build kernel modules for specific Ubuntu version

$
0
0

I am trying to build kernel module but when I try to load it I get

$ sudo insmod net/openvswitch/openvswitch.koinsmod: ERROR: could not insert module net/openvswitch/openvswitch.ko: Invalid module format

modinfo for module is:

name:           openvswitch vermagic:       6.5.13-g1daceaa37695 SMP preempt mod_unload 

while kernel version is:

$ uname -aLinux virtual-machine 6.5.0-25-generic #25~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Feb 20 16:09:15 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

I am using following repository:

$ git remote -vorigin  https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/jammy (fetch)origin  https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/jammy (push)

And following tag/branch:

$ git branch * (HEAD detached at Ubuntu-hwe-6.5-6.5.0-25.25_22.04.1)  master

The main problem seems is that I am unable to find the exact source code from where to build it.


Viewing all articles
Browse latest Browse all 6025

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>