Hi all,
I have a TS7300 board and need to write some drivers for it. I want to install
the ARM toolchain that Technologic provides on a CD on my RedHat desktop (
Kernel 2.6). I downloaded -
tskernel-2.4.26-ts9-src.tar.gz and installed it in my local directory as
kernel24. Then I unzipped the toolchain and installed that on my desktop as
well. I created a Makefile that looks like this -
===========================================================
KERNELDIR := /home/rmitra/linux24
CC=/home/rmitra/tsarm/cross-toolchains/usr/local/opt/crosstool/arm-linux/gcc-3.3.4-glibc-2.3.2/bin/arm-linux-gcc
LD=/home/rmitra/tsarm/cross-toolchains/usr/local/opt/crosstool/arm-linux/gcc-3.3.4-glibc-2.3.2/bin/arm-linux-ld
CFLAGS = -D__KERNEL__ -DMODULE -I$(KERNELDIR)/include -O2 -Wall
#top level driver object
all:skull.o
skull.o:skull_init.o skull_clean.o
$(LD) -r $^ -o $@
clean:
rm -rf *.o *~ core
================================================================
I created a loadable object ( infamous skull_init.c/skul_cleanup.c from the
device driver book) and tried -
:driver# insmod skull.o
skull.o: kernel-module version mismatch
skull.o was compiled for kernel version 2.6.0
while this kernel is version 2.4.26-ts11.
:driver# ll
I am getting that the object was created for kernel 2.6 ??
Is my toolchain not installed correctly ?? Why is this ??
Can someone tell me hoe to set up my corss compilation environment so that I
can write simple drivers/kernel modules ??
Thanks,
Rajat
------------------------------------
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/
|