Hi,
[1]
I am working with AM335x. I want to write a simple Loadable Kernel Module (LKM)
and load it into the Linux OS running on the target board.
[2]
I managed to build a LKM on my host Linux System /*Ubuntu 2.6.35-32-generic, 64 bits*/
with a makefile as in Appendix 1. I am able to load and unload the resulting lkm.ko file
(with insmod & rmmod).
[3]
Now I'm trying to create a the same for my embedded am335x board with Linux
using http://processors.wiki.ti.com/index.php/AMSDK_Linux_User's_Guide page.
The closest instrouction I found there is:
make ARCH=arm CROSS_COMPILE=arm-arago-linux-gnueabi- modules
I tried to create corresponding makefile to build a LKM but have not managed to do so.
[4]
Does anybody know how can I build LKM for am335x?
Thanks,
Yan
=======================================================
Appendix 1:
obj-m += lkm.o
all:
sudo make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
clean:
sudo make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean