Forum Menu




 


Log in Problems?
New User? Sign Up!
AVR Freaks Forum Index

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
hce
PostPosted: Apr 12, 2010 - 07:54 AM
Raving lunatic


Joined: Jan 07, 2003
Posts: 4580
Location: Oslo, Norway

Hi all,

I guess some of you keep up with Ubuntu releases a bit faster than new packages for the AVR32 GNU toolchain is available. The main issue is libboost dependencies, but they can be worked around.

The following packages are needed to install avr32-gnu-toolchain

libboost-date-time1.34.1
libboost-filesystem1.34.1
libboost-filesystem1.38.0
libboost-system1.38.0
libboost-thread1.34.1
libboost-thread1.38.0

Which means you need to download the packages manually and install them with dpkg.

For 32-bit installations grab:
http://no.archive.ubuntu.com/ubuntu/poo ... 1_i386.deb
http://no.archive.ubuntu.com/ubuntu/poo ... 1_i386.deb
http://no.archive.ubuntu.com/ubuntu/poo ... 6_i386.deb
http://no.archive.ubuntu.com/ubuntu/poo ... 6_i386.deb
http://no.archive.ubuntu.com/ubuntu/poo ... 1_i386.deb
http://no.archive.ubuntu.com/ubuntu/poo ... 6_i386.deb

For 64-bit installations grab:
http://no.archive.ubuntu.com/ubuntu/poo ... _amd64.deb
http://no.archive.ubuntu.com/ubuntu/poo ... _amd64.deb
http://no.archive.ubuntu.com/ubuntu/poo ... _amd64.deb
http://no.archive.ubuntu.com/ubuntu/poo ... _amd64.deb
http://no.archive.ubuntu.com/ubuntu/poo ... _amd64.deb
http://no.archive.ubuntu.com/ubuntu/poo ... _amd64.deb


Place the files downloaded above in some common folder and install them by executing dpkg directly
Code:
sudo dpkg --install libboost*


Afterwards you can install the avr32-gnu-toolchain package in the normal way (apt-get, aptitude, synaptics). Just remember to add the following line in /etc/apt/sources.list
Code:
deb http://distribute.atmel.no/tools/avr32/release/ubuntu/ karmic main


Happy hacking with AVR32 Twisted Evil
 
 View user's profile Send private message  
Reply with quote Back to top
PAgore
PostPosted: May 27, 2010 - 12:19 PM
Newbie


Joined: May 27, 2010
Posts: 1


Thank You! Smile
I had this problem on my Debian Squeeze.
 
 View user's profile Send private message  
Reply with quote Back to top
magicstocki
PostPosted: Sep 17, 2010 - 09:17 PM
Newbie


Joined: Dec 06, 2008
Posts: 1


Perfect, I just wanted to ask why my installation failed.
 
 View user's profile Send private message  
Reply with quote Back to top
djhuft
PostPosted: Jan 09, 2011 - 05:50 AM
Newbie


Joined: Jun 20, 2010
Posts: 2


I seem to be having similar problems with Fedora. I am currently running FC13 and trying to install the various 2.4.2 toolchain RPMs. I've got some of them installed, but it appears that the rest are not finding the boost and xerces libraries.

All of the errors I am getting involve shared object dependencies. For example:
Code:
$ sudo yum install libavrtools-4.1.0-1.fc12.i686.rpm
Loaded plugins: presto, refresh-packagekit
Setting up Install Process
Examining libavrtools-4.1.0-1.fc12.i686.rpm: libavrtools-4.1.0-1.fc12.i686
Marking libavrtools-4.1.0-1.fc12.i686.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package libavrtools.i686 0:4.1.0-1.fc12 set to be installed
--> Processing Dependency: libboost_filesystem-mt.so.5 for package: libavrtools-4.1.0-1.fc12.i686
--> Processing Dependency: libboost_thread-mt.so.5 for package: libavrtools-4.1.0-1.fc12.i686
--> Processing Dependency: libxerces-c.so.28 for package: libavrtools-4.1.0-1.fc12.i686
--> Finished Dependency Resolution
Error: Package: libavrtools-4.1.0-1.fc12.i686 (/libavrtools-4.1.0-1.fc12.i686)
           Requires: libxerces-c.so.28
