A similar hello.c kernel module source file is found in chapter 2, page
16. Your version of hello.c has typos. Similarly, try using the
Makefile file from chapter 2, page 24.
Once you have those files in place, make sure you've defined the
necessary enviornment variables. Here's what the relevant environment
variables look like for bash on my system:
Thanks Ricordo for the quick answer…
I will give it a try … but i think that the steps provided are for making a *.ko file on a pc and than porting it to the beaglebone. Correct me if i am wrong.
But i was looking to make the module on the beaglebone itself.
thanks
Kamran
Thanks Ricordo for the quick answer.....
I will give it a try ... but i think that the steps provided are for
making a *.ko file on a pc and than porting it to the
beaglebone. Correct me if i am wrong.
But i was looking to make the module on the beaglebone itself.
Hello Kamran,
That is correct: I assumed you were cross-compiling. I don't have much
experience with native kernel module builds, but you will probably not
need the ARCH or CROSS_COMPILE environment variables. I expect the rest
of the process to be similar.