
RP6 ROBOT SYSTEM - 3. Hardware and Software Setup
All relevant installation files for avr-gcc, avr-libc and binutils can be found in the fol-
lowing directory:
<CD-ROM-Drive>:\Software\avr-gcc\Linux
Start by copying all install files to a directory on your hard disk – this is valid for both
installation methods! In this case we will be using the Home directory (a standard
shortcut for the Home directory is the swung dash or tilde-character: “~”).
> mkdir ~/RP6
> cd <CD-ROM-Drive>/Software/avr-gcc/Linux
> cp * ~/RP6
These files may be removed after successful installation to save disk space!
3.2.3.1. Automatic install script
After having set the script to executable by using chmod, you may proceed as follows:
> cd ~/RP6
> chmod -x avrgcc_build_and_install.sh
> ./avrgcc_build_and_install.sh
You may respond with “y” to the question, whether you are willing to install this con-
figuration or not.
ATTENTION:
The compile and install process will take some time depending on your
system's performance (e.g. approximately 15 minutes on a 2GHz CoreDuo
Notebook – slower systems may need some more time).
The script will also apply a few patches – these are labelled .diff-files in the directory.
Having completed the process you should see the following message:
(./avrgcc_build_and_install.sh)
(./avrgcc_build_and_install.sh) installation of avr GNU tools complete
(./avrgcc_build_and_install.sh) add /usr/local/avr/bin to your path to use the avr GNU tools
(./avrgcc_build_and_install.sh) you might want to run the following to save disk space:
(./avrgcc_build_and_install.sh)
(./avrgcc_build_and_install.sh) rm -rf /usr/local/avr/source /usr/local/avr/build
Then you may proceed as suggested by executing:
rm -rf /usr/local/avr/source /usr/local/avr/build
This command will delete all temporary files, which are not needed anymore.
You may now proceed to the next step and set the path environment variable to the
avr-tools.
If the script ends up with some error message, you will have to read the error-mes-
sages carefully (and scroll up in the console!) – sometimes programs are missing,
which will have to be installed in a preceding step (e.g. the previously mentioned pro-
gram texinfo).
Before proceeding after an error message, we advise you to delete the previously
generated files in the standard installation directory “/usr/local/avr”. We even advise
you to delete the complete directory.
If you are unsure what went wrong, please save all command line outputs into a file
and send the relevant error description and the text file to the support team. Please
send all the available information! This will make it easier to help you.
- 34 -