LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-14-2005, 06:17 AM   #1
arunachalam
Member
 
Registered: Sep 2005
Posts: 53

Rep: Reputation: 15
LINUX kernel modules


Hi,

I've written a simple kernel module (hello world) program. I've given all the option like -DMODULE -D__KERNEL__ -DLINUX and it was compiled. Means .o file generated. But when inserting the module, the error occured as -1 Invalid module format.

I am working suse 9 (linux 2.6.5)

Help on this.

Regds,
Arunachalam.
 
Old 11-14-2005, 10:35 AM   #2
mr_demilord
Member
 
Registered: Sep 2005
Posts: 244

Rep: Reputation: 30
kernel 2.6 uses the .ko extension, rename the file to module.ko for example. Hope it helps.
BTW wich version of modul-init tools do you use?
 
Old 11-14-2005, 10:11 PM   #3
arunachalam
Member
 
Registered: Sep 2005
Posts: 53

Original Poster
Rep: Reputation: 15
Hi,
Still I getting the same problem(after renaming .o to .ko). Means "error -1 invalid module format". You mean I need to see /lib/modules/ for seeing the module init version It is 2.6.5-7.97

Help me here.

Regards,
Arunachalam.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel: No module symbols loaded - kernel modules not enabled. Qucho Debian 9 05-26-2004 02:50 AM
Kernel Modules and modules.conf init Linux - General 0 02-20-2004 06:51 PM
new kernel (2.4.22 up from 2.4.20-6) - missing modules - use old modules? Simon Bridge Linux - Software 1 02-04-2004 05:52 AM
Kernel modules in VMware 3.11 not compatible with Linux-2.4.20-8 Armoredcav4 Linux - Software 1 11-01-2003 10:10 AM
Kernel modules: why are some kernel modules zipped? hampel Slackware 3 06-30-2003 06:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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