How to create a module for beagle board?

Hi, I have been working with the beagle board and I wanted to write a
module to add external hardware to the beagle.

I started cross-compiling using Sourcery, compiled the simple hello
world and it works fine

Now i want to make a simple module, but i am having trouble cross-
compiling it, it works fine in ubuntu, but i don't know how to use it
on the beagle.

I have downloaded the kernel source code from:

and I compiled it using the steps:

make CROSS_COMPILE=arm-none-linux-gnueabi- distclean
make CROSS_COMPILE=arm-none-linux-gnueabi- omap3_beagle_defconfig
make CROSS_COMPILE=arm-none-linux-gnueabi- uImage

My main problem I believe is making the Makefile, since I can't find
the needed folders since there is no /build folder inside the kernel

Thanks for your help, I attack the hello.c & Makefile that I used on
Ubuntu Linux

Any links to examples would be highly appreciated

Simple Module Code:


After some time I got it working, someone asked me how it went and I
send him a reply, i'll attach the answer to help future people that
will come this way.