SIMPLE KERNEL MODULE ERROR

Hi , i have got the latest cloud9 image for beaglebone. i need help in building a simple hello world kernel module , make and then inserting and removing the module from the kernel. but the beaglebone angstrom os does not have the needed headers file such … as modules.h.

can you help me how to go about it or what wrong steps i am taking?

Try:
opkg install kernel-headers*

http://feeds.angstrom-distribution.org/feeds/core/ipk/eglibc/armv7a/machine/beaglebone/kernel-headers_3.2-r10d+gitre8004dad869568692ca2a45c04e8464ce48cc4d7_beaglebone.ipk

thanks …i will try and let you know…

i did opkg install kernel-headers and opkg install kernel-dev successfully.
NOW,
i am using the following code…simple hello world kernel module

#include <linux/module.h>

#include <linux/kernel.h>

#include <linux/init.h>

static int __init hello_start(void)
{
printk(KERN_INFO “Loading hello module…\n”);
printk(KERN_INFO “Hello world\n”);
return 0;
}

static void __exit hello_end(void)
{
printk(KERN_INFO “Goodbye Mr.\n”);
}

module_init(hello_start);
module_exit(hello_end);

but while make … it say the module.h and kernel.h are not present.

can you tell me what to do next?