LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 01-13-2008, 04:29 AM   #1
pathak_ashish
LQ Newbie
 
Registered: Nov 2007
Posts: 7

Rep: Reputation: 0
Unhappy Unable to insert lodable module


Hi,

I am facing problem while inserting loadable module on FC5 kernel 2.6.15.1_2054FC5. I am able to get files named "hello.o" & "hello.ko" after compiling module "hello.c". Folowing is the error message I am getting:

insmod: error inserting './hello.ko': -1 Invalid module format

After insmod I used dmesg command & this is what it gave:

hello: disagrees about version of symbol struct_module

Please someone help me to rectify this problem as early as possible.

Thanks in advance.
ashish
 
Old 01-13-2008, 07:19 AM   #2
pathak_ashish
LQ Newbie
 
Registered: Nov 2007
Posts: 7

Original Poster
Rep: Reputation: 0
In order to have kernel source code I downloaded kernel-2.6.15.1.2054_FC5.src.rpm from http://download.fedora.redhat.com/. After that installed the kernel source using following commands:

rpm -ivh kernel-2.6.15.1.2054_FC5.src.rpm

Then I navigated to /usr/src/redhat/SPECS/

rpmbuild –bp –target `uname -p`kernel –2.6.specs

Created Symbolic link to kernel source directory

ln –s /usr/src/redhat/BUILD/kernel-2.6.15/linux-2.6.15/ /usr/src/linux

Finally I executed these commands at /usr/src/linux/:

1.make
2.make modules
3.make modules_install

Now I wrote simple module & while trying to insert it faced the problem.

Please reply if anyone knows the solution.

ashish
 
  


Reply



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
unable to insert oss module linuxmandrake Debian 1 09-30-2005 06:29 PM
Lodable module support in Linux. drminix Linux - Software 2 08-14-2005 09:32 PM
insert module failure iansoundz Linux - General 10 07-05-2005 07:21 PM
Cisco VPN Client unable to insert kernel module cuco76 Linux - Networking 2 04-14-2005 03:36 PM
Can't insert module into kernel swamysk Linux - Newbie 14 08-22-2003 05:27 PM

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

All times are GMT -5. The time now is 12:58 PM.

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