LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 08-31-2011, 02:21 PM   #1
Wayne Sallee
Member
 
Registered: Jun 2011
Location: Florida
Distribution: The one that I built. (lfs)
Posts: 269

Rep: Reputation: 17
Invalid module format


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.

Wayne Sallee
Wayne@WayneSallee.com
 
Old 08-31-2011, 04:07 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
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.
 
Old 09-01-2011, 05:41 PM   #3
Wayne Sallee
Member
 
Registered: Jun 2011
Location: Florida
Distribution: The one that I built. (lfs)
Posts: 269

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by MS3FGX View Post
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?

Wayne Sallee
Wayne@WayneSallee.com
 
Old 09-06-2011, 10:14 AM   #4
Wayne Sallee
Member
 
Registered: Jun 2011
Location: Florida
Distribution: The one that I built. (lfs)
Posts: 269

Original Poster
Rep: Reputation: 17
Anyone else?

Wayne Sallee
Wayne@WayneSallee.com
 
Old 05-20-2012, 07:22 PM   #5
Wayne Sallee
Member
 
Registered: Jun 2011
Location: Florida
Distribution: The one that I built. (lfs)
Posts: 269

Original Poster
Rep: Reputation: 17
Well it's been almost 9 months now.

Is there still nobody that knows the answer that can explain it to me?

Wayne Sallee
Wayne@WayneSallee.com
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rtl8187 driver module load error (Invalid module format) j_75080 Linux - Networking 3 07-06-2009 09:37 PM
error: -1 Invalid module format when using insmod with module cross-compiled for arm AndrewShanks Linux - Embedded & Single-board computer 4 10-15-2007 03:50 AM
module.ko: make, install & used many times. Suddenly modprobe=invalid module format?? GrapefruiTgirl Linux - General 16 08-04-2007 05:40 AM
insmod: error inserting 'module.o': -1 Invalid module format ksrinivas Linux - Newbie 5 10-11-2006 07:29 AM
'Invalid module format' loading simple module on Suse Linux Professional 9.1 rocketdude Linux - Distributions 3 07-27-2004 11:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:11 AM.

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