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. |
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. |
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, |
Quote:
|
All times are GMT -5. The time now is 03:02 AM. |