|
Hi, I am trying to compile a simple module. however make produces error.
I installed the kernel source, tar -xvjf linux-2.6.27.tar.bz2 cd linux-2.6.27 zcat 2.6.27-at91.patch.gz |patch -p1 zcat 2.6.27-at91-exp.3.patch.gz |patch -p1 cp at91sam9g20ek_defconfig .config make ARCH=arm oldconfig make ARCH=arm menuconfig make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- no error. Following is the beginning of the "make" messages: lww@ubuntu:~/work/learn/01$ make make -C /home/lww/linux2.6.27/linux-2.6.27 M=/home/lww/work/learn/01 modules make[1]: Entering directory `/home/lww/linux2.6.27/linux-2.6.27' CC [M] /home/lww/work/learn/01/helloworld.o In file included from include/linux/prefetch.h:13, from include/linux/list.h:6, from include/linux/module.h:9, from /home/lww/work/learn/01/helloworld.c:1: include/linux/types.h:12: fatal error: asm/types.h: No such file or directory compilation terminated. make[2]: *** [/home/lww/work/learn/01/helloworld.o] Error 1 make[1]: *** [_module_/home/lww/work/learn/01] Error 2 make[1]: Leaving directory `/home/lww/linux2.6.27/linux-2.6.27' make: *** [modules] Error 2
thanks
|