PDA

View Full Version : externel kernel module compilation



bonyshine
March 31st, 2010, 08:21 PM
hi all !
i'm totally new to programming in linux, and i begin with driver programming.

i have ubuntu 9.04.
i made my first module
exactly as in this tutorial http://www.linuxtopia.org/online_books/Linux_Kernel_Module_Programming_Guide/index.html

i've read the makefile i've somewhat understood it.

i made makefile and the source code hello.c then go to the directory and type make
it gives me make:nothing can be done for 'all'
i've read in some tutorials that i need linux kernel headers but i could'n download them
and i think ubuntu doesn't need it because it knew the make command.
so please tell me what the exact procedure to do.

jm4rc05
January 25th, 2011, 01:40 PM
Hi bonyshine,

Try this https://wiki.ubuntu.com/KernelCustomBuild and tell me if you got something working. Try first the simple recipe from Martin Pitt!