ts-7000
[Top] [All Lists]

Re: [ts-7000] Re: Trying to setup for developement.

To:
Subject: Re: [ts-7000] Re: Trying to setup for developement.
From: Jeff Cunningham <>
Date: Fri, 11 Jan 2008 13:54:58 -0800
Richard wrote:

>  I did download the files and go threw them however I am not quite
>  sure what to do it them. I found the readmess int here ahrd to
>  understand, one made refrence to a script that would install it for
>  you however the tar files had no such script. I have also went threw
>  the linux guide as well, but found the explinations to be some what
>  limited. This is probably mostly becasue of my unfamiliarity to the
>  linux opperating system. I have an idea of how it works but when it
>  comes to where things are located and what not I am at a loss.
>
>  Richard
>

Okay, so bunzip your toolchain tarball in some directory. In my case, it 
ended up creating this path:

/home/ts7200/arm-none-linux-gnueabi/

(I was in /home/ts7200 when I bunzipped the toolchain tarball). Inside 
that directory is a bin/ directory which contains your toolchain. If you 
want to compile hello.c for your TS-board all you need to do is

/home/ts7200/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc 
hello.c -o hello

Typically, you would add this bin/ directory to your path so you can 
omit a chunk of this string:

PATH="/home/ts7200/arm-none-linux-gnueabi/bin:$PATH"

Put that line in your ~/.bashrc or ~/.bash_profile (if you are using 
bash as your shell), or wherever your shell configuration sources its 
environment variables. Resource this file after you change it until you 
re-log in (or log out and log back in again). Check it with:

env | grep PATH

Now you've reduced your command to

arm-none-linux-gnueabi-gcc hello.c -o hello

If you do a lot of command line compiling you will want to define an alias:

alias ccarm="arm-none-linux-gnueabi-gcc"

But typically, you work with Makefiles within which you either define

CC=arm-none-linux-gnueabi-gcc

or

CROSS_COMPILE ?= 
/home/ts7200/2.6/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-

and it will append the tool it wants to this string. Note that the PATH 
changes aren't necessary for this method.

Of course, you want to substitute the name of your toolchain for 
"arm-none-linux-gnueabi"

Try that.

--Jeff





 
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