[Moderator's note: as that thread is sticky now, please
avoid followups here. Rather open your own new thread
instead.]
*** YOU MUST LOG IN TO DOWNLOAD THE SCRIPTS ***
*** Experimental DEBUGGING of XMEGA's is supported on Linux. But the full protocol is still an Atmel secret.
See : https://www.avrfreaks.net/index.p...
Now also as a .deb install package ... Read further on below
Here is a list of Linux tools & tips i use on Ubuntu
https://www.avrfreaks.net/index.p...
Guyzz i have succeded in building avr-gcc-4.3.4 w. avr-libc-1.6.8 , and Jörg's latest patches on my Ununtu 10.04
I'm only testing on the latest Ubuntu LTS.
All other version & distro's , are not guaranteed to work/compile. I'll try to help out , and so will the forum i'm sure. But don't demand support if it doesn't work , just ask nicely in the forum
I am enclosing the scripts i use (credits of A. Erasmus) , if they could be of any use
The steps are these:
Read Readme.txt
Then install the packages listed in pre-reqs.txt.
Note !!
Don't try to call the scripts from another directory location , always execute from same directory where the scripts are located.
The current scripts uses recursive deletes , that could erase the harddisk if the above isn't honored.
Then....
1: Make sure you are root (blushing) , or use sudo
2: Make a working directory , where you extract the files from the archive.
3: If desired edit the buildavr-no-insight.sh file , to change the prefix .. default is : prefix=/usr/local/avr
4: Make sure that the prefix dir is empty or nonexisting
5: Run : chmod +x *.sh
6: Run : ./getfiles.sh
7: Run : ./get-patches.sh
8: Run : ./buildavr-gdb.sh
9: Run: ./buildavr-toolchain.sh
You just answer yes to the existing directory question in step 9.
When building is done , you might want to free around 500MB of diskspace by removing the sources and binaries used to make avr-gcc.
To do so Run: ./buildavr-cleanup.sh
Note this little script expects the "build prefix" to be /usr/local/avr/
Edit:2
I have an avr user on my Linux-box for doing avr development , i have added this to my .bash_profile in my /home/avr directory , it sets up the path to avr-gcc.
# User specific environment and startup programs
PREFIX=/usr/local/avr
export PREFIXPATH=$PATH:$HOME/bin:$PREFIX/bin
export PATH
The script builds avr-gcc-4.3.4 w. binutils2.20 and then avr-libc-1.6.8
The script now also automaticly builds avarice-2.10 and avrdude-5.9 , as per request of Jörg.Note : gcc-4.3.x uses the GMP & MPFR libs , in order to function. So make sure to install the packets mentioned pre-reqs.txt
avr-insight is upgraded to ver 6.8 witch builds ok on 64-bit machines , and it has its own buildscript (buildinsight.sh) , as it takes ages to build.
Use: tar xvzf to extract it if it's a .tgz file, or unzip if it's a zipfile.
Just ansver yes if any of the scripts says that /usr/local/avr exists (ie. when building insight after gcc or the other way around.
But always delete /usr/local/avr before you are making a total/new rebuild.
Updated the scriptfiles to build binutils and insight without the -Werror flag. This was caused by GCC 4.3.x (on Ubuntu 8.10) being unable to build the targets. And was due to a lot of new warnings being enabled by default.
@20-jun-2009
Upgraded the "old" script building avr-gcc-4.2.2 to build avr-gcc-4.2.4 ... "Jörg did all the patches".
4.2.2 could produce more compact code in some cases.
@14-jul-2009
Upgraded the script to build avr-libc-1.6.7 and avrdude-5.8 , no changes to avr-gcc.
As usual "Jörg & the others" did all the hard work.
@12-aug-2009
Upgraded the avr-gcc-4.2.4 script to build avr-libc-1.6.7 and avrdude-5.8.
Also applied a "Hotfix patch" to binutils , to avoid a relocation error in the AVR25 architecture (tiny85 etc).
Everybody is urged to rebuild their toolchain
@29-0ct-2009
Updated the avr-gcc-4.1.2 binutils 1-17 avr-libc-1.46
script , as it failed in makeinfo.
Moved the updated script to this post
https://www.avrfreaks.net/index.p...
@03-Nov-2009
Updated the avr-gcc-4.3.3 script , with an avarice patch , to fix a problem when building with "native" gcc 4.4.1
@01-Dec-2009
Made a Debian/Ubuntu ".deb" install package containing the binaries build with the above 03-Nov-2009 script.
Read more here
https://www.avrfreaks.net/index.p...
@17-Dec-2009
Updated the ".deb" install package , w. a new avrdude binary , containing a PDI patch. (See .txt file in the download site)
Read more here
https://www.avrfreaks.net/index.p...
@16-Jan-2010
Updated the avr-gcc-4.3.3 script , to build avrdude-5.9
Removed the two "interrim avrdude patches" , as 5.9 should fix that.
All other remains unchanged.
The script still includes the "AVR25 relocation fix" patch , and the avarice patch
@18-Jan-2010
Updated the ".deb" install package (named 16-jan-2010) , w. avrdude-5.9. (See .txt file in the download site)
Read more here
https://www.avrfreaks.net/index.p...Get the package here.
http://www.wrightflyer.co.uk/avr...
@26-Jan-2010
Updated the scriptfiles and the ".deb" install package to 26-jan-2010 , Added avrdude-5.10 , all other unchanged.Get the package here.
http://www.wrightflyer.co.uk/avr...
@25-Feb-2010
Made a "Special Static" version , with the patches from WinAVR-20100110-install.exe , so it should be compatible.Should be installable on both 32-bit & 64-bit versions.
See https://www.avrfreaks.net/index.p...Get the package here.
http://www.wrightflyer.co.uk/avr...
@09-Mar-2010
Updated the avr-gcc script , to build avr-gcc-4.3.4 and binutils-2.20.
Added 2 patches to avr-insight/avr-gdb.
Added a builtins.h file in the builddir , see readme for useAdded a package-versions file , now versions are only maintained in that file.
Added a new "automatic" way to patch binutils , gcc & insight.Thanx to Jörg the linux (FreeBSD) build , now has the same patches as WinAVR-2010. A big thankyou to Jörg & EW.
Also uploaded as .deb package avr-gcc-4.3.4-avrfreaks-09-mar-2010.deb
Get the package here.
http://www.wrightflyer.co.uk/avr...
@30-apr-2010
Rebuild the 09-mar-2010 packages on Ubuntu 10.04 LTS
This time i have a x64 system , so i build both 32bit (i386) and 64bit x64 packages.Uploaded as .deb packages here
http://www.wrightflyer.co.uk/avr...
Only toolchain change is : Updated insight from 6.8 to 6.8-1
@04-jun-2010
Updated buildscript to build avr-insight to 6.8-1
No other changes , and no new .deb's as the 30-apr deb's allready contains that.
@12-sep-2011
Did a rebuild of the old trusty avr-gcc-4.3.4 toolchain , with avr-libc-1.7.1 and avrdude-5.11 - avr-insight has switched from 6.8-1 to 6.8-1aHad to do a "kludge" in order to build avr-insight , ad the file is named 6.8-1a , but it extracts to 6.8-1 directory
Run ./repack-insight.sh , before ./buildinsight.shRemoved all the rm -fr * , from the buildscript
See readme in zipfile
Also uploaded .deb files to http://www.wrightflyer.co.uk/avr...
@20-sep-2011
Updated the 12-sep-2011 package (see install instructions there)avrdude updated from 5.11 to 5.11.1 (Serious Bugfix)
avarice updated from 2.10 to 2.11 )minor compilation issues)See readme in zipfile
Also uploaded .deb files to http://www.wrightflyer.co.uk/avr...
@29-dec-2011
Updated the buildscript with the latest patches from the FreeBSD repos (Thanx Jörg)avr-gcc updated to 4.5.1
avr-libc updated to 1.8.0
binutils updated to 2.20.1
avarice updated to 2.12
insight replaced with gdb 7.3.1See readme in zipfile
More info & comments should go here
https://www.avrfreaks.net/index.p...05-jan-2012
Also uploaded .deb files to http://www.wrightflyer.co.uk/avr...
@08-mar-2012
Updated the buildscript with suggestions/patches from Axel W. (Uracoli)
The suggestions makes the get-patches.sh script more secure , and improves on the buildavr-cleanup.sh script.The resulting toolchain is the same as the 29-dec-2011 TC.
Thanx Axel.
@26-feb-2013
Updated the buildscript with working file mirrors
@30-nov-2013
Updated the buildscript to build :
avrdude 6.0.1 (Thanx Jörg)
avr-gdb 7.6.1
@26-apr-2014
Updated the buildscript to build :
avrdude 6.1 (Thanx Jörg)
and included the patches in the zipfile
So skip the get-patches.sh step
/Bingo
.
.
.