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
Bingo600
PostPosted: Nov 01, 2009 - 07:19 PM
Raving lunatic


Joined: Apr 25, 2004
Posts: 3809
Location: Denmark

obor00 wrote:
Hi,
Thanks for this useful thread.
I got an error when compiling with ./buildavr-no-insight.sh on my system: the error is due to my version of gcc installed on my PC, version 4.4.1. I got an error with "const char *" instead of "char *" which stopped the compilation.

To solve it, I added a 'sed' instruction to /buildavr-no-insight.sh before the avarice compilation:
Code:

   sed -i '98s/jtagDeviceName/(char *)jtagDeviceName/g' ../../source/${avaricebase}/src/jtag2usb.cc
   echo "($0) configuring avarice source"


Olivier


In response to this , and this thread http://www.avrfreaks.net/index.php?name ... mp;t=85820

I have made a new buildscript , witch incorporates a patch from Jörg.

Edit: 20-nov-2009 , removed the attached file
See the first post in this thread , for the newest version


Last edited by Bingo600 on Nov 20, 2009 - 04:32 PM; edited 1 time in total
 
 View user's profile Send private message  
Reply with quote Back to top
slintone
PostPosted: Nov 14, 2009 - 09:36 AM
Rookie


Joined: Mar 12, 2006
Posts: 38


Hi, I was wondering how this installer script differs from the WinAVR package. I see that the newest "stable" WinAVR release consists of GCC 4.3.2 + avr-libc 1.6.4 + a lot of patches. Bingo's script uses more recent sources but with less patches. Which of these would be the more bug-free package?

WinAVR has a pretty large user base, so I guess their packages get quite a lot of testing. Also, it would be nice (sometimes even compulsory) to get the exactly similar avr hex files from both Windows and Linux development environments.

So, my question is, would it be a good idea to also provide an installer script that installs a package exactly like the WinAVR but for Linux? Or do you think that Bingo's script is in all aspects better, and instead we should use this script also in windows?
 
 View user's profile Send private message  
Reply with quote Back to top
Bingo600
PostPosted: Nov 14, 2009 - 08:25 PM
Raving lunatic


Joined: Apr 25, 2004
Posts: 3809
Location: Denmark

slintone wrote:
Hi, I was wondering how this installer script differs from the WinAVR package. I see that the newest "stable" WinAVR release consists of GCC 4.3.2 + avr-libc 1.6.4 + a lot of patches. Bingo's script uses more recent sources but with less patches. Which of these would be the more bug-free package?

WinAVR has a pretty large user base, so I guess their packages get quite a lot of testing. Also, it would be nice (sometimes even compulsory) to get the exactly similar avr hex files from both Windows and Linux development environments.

So, my question is, would it be a good idea to also provide an installer script that installs a package exactly like the WinAVR but for Linux? Or do you think that Bingo's script is in all aspects better, and instead we should use this script also in windows?


The script & patches i use is based on the FreeBSD repository (Jörg maintains it).

If you want to build a toolchain , that uses WinAVR patches (Eric.W/EW maintains it) , have a look here.

Its the toolchain builder that comes with FemtoOS , made by Ruud Vlaaming.
http://www.avrfreaks.net/index.php?name ... 123#538123

The choice is yours , but to build the toolchain on windows , seems like a waste of time. Since WinAVR is allready made there.

I would expect WinAVR & this script to generate the same code , but sometimes (well most of it ...) WinAVR is a bit ahead of the FreeBSD repository.

/Bingo
 
 View user's profile Send private message  
Reply with quote Back to top
zainka
PostPosted: Nov 20, 2009 - 09:28 AM
Hangaround


Joined: Nov 16, 2001
Posts: 411
Location: Grimstad, NO(r)WAY!

Hi

buildavr-no-insight.sh will not build manily because of a missing file : binutils-patch-avr25-wraparound-reloc.diff

I use zip provided above, namely
build-avr-gcc-4.3.3-libc-1.6.7-insight6.8-arch25-fix.zip

EDIT:
In file get-pathes.sh i saw the note aboute skipping wget for this patch since its a part of atm package. However, I need to research more to understand what that means..

EDIT:
I did a super guess and assumed it refferes to patch-avr25-wrap at the freebsd server. I installed this and renamed it to binutils-patch-avr25-wraparound-reloc.diff and restarted build. That seems to fix the problem. Hope it was the correct patch though, from Joerg... Rolling Eyes

_________________
Regards
Vidar (Z)

"There is nothing new to be discovered in physics now, All that remains is more and more precise measurement." Lord Kelvin
 
 View user's profile Send private message  
Reply with quote Back to top
Bingo600
PostPosted: Nov 20, 2009 - 04:37 PM
Raving lunatic


