Results 1 to 2 of 2
Thread: Hello world Kernel module
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Dec 2009
Hello world Kernel module
I am trying to get the hello world kernel module running. I am using Linux Ubuntu 8.04. The first question is, do I have to have the kernel source code to get it running? My kernel version is 2.6.24-16-generic. I think I only need the headers. Could someone verify this for me. Could someone outline the steps to get it running?
Also, yesterday, I was going through a tutorial to compile a kernel and I download kernel 2.6.10, I wanted to follow the tutorial to the end, it was to compile a kernel and write a system call. Do I have to download version 2.6.24-16? Was it wrong to download 2.6.10? I was able to see the new kernel in the bootup and was able to go into it. I entered a line of code to print a message in the main.c program, but when I rebooted I did not see the message coming up.
Any help would be greatly appericated.
just install headers with sudo apt-get install linux-headers-`uname -r`