ts-7000
[Top] [All Lists]

[ts-7000] How do I install the toolchain

To:
Subject: [ts-7000] How do I install the toolchain
From: "rajsaima" <>
Date: Wed, 17 Feb 2010 05:21:05 -0000
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/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU