Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google 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:
Follow-up To:
Add Cc | Add Follow-up 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 that you hear
 
Michael Lodman  
View profile   Translate to Translated (View Original)
 More options 16 Dec 2003, 17:50
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 16 Dec 2003 17:43
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?


    Reply to author    Forward  
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   Translate to Translated (View Original)
 More options 16 Dec 2003, 19:08
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 16 Dec 2003 19:07
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


    Reply to author    Forward  
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   Translate to Translated (View Original)
 More options 16 Dec 2003, 21:00
Newsgroups: comp.os.linux.development, comp.os.linux, alt.linux
Follow-up To: alt.linux
From: Robert Hallgren <sandh...@lipogram.com>
Date: 16 Dec 2003 21:00:05 GMT
Local: Tues 16 Dec 2003 21:00
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


    Reply to author    Forward  
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   Translate to Translated (View Original)
 More options 16 Dec 2003, 21:09
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 16 Dec 2003 21:01
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?

    Reply to author    Forward  
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   Translate to Translated (View Original)
 More options 16 Dec 2003, 21:23
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 16 Dec 2003 21:23
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


    Reply to author    Forward  
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   Translate to Translated (View Original)
 More options 16 Dec 2003, 21:43
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 16 Dec 2003 21:36
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


    Reply to author    Forward  
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   Translate to Translated (View Original)
 More options 16 Dec 2003, 21:45
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 16 Dec 2003 21:37
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.

    Reply to author    Forward  
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   Translate to Translated (View Original)
 More options 18 Dec 2003, 22:02
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 18 Dec 2003 22:00
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.

    Reply to author    Forward  
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   Translate to Translated (View Original)
 More options 26 Dec 2003, 23:03
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 26 Dec 2003 23:03
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


    Reply to author    Forward  
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   Translate to Translated (View Original)
 More options 27 Dec 2003, 16:00
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 27 Dec 2003 16:00
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


    Reply to author    Forward  
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   Translate to Translated (View Original)
 More options 5 Jan 2004, 09:45
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 5 Jan 2004 09:45
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.

    Reply to author    Forward  
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 »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google