Error: Package: libavrtools-4.1.0-1.fc12.i686 (/libavrtools-4.1.0-1.fc12.i686)
           Requires: libboost_filesystem-mt.so.5
Error: Package: libavrtools-4.1.0-1.fc12.i686 (/libavrtools-4.1.0-1.fc12.i686)
           Requires: libboost_thread-mt.so.5
 You could try using --skip-broken to work around the problem



Is it impossible to install the FC12 files on my newer version?
 
 View user's profile Send private message  
Reply with quote Back to top
hce
PostPosted: Jan 10, 2011 - 06:35 AM
Raving lunatic


Joined: Jan 07, 2003
Posts: 4580
Location: Oslo, Norway

An option is to download AVR32 Studio v2.6 or v2.7, since it contains a static compiled toolchain.
 
 View user's profile Send private message  
Reply with quote Back to top
Commanderbob
PostPosted: Jul 30, 2011 - 05:12 PM
Wannabe


Joined: Apr 18, 2008
Posts: 72


The links are broken.
 
 View user's profile Send private message  
Reply with quote Back to top
hce
PostPosted: Jul 31, 2011 - 10:08 AM
Raving lunatic


Joined: Jan 07, 2003
Posts: 4580
Location: Oslo, Norway

Commanderbob wrote:
The links are broken.
You don't need to do it the hard way anymore either. Just use the GNU toolchain for Linux available at http://www.atmel.com/dyn/products/tools ... ly_id=1965
 
 View user's profile Send private message  
Reply with quote Back to top
magellan
PostPosted: Sep 07, 2011 - 06:01 AM
Hangaround


Joined: Oct 27, 2004
Posts: 131


hce wrote:
Commanderbob wrote:
The links are broken.
You don't need to do it the hard way anymore either. Just use the GNU toolchain for Linux available at http://www.atmel.com/dyn/products/tools ... ly_id=1965


Where do I install that toolchain?

The avr32 package was great, it was easy to install and it just worked.

The reason I have to install the toolchain is because I'm installing AVR32Studio 2.5 because AVR32 studio 2.6 doesn't work due to:

a) the "extension not found" error.

b) whenever I clicked on the serial terminal it crashed and AVR32Studio closed

UPDATE:
The toolchain appears to be incomplete, the following binaries are missing:

avr32program, avr32gdbproxy, avrfwupgrade

I can't copy these over from my previous install because of the missing boost libraries.

what a mess ...
 
 View user's profile Send private message  
Reply with quote Back to top
martinwguy
PostPosted: Sep 07, 2011 - 05:27 PM
Newbie


Joined: Aug 16, 2010
Posts: 11


Hi
Iàve writte a tutorial about diffferent ways of installing the latest GNU toolchain, including compiling it from source, which is sure to work everywhere. There are also the magic runes for hoisting the missing programs out of the old distro.

http://code.google.com/p/mizar32/wiki/CompilingElua

Yes, Atmel's Linux distro support is a barely functional crock. They should employ me Smile

M
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
magellan
PostPosted: Sep 08, 2011 - 12:32 AM
Hangaround


Joined: Oct 27, 2004
Posts: 131


martinwguy wrote:
Hi
Iàve writte a tutorial about diffferent ways of installing the latest GNU toolchain, including compiling it from source, which is sure to work everywhere. There are also the magic runes for hoisting the missing programs out of the old distro.

http://code.google.com/p/mizar32/wiki/CompilingElua

Yes, Atmel's Linux distro support is a barely functional crock. They should employ me Smile

