Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
insmod error
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  11 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Michael Lodman  
View profile  
 More options Dec 16 2003, 12:50 pm
Newsgroups: comp.os.linux.development, comp.os.linux, alt.linux
From: Michael Lodman <jlod...@rainbow-networks.com>
Date: Tue, 16 Dec 2003 17:43:47 GMT
Local: Tues, Dec 16 2003 12:43 pm
Subject: insmod error

I need help with an insmod of a driver in Mandrake 9.2:

I get the following error:

driver.o: kernel-module version mismatch
        driver.o was compiled for kernel version 2.4.22
        while this kernel is version 2.4.22-10mdk.

What is going on and how do I correct this?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dan Anderson  
View profile  
 More options Dec 16 2003, 2:08 pm
Newsgroups: comp.os.linux.development, comp.os.linux, alt.linux
From: Dan Anderson <d...@mathjunkies.com>
Date: Tue, 16 Dec 2003 19:07:47 GMT
Local: Tues, Dec 16 2003 2:07 pm
Subject: Re: insmod error

Michael Lodman <jlod...@rainbow-networks.com> writes:
> I need help with an insmod of a driver in Mandrake 9.2:

> I get the following error:

> driver.o: kernel-module version mismatch
>    driver.o was compiled for kernel version 2.4.22
>    while this kernel is version 2.4.22-10mdk.

> What is going on and how do I correct this?

Try compiling a 2.4.22 kernel for your machine, install it as MyKernel
under LILO, and insmod into that.  2.4.22 != 2.4.22-10mdk.

-Dan


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robert Hallgren  
View profile  
 More options Dec 16 2003, 4:00 pm
Newsgroups: comp.os.linux.development, comp.os.linux, alt.linux
Followup-To: alt.linux
From: Robert Hallgren <sandh...@lipogram.com>
Date: 16 Dec 2003 21:00:05 GMT
Local: Tues, Dec 16 2003 4:00 pm
Subject: Re: insmod error
On Tue, 16 Dec 2003 17:43:47 GMT,
 Michael Lodman <jlod...@rainbow-networks.com> wrote:

>  I need help with an insmod of a driver in Mandrake 9.2:

>  I get the following error:

>  driver.o: kernel-module version mismatch
>    driver.o was compiled for kernel version 2.4.22
>    while this kernel is version 2.4.22-10mdk.

>  What is going on and how do I correct this?

Try using the insmod -f flag.

If you compile this module yourself, against kernel 2.4.22 source
you should have a look in the kernel source top Makefile. It might
contain something like this:

EXTRAVERSION = -10mdk

Try changing this to just plain:

EXTRAVERSION =

You might need to reconfigure your kernel source after this change

BR/ Robert


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Lodman  
View profile  
 More options Dec 16 2003, 4:09 pm
Newsgroups: comp.os.linux.development, comp.os.linux, alt.linux
From: Michael Lodman <jlod...@rainbow-networks.com>
Date: Tue, 16 Dec 2003 21:01:56 GMT
Local: Tues, Dec 16 2003 4:01 pm
Subject: Re: insmod error
Robert Hallgren <sandh...@lipogram.com> wrote in
news:slrnbtusik.2b2.sandhall@poetry.lipogram:

Why would Mandrake ship the product with this problem?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dan Anderson  
View profile  
 More options Dec 16 2003, 4:23 pm
Newsgroups: comp.os.linux.development, comp.os.linux, alt.linux
From: Dan Anderson <d...@mathjunkies.com>
Date: Tue, 16 Dec 2003 21:23:36 GMT
Local: Tues, Dec 16 2003 4:23 pm
Subject: Re: insmod error

        If   you're  compiling  the   kernel  module   yourself  then,
technically  speaking,  Mandrake didn't  ship  the  product with  this
problem.  Remember to install  the *mandrake* kernel sources.  I would
be you're probably making a mistakes and not getting something right.

        Mandrake  did, FWIW,  ship 9.2  early because  everyone wanted
things from  the RC  badly (and  plus they're not  exactly in  a great
financial situation),  so if  you run Mandrake  Update on a  fresh 9.2
distribution  you'll find  a  hundred patches  or something  similarly
obscene.

-Dan


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dave Lister  
View profile  
 More options Dec 16 2003, 4:43 pm
Newsgroups: comp.os.linux.development, comp.os.linux, alt.linux
From: Dave Lister <retsildiva...@hotmail.com>
Date: Tue, 16 Dec 2003 21:36:05 GMT
Local: Tues, Dec 16 2003 4:36 pm
Subject: Re: insmod error
Dan Anderson <d...@mathjunkies.com> wrote in news:m28ylc5uej.fsf@syr-24-59-
76-83.twcny.rr.com:

