I am fresh to learm ARM. I insert a module to the kernel after I compiled it.But it failed. The error is like this:
root@am3517-evm:~# insmod ./hello.ko
hello: module_layout: kernel tainted.
Disabling lock debugging due to kernel taint
hello: version magic '2.6.32 mod_unload ARMv5 ' should be '2.6.32-rc5 mod_unload modversions ARMv7 '
insmod: error inserting './hello.ko': -1 Invalid module format
Makefile:
obj-m :=hello.o
#KDIR=/usr/src/linux-headers-2.6.32-24-generic
KDIR=/home/daihongbo/opt/linux-03.00.00.05
#PWD=$(shell pwd)
PWD=/home/daihongbo/hello
default:
make -C $(KDIR) M=$(PWD) modules
clean:
rm -rf .*.cmd *.o *.mod.c *.ko ./*/*.o ./*/*.mod.c ./*/.*.cmd .tmp_version
The kernel I used is given by TI.There are many patches in the CD.But I don't know how to slove this problem. Can anyone help?