How build the cross compiler

View: New views
3 Messages — Rating Filter:   Alert me  

How build the cross compiler

by Marcos Lolis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello, i'm new to avr development, so i have a lot of experience in Linux develop.

I have a board with a atmega2561, i use for workstation to buid a Ubuntu 8.04, i try to install avr-gcc, avr-binutils, avr-libc. But when i try to compile a simple C program i get that this processor is not supported the gcc version is 4.2.2, so i see in googling that avr6 arch need one more bayte to return from calls, so a patch for gcc and binutils are avaliable.

There are a clean way to get this cross compiler working? So i get a lot of infio a lot of patches, but no info if actual version of gcc already have this patches, or i need apply them, what patches i need to apply? I see that are in avrfreaks a script to automate the build, again it take some patches for gcc and binutils.

So my question is, what is the best steps to compile cross compiler with support to avr6 arch? There is any place that all posible patches are described?

Regards.

_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@...
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Re: How build the cross compiler

by Moritz Struebe :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Marcos.

You need to avr-gcc instead of gcc. It might not be in your path-environment.

Cheers
Morty

Marcos Lolis schrieb:
Hello, i'm new to avr development, so i have a lot of experience in Linux develop.

I have a board with a atmega2561, i use for workstation to buid a Ubuntu 8.04, i try to install avr-gcc, avr-binutils, avr-libc. But when i try to compile a simple C program i get that this processor is not supported the gcc version is 4.2.2, so i see in googling that avr6 arch need one more bayte to return from calls, so a patch for gcc and binutils are avaliable.

There are a clean way to get this cross compiler working? So i get a lot of infio a lot of patches, but no info if actual version of gcc already have this patches, or i need apply them, what patches i need to apply? I see that are in avrfreaks a script to automate the build, again it take some patches for gcc and binutils.

So my question is, what is the best steps to compile cross compiler with support to avr6 arch? There is any place that all posible patches are described?

Regards.

_______________________________________________ AVR-GCC-list mailing list AVR-GCC-list@... http://lists.nongnu.org/mailman/listinfo/avr-gcc-list


_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@...
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Parent Message unknown Re: How build the cross compiler

by Thomas Buchta :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi!

Follow the link

http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&t=42631&start=all&postdays=0&postorder=asc

and you'll find a script to build the AVR-GCC toolchain on Ubuntu which
should support the atmega2561 device!


Regards,
Thomas

----- Original Message -----
From: "Marcos Lolis" <marcos.list@...>
To: avr-gcc-list@...
Date: Wed, 9 Jul 2008 10:05:20 +0200
Subject: [avr-gcc-list] How build the cross compiler

> Hello, i'm new to avr development, so i have a lot of experience in Linux
> develop.
>
> I have a board with a atmega2561, i use for workstation to buid a Ubuntu
> 8.04, i try to install avr-gcc, avr-binutils, avr-libc. But when i try to
> compile a simple C program i get that this processor is not supported the
> gcc version is 4.2.2, so i see in googling that avr6 arch need one more
> bayte to return from calls, so a patch for gcc and binutils are avaliable.
>
> There are a clean way to get this cross compiler working? So i get a lot of
> infio a lot of patches, but no info if actual version of gcc already have
> this patches, or i need apply them, what patches i need to apply? I see that
> are in avrfreaks a script to automate the build, again it take some patches
> for gcc and binutils.
>
> So my question is, what is the best steps to compile cross compiler with
> support to avr6 arch? There is any place that all posible patches are
> described?
>
> Regards.
>
> _______________________________________________
> AVR-GCC-list mailing list
> AVR-GCC-list@...
> http://lists.nongnu.org/mailman/listinfo/avr-gcc-list
>
>


_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@...
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list
LightInTheBox - Buy quality products at wholesale price