AVR32 toolchain

31 views
Skip to first unread message

Dado Sutter

unread,
Dec 28, 2012, 1:05:25 PM12/28/12
to miz...@googlegroups.com
Hello guys,
   Is the recipe at http://en.wikibooks.org/wiki/Mizar32/Compiling_eLua#Install_an_AVR32_cross-compiler still the best to have a local toolchain to build eLua for the Mizar32?

Tksssssssssssss
Ciao
Dado



martinwguy

unread,
Dec 28, 2012, 3:57:04 PM12/28/12
to miz...@googlegroups.com
On 28 December 2012 19:05, Dado Sutter <dados...@gmail.com> wrote:
> Hello guys,
> Is the recipe at
> http://en.wikibooks.org/wiki/Mizar32/Compiling_eLua#Install_an_AVR32_cross-compiler
> still the best to have a local toolchain to build eLua for the Mizar32?

Should be. I updated it on 16 September 2012 to a new version of the
toolchain released by Atmel.

Let me know if the procedure works for you, or if the document could be improved

M

Dado Sutter

unread,
Dec 28, 2012, 5:43:33 PM12/28/12
to miz...@googlegroups.com
Thank you Martin.
I will.... 

    M

Best
Dado




 

Dado Sutter

unread,
Dec 28, 2012, 10:03:15 PM12/28/12
to miz...@googlegroups.com
The procedure on http://en.wikibooks.org/wiki/Mizar32/Compiling_eLua#Install_an_AVR32_cross-compiler worked just fine for me, on GNU-Linux Ubuntu 12.10  64bits.
I've chosen to install the Atmel AVR 32-bit Toolchain 3.4.1, downloaded it straight from your Linux64 link and followed the steps replacing every instance of x86 by x86_64. 
eLua was then built for a Mizar32 "A" (at32uc3a0256)as instructed (but not using scons)
The installation went flawlessly (==thank you!!!)

It could possibly be mentioned that if we add the parameter prog to the scons build command, the .hex generation from the .elf file will be automatically done by the build script.  But the conversion/generation is clearly explained on the page too.
As you know, eLua is migrating to a new build system based only on Lua and on Lua Tables to configure the build. scons will not be needed anymore  and the mentioned parameter prog is already working on the new build model too.

Thanks again for the tutorial! 
I'll add a link to it on the eLua Wiki tutorials.


    M

Best
Dado

Tksssssss
Dado





 




 


Dado Sutter

unread,
Dec 28, 2012, 10:24:39 PM12/28/12
to miz...@googlegroups.com
I've added it as a new item on the Toolchains Building tutorials at http://wiki.eluaproject.net/Tutorials
Please feel free to edit at will.

Tks again
Dado

martinwguy

unread,
Dec 29, 2012, 2:25:31 PM12/29/12
to miz...@googlegroups.com
On 29 December 2012 04:24, Dado Sutter <dados...@gmail.com> wrote:
> I've added it as a new item on the Toolchains Building tutorials at
> http://wiki.eluaproject.net/Tutorials

Thanks. A couple of fixes:

It's not about building an AVR32 toolchain (or, rather, cross-toolchain).
Its about compiling eLua from source for AVR32 processors.

And can you make the URL point at
http://code.google.com/p/mizar32/wiki/CompilingElua
instead of wikibooks? Moving to wikibooks was a nice idea but there
are some problems with it, so I may be moving everything back. In any
case, the code.google.com wiki page redirects to the current location.

I would have done this myself and am registered on the elua wiki, but
it won't let me log in. I'm registered but it won't let me log in. I
send myself a password-reset email, reset the passwordm it says
"success" but logging in still fails (tried this twice).

Ta!

M

Dado Sutter

unread,
Dec 29, 2012, 2:55:07 PM12/29/12
to miz...@googlegroups.com
On Sat, Dec 29, 2012 at 4:25 PM, martinwguy <marti...@gmail.com> wrote:
On 29 December 2012 04:24, Dado Sutter <dados...@gmail.com> wrote:
> I've added it as a new item on the Toolchains Building tutorials at
> http://wiki.eluaproject.net/Tutorials

Thanks. A couple of fixes:

It's not about building an AVR32 toolchain (or, rather, cross-toolchain).
Its about compiling eLua from source for AVR32 processors.

Sure. I kept this title because it instructs well how to install a toolchain locally and I wanted to keep the tutorial on that section, with the other toolchain building (which is not this case, got it) tutorials.

 

And can you make the URL point at
http://code.google.com/p/mizar32/wiki/CompilingElua
instead of wikibooks?

Sure, I'll check it.
 
 Moving to wikibooks was a nice idea but there
are some problems with it, so I may be moving everything back.  In any
case, the code.google.com wiki page redirects to the current location.

Ok
 
I would have done this myself and am registered on the elua wiki, but
it won't let me log in. I'm registered but it won't let me log in. I
send myself a password-reset email, reset the passwordm it says
"success" but logging in still fails (tried this twice).

So strange :-o
I've just created a new user to test it and it all went ok.
Please send me your username and I'll get some help here.
 

Ta!

    M

Ciao
Dado




 

martinwguy

unread,
Dec 30, 2012, 3:39:27 AM12/30/12
to miz...@googlegroups.com
I did build an AVR32 cross-toolchain from source using crosstool-ng
It needed patching as the URL to get the Atmel patches to mainline gcc
sources was dead but they never got included in mainline. i attach
them here too.

M
crosstool-ng-fix-avr32.patch
crosstool-ng-newlib-update-dlmalloc-to-2.6.5.patch
Reply all
Reply to author
Forward
0 new messages