LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 09-27-2023, 02:50 PM   #1
toregunnar
LQ Newbie
 
Registered: Sep 2011
Posts: 2

Rep: Reputation: Disabled
Question Strict Kernel version in Ubuntu


Using Ubuntu 22.04 LTS, an issue is that there seem to be a strict check regarding Kernel version when trying to install a driver.
The driver is compiled with a newer Kernel version and when trying to install the driver, it fails due to incompatible Kernel version.

Can the strict version check be loosened so that installation of the driver will be possible even if the Kernel version is different.

There seems to exist a compiler flag CONFIG_MODVERSIONS,
that could fix this problem, but question is if both the Kernel and the driver need to be compiled with this flag, or is it enough that the driver, or the Kernel is compiled with that flag?

Thanks.
 
Old 09-27-2023, 06:04 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,714

Rep: Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899
Welcome to LinuxQuestions.

You didn't post what hardware you are trying to get working but if the driver needs a newer kernel then chances are quite good (like 100%) it isn't going to work. You can force the driver (aka module) to load using modprobe -f which strips versioning information but I take no responsibility for anything bad that happens.
 
Old 09-28-2023, 05:06 AM   #3
toregunnar
LQ Newbie
 
Registered: Sep 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
Wink

Thanks.

An additional question to your answer
- Would it be enough to recompile the driver module using that flag, or do I need also to recompile the target Kernel also with that flag?
I tried the modprobe -f but the Kernel version strictness did not allow to insert that module, but did not recompile the module or the target Kernel.

Hopefully,
 
Old 09-28-2023, 01:24 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,714

Rep: Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899
Quote:
- Would it be enough to recompile the driver module using that flag, or do I need also to recompile the target Kernel also with that flag?
I am not a kernel expert but I would say no. If a device is supported in a particular kernel version as far as I know it isn't going to work in a lower version regardless.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How strict is the host system kernel version requirement? DrSpatula Linux From Scratch 3 11-07-2011 08:46 PM
Kernel Panic -- Selinux Strict mode rather than targeted mode Peter_APIIT Fedora 2 07-06-2007 02:23 AM
perl(strict)>>>install nightmare salparadise Linux - Software 6 11-04-2003 02:43 PM
Strict DHCP puzz_1 Linux - Networking 8 06-05-2003 12:20 PM
strict checking or other ssh solution? viniosity Linux - Security 1 05-02-2003 10:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 02:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration