Review your favorite Linux distribution.
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 01-13-2008, 04:29 AM   #1
LQ Newbie
Registered: Nov 2007
Posts: 7

Rep: Reputation: 0
Unhappy Unable to insert lodable module


I am facing problem while inserting loadable module on FC5 kernel 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.
Old 01-13-2008, 07:19 AM   #2
LQ Newbie
Registered: Nov 2007
Posts: 7

Original Poster
Rep: Reputation: 0
In order to have kernel source code I downloaded kernel- from After that installed the kernel source using following commands:

rpm -ivh kernel-

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/:

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.



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
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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:47 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
Open Source Consulting | Domain Registration