Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have googled this and found a thousand answers, but none of them seem to answer my problem.
I have been using the distro kernels (Mandriva), but needed to install a current kernel directly from kernel.org.
When doing a modprobe on some modules I get this error.
This error usually means that one thing is using a different version, but I can't find where that is happening.
I have a lot of kernels installed, but while the distro kernels don't give me that error, any kernel I install from source from Kernel.org, I get the error on a few modules.
You can only use modules that were built against the exact same kernel as the one you are currently running. That means, even if you downloaded the identical kernel version from kernel.org and built a module against it, it still wouldn't work on your running system because it wasn't built from the same source.
To build kernel modules for your system you need to either download the kernel source package from your distribution's package repositories and build against that, or else completely replace your kernel and all modules with ones that you personally built from source.
Not being a Mandriva user, I don't know how much modification (if any) they do on the source, so I can't say for sure that replacing the Mandriva kernel with a vanilla build is a good idea, or would even work. It is likely a much safer (and certainly, easier) approach to build against your distribution's provided kernel source.
You can only use modules that were built against the exact same kernel as the one you are currently running. That means, even if you downloaded the identical kernel version from kernel.org and built a module against it, it still wouldn't work on your running system because it wasn't built from the same source.
To build kernel modules for your system you need to either download the kernel source package from your distribution's package repositories and build against that, or else completely replace your kernel and all modules with ones that you personally built from source.
Not being a Mandriva user, I don't know how much modification (if any) they do on the source, so I can't say for sure that replacing the Mandriva kernel with a vanilla build is a good idea, or would even work. It is likely a much safer (and certainly, easier) approach to build against your distribution's provided kernel source.
Thanks,
The kernels work, there's just a few things I need to work out.
Also do you have any advice in regard to dkms mods' ability to build the module when a new kernel is built?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.