AVR32 General/Installing tools on Fedora

From AVRFreaks Wiki

Jump to: navigation, search

Contents

Installing RPM packages from CD-ROM

The development tools are provided as RPM packages for Fedora Core 5 on the STK1000 BSP CD-ROM's directory devel/linux/rpms/FC5. When the CD-ROM is inserted into the CD drive, it will normally be mounted in the /media/cdrom directory. Installing packages must normally be performed by the root user.

[root@computer ~]# cd /media/cdrom/devel/linux/rpms/FC5
[root@computer ~]# rpm -U stk1000bsp-release-*
[root@computer ~]# 

NOTE: Do not attempt to install all packages (*.rpm) from the CD-ROM! The gcc-avr32-*-c++-headers packages both contain header files for C++ development. Both packages can not be installed because they conflict. If the libstdc++-devel package for the same GCC version as the gcc-avr32 packages is installed on your system, none of the gcc-avr32-*-c++-headers are necessary.


Installation with yum

Fedora uses yum as the primary tool for software installation. To use yum with the STK1000 BSP, yum must first be made aware of the location of the BSP software repository. To do this, install the package stk1000bsp-release.

To verify that yum is aware of the BSP packages, execute yum grouplist. You should see "STK1000 BSP" in the list of groups. To install development environments for both AVR32 standalone and AVR32 Linux, execute the following command:

yum groupinstall "STK1000 BSP"

Note that the command must be exactly as shown here, including the quotes.

To install tools for standalone AVR32 only, execute the following command:

yum groupinstall "AVR32 Embedded Development"

To install tools for AVR32 Linux only, type

yum groupinstall "AVR32 Linux Development".


Getting updated packages

When updates to the AVR32 development tools packages are released, simply execute the command yum update to install the updates.


Using the JTAGICE mkII over USB

In order to use the JTAGICE mkII over USB for programming or debugging standalone applications, the user must be a member of the 'avrtools' group. This group is created when installing the libavrtools package.

To add a user to a group, perform the following command as root (assuming the username is joe):

[root@computer ~]# usermod -G avrtools -a joe

The user will need to log in again after being added to the group for the change to take effect.

Troubleshooting

If you experience problems when installing new packages due to conflicts with old, please uninstall the previous set of packages as follows:

yum remove package-name
Static version created: 2007-03-07
Copyright (c) 2007 Atmel Corporation