I didn't recompile the kernel module. This is a straight load of 9.2, and
then compiling the little driver. Whatever errors exist are in the
distribution. I will try the update and see if that helps.

--
Un-elect Dubya in 2004


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Lodman  
View profile  
 More options Dec 16 2003, 4:45 pm
Newsgroups: comp.os.linux.development, comp.os.linux, alt.linux
From: Michael Lodman <jlod...@rainbow-networks.com>
Date: Tue, 16 Dec 2003 21:37:52 GMT
Local: Tues, Dec 16 2003 4:37 pm
Subject: Re: insmod error
Dan Anderson <d...@mathjunkies.com> wrote in news:m28ylc5uej.fsf@syr-24-59-
76-83.twcny.rr.com:

I didn't recompile the kernel module. This is a straight load of 9.2, and
then compiling the little driver. Whatever errors exist are in the
distribution. I will try the update and see if that helps.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
blah  
View profile  
 More options Dec 18 2003, 5:02 pm
Newsgroups: comp.os.linux.development, comp.os.linux, alt.linux
From: blah <h...@nospam.net>
Date: Thu, 18 Dec 2003 15:00:56 -0700
Local: Thurs, Dec 18 2003 5:00 pm
Subject: Re: insmod error
On Tue, 16 Dec 2003 17:43:47 GMT, Michael Lodman

<jlod...@rainbow-networks.com> wrote:

>I need help with an insmod of a driver in Mandrake 9.2:

>I get the following error:

>driver.o: kernel-module version mismatch
>    driver.o was compiled for kernel version 2.4.22
>    while this kernel is version 2.4.22-10mdk.

>What is going on and how do I correct this?

All distributions(well I can't say all, at least the ones that I have
used) ship with the kernel configured to only load modules compiled at
the same time as that kernel.  If you want to have no problems
recompile the kernel.  I can't remember the exact wording but it's one
of the first options when you do a make config/menuconfig/xconfig.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ravi  
View profile  
 More options Dec 26 2003, 6:03 pm
Newsgroups: comp.os.linux.development, comp.os.linux, alt.linux
From: ravi_bhuch...@yahoo.com (Ravi)
Date: 26 Dec 2003 15:03:52 -0800
Local: Fri, Dec 26 2003 6:03 pm
Subject: Re: insmod error

hi all,
I also have the same kind of problem, but I am using RedHat 9.0 and
kernel is 2.4.20-8, I get error message saying

module is compiled for 2.4.20 and your kernel is 2.4.20-8. If i
recompile the
kernel how can I specify the new kernel in GRUB. And is there any
other way to solve this problem instead of recompiling it.

I have tried specifing -I option with path in gcc while compiling
module.

Thank you,
Ravi


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ross Axe  
View profile  
 More options Dec 27 2003, 11:00 am
Newsgroups: comp.os.linux.development, comp.os.linux, alt.linux
From: Ross Axe <ross....@blueyonder.co.uk>
Date: Sat, 27 Dec 2003 16:00:52 +0000
Local: Sat, Dec 27 2003 11:00 am
Subject: Re: insmod error

I have only limited Mandrake experience (and *no* RH) but it looks like
your modules were compiled for a vanilla kernel but you're both using
MDK/RH specific kernels (specifically, the EXTRAVERSION variable has
been bet in the kernels makefile). I guess you could try getting any
updates that are available for the modules on the MDK/RH sites, making
sure the update matches your kernel. Otherwise, compile a kernel, it's
not hard.

cd /usr/src/linux-2.4.18(or whatever)
make oldconfig
make dep
make install modules modules_install

Then you just reboot and you're done. If you want to reconfigure
anything in the kernel, them use `make menuconfig' instead of `make
oldconfig'. Also, note that the `make dep' stage only needs to be done
when you compile a kernel for the first time, or after an upgrade or patch.

HTH,
Ross


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mayur24  
View profile  
 More options Jan 5 2004, 4:45 am
Newsgroups: comp.os.linux.development, comp.os.linux, alt.linux
From: mayur_...@yahoo.com (mayur24)
Date: 5 Jan 2004 01:45:23 -0800
Local: Mon, Jan 5 2004 4:45 am
Subject: Re: insmod error

This should work on any distro
gcc -O2 -DMODULE -D__KERNEL__ -isystem /lib/modules/`uname -r`/build/include
-W -Wall  -c <module_name.c>
bye,mayur.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »