Happy new year everyone.
Sorry that I may repeat my question.
I still couldn't solve the problem, so I am trying to restate it.
My current destop linux is Fedora 2, with kernel 2.6.5-1.358, and my Z is
5500 with an updated ROM with kernel 2.4.6. I want to cross-comile
AODV-UU package for my Z, so that I may build an ad hoc wireless network
with my Z and my laptop.
I downloaded and installed my cross compiler as follows:
gcc-cross-sa1100-2.95.2-0.i386.rpm (gcc compiler for ARM architecture)
binutils-cross-arm-2.11.2-0.i386.rpm (binary utilities for ARM architecture)
glibc-arm-2.2.2-0.i386.rpm (GNU C libraries for ARM architecture)
linux-headers-arm-sa1100-2.4.6-3.i386.rpm (linux header files for ARM architecture)
This is how I compile the kernel module.
arm-linux-gcc -Wall -O2 -D__KERNEL__ -DMODULE -nostdinc -I /opt/Embedix/tools/lib/gcc-lib/arm-linux/2.95.2/include -I/opt/Embedix/tools/arm-linux/include -c -o kaodv.o kaodv.c
I got very strange error messages. It seems that the linux-headers I downloaded
didn't support netfilter?
Thanks a lot for your attention,