Documentation:AVR32 General/Installing tools on Ubuntu Linux
From AVRFreaks Wiki
Contents |
[edit] Ubuntu 6.06 - Dapper Drake
[edit] Installation with apt-get
[edit] Ubuntu 7.10 - Gutsy Gibbon
Probably the same as 8.04 but with the gutsy repository...
deb http://www.atmel.no/avr32/ubuntu/gutsy binary/
[edit] Ubuntu 8.04 - Hardy Heron
[edit] Installation with apt-get
Atmel changed their Debian packages on the 15th of April and removed the STK1000, the avr32-standalone-devel and the avr32-devel packages.
Add this line to /etc/apt/sources.list
deb http://www.atmel.no/avr32/ubuntu/hardy binary/
Update apt
sudo apt-get update
And then install the toolchain
sudo apt-get install avr32-gnu-toolchain
Links:
[edit] Other
Apt is the default package management system for Ubuntu Linux. To make Apt aware of the STK1000 BSP packages, you must add the following line to the end of the file /etc/apt/sources.list:
deb http://www.atmel.no/avr32/ubuntu/hardy binary/
The line must be exactly as shown above, including the trailing slash.
To refresh the list of available packages, execute the command
sudo apt-get update
To install development environments for both AVR32 standalone and AVR32 Linux, execute the command
sudo apt-get install stk1000bsp
To install tools only for AVR32 standalone, replace the above command with
sudo apt-get install avr32-standalone-devel
To install tools only for AVR32 Linux, type
sudo apt-get install avr32-linux-devel
[edit] Getting updated packages
When updates to these packages are released, simply execute the command:
sudo apt-get update
and to install the new packages:
sudo apt-get dist-upgrade
[edit] Creating a local repository from BSP CD
If you have a low bandwidth connection, there is an installation option using local repositories. You just need to get a copy of the STK1000 development board CD that contains the complete Board Support Package (provided by Atmel) and follow the next steps. You may download the ISO image from a lanhouse or at your work, for instance.
Steps:
- Create a local directory for holding the repository, for instance, /opt/ngw100:
sudo mkdir /opt/ngw100
- Copy all .deb files from BSP CD (suppose that CD is mounted at /media/cdrom):
sudo cp /media/cdrom/devel/linux/ubuntu/dapper/* /opt/ngw100/
- Create Packages.gz file:
cd /opt/ngw100/ sudo dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz
- Add a repository line to /etc/apt/sources.list, as below:
deb file:/opt/ngw100 ./
- Update your repositories:
sudo apt-get update
- Install packages, as above:
sudo apt-get install stk1000bsp
Following this procedure you will not receive updates from Atmel but may be a good starting point.
[edit] Troubleshooting
If you experience problems when installing new packages due to conflicts with old, please uninstall the previous set of packages as follows:
sudo apt-get remove package
If you are using a proxy server you must specify it:
export http_proxy=http://username:password@proxyaddress:port/
Did you receive the following message when trying to install stk1000bsp?
The following packages have unmet dependencies:
stk1000bsp: Depends: avr32gdbproxy but it is not going to be installed
Depends: avr32program but it is not going to be installed
Depends: avr32trace but it is not going to be installed
Depends: libavr32ocd1 but it is not going to be installed
E: Broken packages
If so, you need to add an additional line to your /etc/apt/source.list:
deb http://archive.ubuntu.com/ubuntu dapper main restricted universe multiverse
