Hello,

First of all, your original problem:
You need to remove the tinyos avr toolchain to install an other one
(avr-binutils-tinyos, etc). Sorry, I should have write this in my
previous mail.

2011/8/16 Martin Cerveny <[email protected]>:
> Hello.
>
> On Tue, 16 Aug 2011, Bíró András wrote:
>>
>> Upgrading gcc may cause
>> problems (better optimisation reveals unfixed bugs in tinyos).
>
> Is there any document/links (i do not see any issue in
> http://code.google.com/p/tinyos-main/issues/list)
> where the problems are described ?

No, this is only my experience. (When I first needed rfa1 support, I
tried the avr toolchain came with my linux distro. That was gcc 4.5.?
and binutils 2.20.) I don't remember clearly, but I think I had
problems with rf230 and/or at45db on iris.

> I need newer avr toolchain (atmega1284p and leter for atmega644p).

I think 644p is supported in the stanford repository toolchain.
I still think it's easier to patch the old toolchain (and newer libc).

If you decide to patch (or compile from source), try these scripts:
http://tinyos-main.googlecode.com/svn/trunk/tools/avr-toolchain/

I used this to create the deb packages in the stanford repository (and
the rpms on our sourceforge page). It's easy to add a patch, and it
should be easy to change the version.
Check the winavr project, they have patches for 1284p support for
binutils 2.19/gcc 4.2.2. It's easy to correct the patches for binutils
2.17/gcc 4.1.2, I did the same with rfa1.

Andris

> Now I applied some patches for bintuls2.19/gcc4.5.3 and compile with "-O0".
>
> Thanks, Martin Cerveny

_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to