On 10/9/07, Domenico Arenga <[EMAIL PROTECTED]> wrote:
> I'm a student of the universita one of Pisa, Italy. I would want to know if
> it is possible to use avr-GCC 4 on tinyOs. Excuse the disturbance, and
> thanks thousands.

You need nesC 1.2.9. I think there's no rpm at this point, so you'll
have to install it from source, available at
http://sourceforge.net/project/showfiles.php?group_id=56288
Read the INSTALL directions once you've extracted files from the tarball.

You will also have to make the following changes to the tinyos tree
(changes to the avr make rules):

Index: mica2.target
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/support/make/mica2.target,v
retrieving revision 1.4
diff -r1.4 mica2.target
7c7,8
< PFLAGS += -finline-limit=100000
---
> PFLAGS += --param max-inline-insns-single=100000
> #PFLAGS += -finline-limit=100000
Index: mica2dot.target
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/support/make/mica2dot.target,v
retrieving revision 1.4
diff -r1.4 mica2dot.target
6c6,7
< PFLAGS += -finline-limit=100000
---
> PFLAGS += --param max-inline-insns-single=100000
> #PFLAGS += -finline-limit=100000
Index: avr/avr.rules
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/support/make/avr/avr.rules,v
retrieving revision 1.6
diff -r1.6 avr.rules
33c33
< AMADDR = ActiveMessageAddressC\$$addr
---
> AMADDR = ActiveMessageAddressC__addr
42c42
< PFLAGS += -target=$(PLATFORM) -fnesc-cfile=$(BUILDDIR)/app.c
-board=$(SENSORBOARD)
---
> PFLAGS += -target=$(PLATFORM) -fnesc-cfile=$(BUILDDIR)/app.c 
> -board=$(SENSORBOARD) -fnesc-separator=__
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to