LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-08-2004, 01:55 AM   #1
chingyenccy
LQ Newbie
 
Registered: Dec 2004
Posts: 19

Rep: Reputation: 0
Arrow Changing kernel version 2.4.20-8 to 2.4.20-8custom


Hi

I tried to use [insmod iptmodbus.o] but I receive an error message saying:
kernel-module version mismatch
iptmodbus.o was compiled for kernel version 2.4.20-8custom
while this kernel is version 2.4.20-8.

So how do I upgrade or change my kernel version? The kernel version in my /usr/src/linux/Makefile file is
EXTRAVERSION = -8custom

Isn't that already a custom version?
Your advices are truly appreciated!
 
Old 12-08-2004, 04:40 AM   #2
chingyenccy
LQ Newbie
 
Registered: Dec 2004
Posts: 19

Original Poster
Rep: Reputation: 0
Do I need to build a custom kernel as in red hat Linux 9 documentation's 'Building a Custom Kernel'?
 
Old 12-08-2004, 05:14 AM   #3
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,305

Rep: Reputation: 66
have you changed anything in the kernel source except the extraversion? if not, change it back, and recompile the module.
i think insmod -f would work though.
 
Old 03-06-2005, 01:39 PM   #4
markses
LQ Newbie
 
Registered: Mar 2005
Posts: 6

Rep: Reputation: 0
I'm having the same problem. How do you change it back?
 
Old 03-06-2005, 02:12 PM   #5
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,305

Rep: Reputation: 66
the makefile in the top of the kernel source directory has the kernel name in it. you can edit it if you wish.
It's probably the fourth line of /usr/src/linux/Makefile.
 
Old 03-06-2005, 04:14 PM   #6
markses
LQ Newbie
 
Registered: Mar 2005
Posts: 6

Rep: Reputation: 0
Thanks.

I figured it out. Strangely enough, my problem was *how* exactly to edit the fourth line back from EXTRAVERSION = -8custom to EXTRAVERSION = -8 (yes, that's how newbie this newbie be). So,

# vi Makefile

then the editing commands (as found http://www.cs.rit.edu/~cslab/vi.html )

That only took an hour!

So, then the ./build_module worked (because version matched), etc., and now I'm on to the next modem problem. One problem a day, though.

Thanks for your prompt reply!
 
Old 03-07-2005, 04:48 AM   #7
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,305

Rep: Reputation: 66
vi is really tough to use. try using nano or pico instead.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Regarding distribution + kernel version + gcc version + glib version. JCipriani Linux - General 8 04-19-2008 03:54 PM
redhat fedora gcc version (compiled for 2.4.20) doesn't match kernel version 2.4.22 start1000 Linux - Software 0 03-16-2004 09:17 PM
Alsa sound problem, RH9, 2.4.20-8 mismach 2.4.20-8custom Bultza Linux - Software 2 10-21-2003 02:10 PM
Xfree prob radeon.o kernel module version is 1.1.1 but version 1.5.0 or newer needed. jimdaworm Slackware 0 10-01-2003 07:27 PM
Sample Driver Module incompatibility with Kernel version (or gcc version) jvs Linux - General 1 06-07-2002 02:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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