LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 12-15-2012, 12:23 PM   #1
kernelminded
LQ Newbie
 
Registered: Dec 2012
Posts: 1

Rep: Reputation: Disabled
Smile i am writing a kernel driver when i try to insert a kernel module i am getting an err


[root@localhost pagewalk]# insmod pagewalk.ko
Error: could not insert module pagewalk.ko: Invalid module format

but the above kernel module works fine in other computer i dont know what is the problem some one help me
 
Old 12-16-2012, 11:37 AM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
The kernel internals change from one version to another. Modules require some tuning from time to time. When you're loading a module, the kernel checks if it was compiled for the same kernel version. In your case, the check fails. As I understand, the kernel versions on your two machines are different. It means that you need to recompile it on the other machine.
 
  


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
can u help me in writing kernel module (block driver ) for load sharing in MLPPP prabhatpadhy Linux - Kernel 3 11-03-2008 09:40 AM
not able to insert kernel module ?? nishant.mishra Linux - Newbie 1 12-13-2007 03:45 AM
how to insert a loadable module into the kernel.? moog Linux - Newbie 2 01-08-2007 08:37 AM
failled tp insert module into kernel actteoh Linux - Hardware 2 05-07-2004 10:18 AM
Can't insert module into kernel swamysk Linux - Newbie 14 08-22-2003 05:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

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