[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] A few basic doubts regarding installing AVR-GCC on Fe

From: Dave N6NZ
Subject: Re: [avr-gcc-list] A few basic doubts regarding installing AVR-GCC on Fedora 9
Date: Mon, 01 Sep 2008 09:28:54 -0700
User-agent: Thunderbird 1.5 (X11/20051201)

WinAVR and the *nix releases are kept in close sync by Eric and Joerg. Most *nix users follow the "Bingo scripts" found in a sticky thread at avrfreaks.net in the gcc forum. The Bingo scripts are reliable and incorporate all the patches.


Eshwaran Vijaya Kumar wrote:
Hi Bernard,
  Thanks for your mail. Just a note of clarification. How did you get
the patches from WinAVR 20080610? I only have linux. Do i have to use
wine to extract the patches from the installer? Or can i use the
patches from the CVS for the appropriate versions of bin utils and
Thanks a ton again.

On Mon, Sep 1, 2008 at 1:23 PM, Bernard Fouché
<address@hidden> wrote:
Hi Eshwaran.

Here is what I did to have avr-gcc and friends on Fedora 9:

- Get WinAvr (20080610) :

- Get GNU Binutils (2.18):  <http://sources.redhat.com/binutils/>

- Get GCC (4.3.0) : <http://gcc.gnu.org/>

- Get avr-libc: <http://savannah.nongnu.org/projects/avr-libc>

- Get avrdude: <http://savannah.nongnu.org/projects/avrdude/>

WinAvr has all the patches that Eric Weddington used to build a working
WinAvr. These patches are mandatory to get a fully working toolchain and
using WinAvr as a patch repository is much easier than doing the 'patch
hunt' yourself. (Once you get the patches, WinAvr won't have any more use
for F9.)

Apply these patches to the corresponding project (gcc patches for gcc, etc).
Use the '-p0' option when you run the 'patch' command for each patch.

Define where you want to have the binaries, libs and other files resulting
from the different compilations. For instance '/home/avr'.

- Compile binutils (go into the binutils top directory):

$ ./configure --target=avr --prefix=/home/avr
$ make maybe-configure-bfd
$ pushd bfd
$ make headers
$ popd
$ make all install

- Compile GCC (go into the gcc top directory):

$ mkdir obj
$ cd obj
$ ../configure --target=avr --prefix=/home/avr --disable-nls
$ make
$ make install

- Compile avr-libc (go into the top avr-libc directory):

$ ./configure --build=`./config.guess` --host=avr --prefix=/home/avr
$ make
$ make install

- Compile avrdude (go into the top avrdude directory):

$ ./configure --prefix=/home/avr
$ make
$ make install

(these are from notes I wrote when I last built the toolchain, I hope I did
not miss something since I was not brave enough to recompile everything
before posting this answer :) )

You may also need some other tools like avarice...

Once everything is compiled, add '/home/avr/bin' in your PATH and you should
be able to compile a project for the AVR.

Hope it helps!


Eshwaran Vijaya Kumar wrote:
 I am a newbie to both AVR and AVR-GCC. I am trying to find out what
are the lastest versions of GCC that I should be using:
  The AVR Lib C user manual suggests that I use the latest version of
GCC (4.3.2 is the latest ). The manual also suggests that I have to
patch the latest version from

in order for everything to work properly. I then went to the
AVRfreaks.net GCC forum where I see a list of patches where the
patches specifically refer to GCC 4.2.2?
Can some one clarify which version I am supposed to be using? I am
using Fedora 9 with GCC 4.3.0 already installed.
Thanks in advance.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]