LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   writing drivers for kernel 2.4.20-8 (https://www.linuxquestions.org/questions/linux-newbie-8/writing-drivers-for-kernel-2-4-20-8-a-636722/)

vinaykrishnan.p 04-21-2008 02:31 AM

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,
Vinay

alan_ri 04-21-2008 07:17 AM

You didn't search good enough.Here's the link you need http://www.redhat.com/archives/shrik.../msg00011.html

vinaykrishnan.p 04-21-2008 09:55 AM

Thanks Alan

I should have searched enough


All times are GMT -5. The time now is 06:18 PM.