Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 04-21-2008, 03:31 AM   #1
LQ Newbie
Registered: Apr 2008
Posts: 2

Rep: Reputation: 0
Thumbs up writing drivers for kernel 2.4.20-8

Hi All,

I was trying to compile a simple program and insert using insmod on
kernel 2.4.20-8 (the redhat machine we had). I wrote a simple print
program and i compliled it using
$cc -c helloworld.c
to generate the object file and i tried to insert the object using
$/sbin/insmod helloworld.o

And it gave the following error message

helloworld.o: kernel-module version mismatch
******* helloworld.o was compiled for kernel version 2.4.20
******* while this kernel is version 2.4.20-8.

Pls help me solve this issue.I searched google and i could not find.

Thanks and Kind Regards,
Old 04-21-2008, 08:17 AM   #2
Senior Member
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
You didn't search good enough.Here's the link you need
Old 04-21-2008, 10:55 AM   #3
LQ Newbie
Registered: Apr 2008
Posts: 2

Original Poster
Rep: Reputation: 0

Thanks Alan

I should have searched enough


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
device drivers writing ashagottipati Programming 2 06-01-2007 08:57 PM
Writing USB Drivers hoagland Linux - Hardware 3 05-15-2005 09:42 AM
writing device drivers jessy jane Linux - Newbie 2 11-04-2004 01:25 AM
Writing hardware drivers Crunch *BSD 4 08-29-2004 05:44 PM
Writing Drivers-question turls Programming 5 01-08-2004 12:44 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:38 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration