Hi
I am presently working on ti dm816x spectrum digital board. I am trying to cross compile the simple helloworld kenel module from my host(kernel 2.6.34) for the target (2.6.37). I am using following make file
obj-m := helloworld.o
ccflags-y := -I/usr/local/ezsdk/board-support/linux-2.6.37-psp04.04.00.01/include
KDIR := /usr/local/ezsdk/board-support/linux-2.6.37-psp04.04.00.01
PWD := $(shell pwd)
CROSS := arm-none-linux-gnueabi-
all:
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) ARCH=arm CROSS_COMPILE=$(CROSS) modules
clean:
rm -rf $(wildcard *.o *.ko *.mod.* .c* .t* test Module.symvers *.order *.markers)
with this make file i am able to get the helloworld.ko file but when i am trying to insmod the helloworld.ko file i got the error like
helloworld: no symbol version for module_layout
insmod: error inserting 'helloworld.ko': -1 Invalid module format
dmesg output:helloworld: no symbol version for module_layout
when i am trying to use the modprobe i am getting following error:
Module helloworld.ko not found.
please help me out