Joined: Apr 25, 2004
Posts: 3809
Location: Denmark

@Zainka

I don't understand the above mail.

The "get-patches.sh" script vould automaticly rename the included patch file to the needed .diff file , when running.

Quote:

# The AVR Architecture 25 Relocaction wraparound patch is included in the package atm , so skip the wget
#wget -c --user-agent=MyBrowser http://www.freebsd.org/cgi/cvsweb.cgi/~ ... et-unknown
#
# Rename to our patchname
#
mv patch-avr25-wraparound-reloc.patch binutils-patch-avr25-wraparound-reloc.diff
#



The reason i included the patch in the download , was that the FreeBSD repository wasn't updated with the new patch. When i made the buildscript.

I have has several messages about the file in the first post in this thread , building succesfully.

/Bingo
 
 View user's profile Send private message  
Reply with quote Back to top
zainka
PostPosted: Nov 20, 2009 - 05:51 PM
Hangaround


Joined: Nov 16, 2001
Posts: 411
Location: Grimstad, NO(r)WAY!

Okay.. My fault I unpacked the zip and must have deleted patch-avr25-wraparound-reloc.patch, how I do not know... which it already contained. Sorry for that.

_________________
Regards
Vidar (Z)

"There is nothing new to be discovered in physics now, All that remains is more and more precise measurement." Lord Kelvin
 
 View user's profile Send private message  
Reply with quote Back to top
AdamWozniak
PostPosted: Nov 28, 2009 - 02:45 PM
Newbie


Joined: Nov 28, 2009
Posts: 9


Please, for the love of all that is holy, at the top of the very first post, in all caps, add the line:

YOU MUST LOG IN TO DOWNLOAD THE SCRIPTS

I banged my head against the wall for half an hour trying to find the gorram scripts everyone kept talking about and couldn't find them anywhere. Only after I gave up and decided to create a forum account to tell you all what nasty horrible evil people you all were did I actually see the download links for the scripts. If you're not logged in you don't see them. It's incredibly frustrating for a noob. Please, save other people from this frustration.
 
 View user's profile Send private message  
Reply with quote Back to top
Bingo600
PostPosted: Dec 20, 2009 - 08:12 PM
Raving lunatic


Joined: Apr 25, 2004
Posts: 3809
Location: Denmark

@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

http://www.avrfreaks.net/index.php?name ... mp;t=86953

Get the package here.
http://www.wrightflyer.co.uk/avr-gcc/

/Bingo
 
 View user's profile Send private message  
Reply with quote Back to top
Bingo600
PostPosted: Jan 08, 2010 - 10:39 AM
Raving lunatic


Joined: Apr 25, 2004
Posts: 3809
Location: Denmark

@06-Jan-2010
Made an "interrim" release , that fixes a bug within avrdude , when using dragon and ISP

Source here
http://www.avrfreaks.net/index.php?name ... b62#654260

.deb here
http://www.wrightflyer.co.uk/avr-gcc/

/Bingo
 
 View user's profile Send private message  
Reply with quote Back to top
Bingo600
PostPosted: Jan 16, 2010 - 12:58 PM
Raving lunatic


Joined: Apr 25, 2004
Posts: 3809
Location: Denmark

@16-Jan-2010
Updated buildscript to include avrdude-5.9 , in below thread
http://www.avrfreaks.net/index.php?name ... 333#658333

I'll move it to this thread , when i come back to Denmark

/Bingo
 
 View user's profile Send private message  
Reply with quote Back to top
Bingo600
PostPosted: Jan 18, 2010 - 04:27 PM
Raving lunatic


Joined: Apr 25, 2004
Posts: 3809
Location: Denmark

If you expierence this error :
Code:

cc1: error: missing argument to "-mmcu=" 


Your make is to old ,the script requires minimum "make v3.81" , see here
http://www.avrfreaks.net/index.php?name ... highlight=

/Bingo
 
 View user's profile Send private message  
Reply with quote Back to top
Bingo600
PostPosted: Jan 27, 2010 - 06:02 PM
Raving lunatic


Joined: Apr 25, 2004
Posts: 3809
Location: Denmark

@26-jan-2010 , updated script & .deb to avrdude 5.10 , all other unmodified.

/Bingo
 
 View user's profile Send private message  
Reply with quote Back to top
wBoellmann
PostPosted: Feb 02, 2010 - 06:28 PM
Wannabe


Joined: Aug 17, 2005
Posts: 71
Location: Nuremberg, Germany

@Bingo600

There is a little bug that does not appear in WinAVr 20100110.

Compiling the demo for Appnote AVR1300 (ATXmega128A1) the generated code for the ISR entry sequence has a bug.
This is only when compiled on Linux by the compiler generated by your last build script. The code generated by WinAVR 20100110 does not have this error.

