Find the answer to your Linux question:
Results 1 to 2 of 2
Hi Everyone, 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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2009
    Posts
    5

    Hello world Kernel module


    Hi Everyone,

    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.

  2. #2
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    just install headers with sudo apt-get install linux-headers-`uname -r`

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •