I am attempting to cross-compile a skeleton kernel module for my
TS-7300. I am compiling on an X86 machine running 2.6.15.7-ubuntu
using gcc-3.3.4 and glibc-2.3.2. I have compiled the module fine and
installed it in ubuntu with no problems. When I try to cross-compile
I get this error:
elliot-desktop:/media/hdb1/ts7300/modules/debian_2.4_ARM/pc104_module#
make
/usr/local/opt/crosstool/arm-linux/gcc-3.3.4-glibc-2.3.2/bin/arm-linux-gcc
-O2 -Wall -DMODULE -D__KERNEL__ -DLINUX -I/usr/src/linux24 -c pc104.c
In file included from
/usr/local/opt/crosstool/arm-linux/gcc-3.3.4-glibc-2.3.2/arm-linux/sys-include/asm/irq.h:4,
from
/usr/local/opt/crosstool/arm-linux/gcc-3.3.4-glibc-2.3.2/arm-linux/sys-include/asm/hardirq.h:7,
from
/usr/local/opt/crosstool/arm-linux/gcc-3.3.4-glibc-2.3.2/arm-linux/sys-include/asm-generic/local.h:7,
from
/usr/local/opt/crosstool/arm-linux/gcc-3.3.4-glibc-2.3.2/arm-linux/sys-include/asm/local.h:1,
from
/usr/local/opt/crosstool/arm-linux/gcc-3.3.4-glibc-2.3.2/arm-linux/sys-include/linux/module.h:21,
from pc104.c:4:
/usr/local/opt/crosstool/arm-linux/gcc-3.3.4-glibc-2.3.2/arm-linux/sys-include/asm/arch/irqs.h:11:28:
asm/mach-types.h: No such file or directory
pc104.c: In function `pc104_init_module':
pc104.c:145: warning: passing arg 2 of `request_irq' from incompatible
pointer type
pc104.c: At top level:
pc104.c:22: warning: `data' defined but not used
make: *** [pc104.o] Error 1
Here is my make file:
UNAME := $(shell uname -r)
KERNEL26 := 2.4
KERNELVERSION := $(findstring $(KERNEL26),$(UNAME))
all:: user
TARGET := pc104
INCLUDE := -I/usr/src/linux24
CFLAGS := -O2 -Wall -DMODULE -D__KERNEL__ -DLINUX
CC :=
/usr/local/opt/crosstool/arm-linux/gcc-3.3.4-glibc-2.3.2/bin/arm-linux-gcc
all:: ${TARGET}.o
${TARGET}.o: ${TARGET}.c
$(CC) $(CFLAGS) ${INCLUDE} -c ${TARGET}.c
user: user.c
gcc -o $@ $<
clean:
rm -rf *.o *.ko *.mod.*
Not sure where mach-types.h is? When I did a locate I cound only find
a copy of it in my ubuntu source. Any help would be greatly appreciated!!
-Elliot
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|