Building kernel modules on Edgy (with the default Ubuntu kernel)
ben darby
ben at cvrse.com
Thu Nov 9 11:17:00 UTC 2006
* Nils Br?nggel wrote:
> Hello,
>
> I tried to build a simple hello world module accodring to this. [1]
> However it did not work for me for some reason. (I never built kernel
> external modules before) The question is how can I build this on Edgy,
> with the Edgy default kernel, which souce packages do I need (are the
> kernel headers enough) and how would a working makefile look?
>
>
> Nils
>
> -------------------------------------------------------------------
> [1] http://tldp.org/LDP/lkmpg/2.6/html/x121.html
Nils, from a stock edgy install you just need to install
linux-headers-`uname -r`
the makefile is provided for you on the next page of that guide put it
in the file Makefile and run make then sudo insmod ./hello-1.ko
--
ben darby
More information about the ubuntu-users
mailing list