|
Driver porting: hello worldDriver porting: hello worldPosted Feb 11, 2006 12:26 UTC (Sat) by vikasvasud (guest, #35870)Parent article: Driver porting: hello world
Hi
My code is
MODULE_LICENCE("GPL");
Now the problem is i dont know how to insert this module in the kernel space. I have tried gcc -c hello.c to generate hello.o. And then i tried insmod hello.o but to my luck no go . i know this method works with kernel 2.4. But with 2.6 i am not much sure
Finally i tried gcc -I/usr/src/linux-2.6.5-1.358/include -c hello.o
************
I really dont know what i am doing wrong please suggest me as it is really very important for me.
Thank you in advance
(Log in to post comments)
Driver porting: hello world Posted Oct 28, 2007 10:05 UTC (Sun) by ravidubey (guest, #32563) [Link] in the code snippet, you dont have a cleanup_module (both are init_module functions) and in the compilation log, you are getting cleanup_module...Seems you have not copied the correct code... Ferrari
|
Copyright © 2008, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds
Powered by Rackspace Managed Hosting.