M

Thanks, I'll take a look. If I had of known that I'd be spending a whole day trying to install broken software I would have just gone and built the toolchain from scratch - like I do for my ARM development work.

I tell you what would be useful, get newlib out of the toolchain! In comparison, AVR-glibc has better features than that thing (for smaller processors). e.g. tying the uart to stdio is really easy, no SRAM is wasted for a heap that never gets used.
 
 View user's profile Send private message  
Reply with quote Back to top
magellan
PostPosted: Sep 08, 2011 - 04:47 AM
Hangaround


Joined: Oct 27, 2004
Posts: 131


martinwguy wrote:
Hi
Iàve writte a tutorial about diffferent ways of installing the latest GNU toolchain, including compiling it from source, which is sure to work everywhere. There are also the magic runes for hoisting the missing programs out of the old distro.

http://code.google.com/p/mizar32/wiki/CompilingElua

Yes, Atmel's Linux distro support is a barely functional crock. They should employ me Smile

M

Thank you! I've now got a (mostly) working AVR32Studio 2.5 with the old toolchain 2.4.2. I can use existing project files.
 
 View user's profile Send private message  
Reply with quote Back to top
fraza077
PostPosted: Dec 01, 2011 - 03:14 AM
Newbie


Joined: Dec 01, 2011
Posts: 2


Hi,

I tried installing the 2.4.2 Toolchain using martinwguy's instructions as I need the avr32program e.t.c to run avr32studio. Unfortunately it doesn't seem to work because I'm running Linux (Ubuntu 11.10) at 64bit.
To be honest if I can avoid using any IDE I'd be happy but at the moment I can't figure out anyway of uploading code onto my UC3C0512C on my STK600 on linux at all. Avrdude doesn't support avr32 right?

Any Ideas?
 
 View user's profile Send private message  
Reply with quote Back to top
gchapman
PostPosted: Dec 01, 2011 - 04:56 AM
Posting Freak


Joined: Jan 09, 2007
Posts: 1873
Location: Arlington, Texas, U.S.A.

AVRDUDE is only for AVR (not AVR32).
FLIP should work but I don't know if FLIP on Linux was updated for UC3C.
An alternate for USB DFU is http://dfu-programmer.sourceforge.net/
and it has been updated for UC3C.
I hope you still have Atmel's USB DFU bootloader on-chip.
Edit: Else AVR32 Studio 2.6 Release Notes mentions avr32program.
 
 View user's profile Send private message  
Reply with quote Back to top
sambrown
PostPosted: Dec 02, 2011 - 06:49 PM
Hangaround


Joined: May 24, 2011
Posts: 253
Location: Berlin

Atmel's USB DFU bootloader can be reprogrammed from avr32 studio. In case you have a connected JTAGICE MKII debugger, right-click on it (AVR Targets). -> Program bootloader

It's also possible to use the "internal" studio's avr32tools from the command line. You will find them in the sub folder of your avr32 studio installation.

$ find . -iname avr32program
./plugins/com.atmel.avr.utilities.linux.x86_3.0.0.201012011602/os/linux/x86/bin/avr32program

-sb

PS.: UC3C0512C is not supported by avr32 studio 2.6 - I'm using the beta 2.7 version and you can download a 64-Bit version here: http://www.atmel.no/beta_ware/
command line looks like:
$ avr32program -pjtagicemkii -c USB:${1} --part ${2} program -finternal@0x80000000,512Kb -cint -v -O0x80000000 -Felf ${3}
with: ${1} set to your debugger's 12-digit serial numer, ${2} set to UC3C0512C and your elf-binary ${3}
 
 View user's profile Send private message  
Reply with quote Back to top
fraza077
PostPosted: Dec 05, 2011 - 08:33 PM
Newbie


Joined: Dec 01, 2011
Posts: 2


Thanks, I'll give it a go.
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2006 The PNphpBB Group
Credits