OLIMEX BOARD AT91SAM9260 , CD AND CROSS COMPILER

Does anybody know how to install the files provided in the OLIMEX cd:

arm-linux-gcc-3.4.3-1.0.1.tar.bz2

crosstool-linux-gcc-4.0.1-glibc-2.3.5.tar.bz2

I think that they are the cross compiler for the ARM processor.

Thank You very much.

See viewtopic.php?t=11083

I’d like to modify my /etc/profile like stated in the post , here’s the mine:

/etc/profile: system-wide .profile file for the Bourne shell (sh(1))

and Bourne compatible shells (bash(1), ksh(1), ash(1), …).

if [ “$PS1” ]; then

if [ “$BASH” ]; then

PS1='\u@\h:\w$ ’

if [ -f /etc/bash.bashrc ]; then

. /etc/bash.bashrc

fi

else

if [ “id -u” -eq 0 ]; then

PS1='# ’

else

PS1='$ ’

fi

fi

fi

umask 022

please , can you tell me how to modify it to add permanently /opt/crosstool/gcc-4.0.1-glibc-2.3.5/bin to PATH, /opt/crosstool/gcc-4.0.1-glibc-2.3.5/man to MANPATH, and /opt/crosstool/gcc-4.0.1-glibc-2.3.5/info to INFOPATH ?

I’m a beginner with linux (UBUNTU 8.04) and embedded linux.

Thank you very much for your kindness.

My sister’s Gutsy Gibbon defines PATH in /etc/environment

There is no MANPATH variable

Directories for manual pages are configured in /etc/manpath.config

It doesn’t use INFOPATH as well

Info only searches in the default directories

You can create an INFOPATH variable in /etc/environment

If you add a trailing “:” to the string, you don’t need to repeat the default directories

Thank you so much. Now I own a full functional arm toolchain.

The detailed procedure that I’ve used is the following (under UBUNTU 8.04)

1)copy in “/home/caccolillo” the two files provided in the directory “cross_compiler” in the olimex cd

  1. in a terminal window give “su” to become root

  2. give “tar xjCf / arm-linux-gcc-3.4.3-1.0.1.tar.bz2” to extract the first file

  3. give “tar xjCf / crosstool-linux-gcc-4.0.1-glibc-2.3.5.tar.bz2” to extract the second one

5)give “gedit /etc/environment” to open the text editor

  1. append the string opt/crosstool/gcc-4.0.1-glibc-2.3.5/arm-unknown-linux-gnu/bin on the tail of the first row where there’s “PATH=…” and save the file

  2. close the terminal window

  3. restart UBUNTU

  4. in a terminal window give echo $PATH to check if there’s the new path previously added /opt/crosstool/gcc-4.0.1-glibc-2.3.5/ arm-unknown-linux-gnu/bin"

  5. to compile for example the source file (present in the /home/caccolillo directory) “led.c” I must use the following command:

arm-unknown-linux-gnu-gcc -c led.c

  1. not necessary

  2. it installs usefull stuff into /usr/local/arm/3.4 and 79k mostly useless files into /opt/buildroot

  3. missing :confused: at the beginning of the string

  4. no need to restart Ubuntu, logout+login works as well