----- Original Message ----- From: "K S Sandeep" <kssandeep@xxxxxxxxx> To: kernelnewbies@xxxxxxxxxxxx Subject: Information abt creating a sample device driver Date: Wed, 19 Jan 2005 21:37:39 -0800 > > Hello everybody, > > i am new to device driver programming. I have created a sample hello > world!! program for 2.6 kernel and named the file as hello.c. > > i compiled it with Gcc as $gcc -c hello.c to get hello.o there are some more options to be passed to gcc. beginning linux programming by richard stones has the answer. so does lkmpg of tldp.org > > then i tried isnerting the module as $insmod hello.o it gives me some > error messages saying that the module created is of invalid type. > > can i just do a normal compilation or do i need to create a makefile > and add some additional information into it. > > > Thanks in advance > sandeep > > -- > Kernelnewbies: Help each other learn about the Linux kernel. > Archive: http://mail.nl.linux.org/kernelnewbies/ > FAQ: http://kernelnewbies.org/faq/ -- ______________________________________________ Check out the latest SMS services @ http://www.linuxmail.org This allows you to send and receive SMS through your mailbox. Powered by Outblaze -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/