Listing generated on Linux
Code:

...
ISR(ADCA_CH3_vect)
{
 244:  1f 92         push  r1
 246:  0f 92         push  r0
 248:  0f b6         in  r0, 0x3f  ; 63
 24a:  0f 92         push  r0
 24c:  08 b6         in  r0, 0x38  ; 56
 24e:  0f 92         push  r0
 250:  18 be         out  0x38, r1  ; 56
 252:  09 b6         in  r0, 0x39  ; 57
 254:  0f 92         push  r0
 256:  19 be         out  0x39, r1  ; 57
 258:  0b b6         in  r0, 0x3b  ; 59
 25a:  0f 92         push  r0
 25c:  1b be         out  0x3b, r1  ; 59
 25e:  11 24         eor  r1, r1
 260:  0f 93         push  r16
 ...

You see at address 250, 256, and 25c that R1 (__zero_reg__) is used to clear RAMPD, RAMPX, and RAMPZ before it is initialized in 25e.


Listing generated with WinAVR 20100110 does not generate this error.
Code:

...
ISR(ADCA_CH3_vect)
{
 244:   1f 92          push   r1
 246:   0f 92          push   r0
 248:   0f b6          in   r0, 0x3f   ; 63
 24a:   0f 92          push   r0
 24c:   08 b6          in   r0, 0x38   ; 56
 24e:   0f 92          push   r0
 250:   09 b6          in   r0, 0x39   ; 57
 252:   0f 92          push   r0
 254:   0b b6          in   r0, 0x3b   ; 59
 256:   0f 92          push   r0
 258:   11 24          eor   r1, r1
 25a:   18 be          out   0x38, r1   ; 56
 25c:   19 be          out   0x39, r1   ; 57
 25e:   1b be          out   0x3b, r1   ; 59
...


I think there is a patch missing.

Edit: Jörg Wunsch is currently searching for the missing patch.
 
 View user's profile Send private message  
Reply with quote Back to top
Bingo600
PostPosted: Feb 04, 2010 - 07:49 AM
Raving lunatic


Joined: Apr 25, 2004
Posts: 3809
Location: Denmark

Ok , i'll talk to Jörg

/Bingo
 
 View user's profile Send private message  
Reply with quote Back to top
clawson
PostPosted: Feb 04, 2010 - 05:18 PM
10k+ Postman


Joined: Jul 18, 2005
Posts: 62371
Location: (using avr-gcc in) Finchingfield, Essex, England

Bingo,

If you are updating the script you might also want to take this request into consideration:

http://www.avrfreaks.net/index.php?name ... mp;t=89385

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
Bingo600
PostPosted: Feb 04, 2010 - 06:34 PM
Raving lunatic


Joined: Apr 25, 2004
Posts: 3809
Location: Denmark

clawson wrote:
Bingo,

If you are updating the script you might also want to take this request into consideration:

http://www.avrfreaks.net/index.php?name ... mp;t=89385


Will see what i can do ...

/Bingo
 
 View user's profile Send private message  
Reply with quote Back to top
ddd7
PostPosted: Feb 18, 2010 - 09:41 PM
Hangaround


Joined: Apr 02, 2002
Posts: 132
Location: Spokane

when can we expect the 32u2 support from the last winavr.

I cant get a working avr-libc from this plus the patches from the latest winavr and now have a toolchain that claims but it has the target but the freshly rebuilt libc cant link the crtmxxx files. Jeorge just send the linux folk with this problem to your script.
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
Bingo600
PostPosted: Feb 20, 2010 - 10:24 AM
Raving lunatic


Joined: Apr 25, 2004
Posts: 3809
Location: Denmark

I'm waiting for the WinAVR patches to be migrated over to the FreeBSD repository.
Until that happens , there is nothing i can do.

I haven't got any clue about the timeframe.

/Bingo
 
 View user's profile Send private message  
Reply with quote Back to top
ddd7
PostPosted: Feb 22, 2010 - 10:36 PM
Hangaround


Joined: Apr 02, 2002
Posts: 132
Location: Spokane

I started there but the only place the patches seem to be is in the Winavr source directory (which requires access to a windblows machine !#@$@!#$@!!!! )

So ...

Yeah.

Whats up with the normal patch migration?
Are we all just stuck here until atmel puts a nail in the open source and open platform coffin?
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
Bingo600
PostPosted: Feb 23, 2010 - 11:50 AM
Raving lunatic


Joined: Apr 25, 2004
Posts: 3809
Location: Denmark

I'm sure Erik won't mind me posting the patches from the latest Winavr here , they are allready included in the exe package.

Now you can patch your own toolchain.

/Bingo
 
 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