Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Made my own module, can't insmod it tho. Help?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Cormac Redmond
n00b
n00b


Joined: 15 Oct 2005
Posts: 18

PostPosted: Sun Oct 30, 2005 7:52 pm    Post subject: Made my own module, can't insmod it tho. Help? Reply with quote

Hi, I made a simple module, from the tutorial from http://www.faqs.org/docs/kernel/

I can get it to make the .o file, and its fine. But I keep getting:

Code:
insmod filename.o
insmod: error inserting 'filename.o': -1 Invalid module format


I tried changing it to .ko, because thats the way things are now.
I read a few things, and apparantly modules are made differently slightly in 2.6. Can you help?? I can't find enough documentation on it.


Thanks,

Cormac.
Back to top
View user's profile Send private message
Cormac Redmond
n00b
n00b


Joined: 15 Oct 2005
Posts: 18

PostPosted: Sun Oct 30, 2005 7:57 pm    Post subject: Reply with quote

Sorry - found an updated version of that tutorial!

Works fine.

DAMN LINUX.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum