Now it works fine.
I uninstalled my previous avrdude and added following lines to avr.rules (I 
don't use latest CVS):

  ifeq ($(findstring Darwin, $(shell uname)), Darwin)
    AVRDUDE_CONF ?= /opt/local/etc/avrdude.conf
  endif

Then installed avrdude-tinyos from your git version: 
(http://hinrg.cs.jhu.edu/git/?p=ports.git).
 
Very nice - no virtual machine for me anymore :)

Andres Vahter


On 02.12.2009, at 19:57, Razvan Musaloiu-E. wrote:

> Hi!
> 
> First of all: I made a mistake in saying that normal avrdude works fine. We 
> need a patched version. I added it to my macport repo. It's called 
> avrdude-tinyos. :-)
> 
> Second: there was a small bug in detecting the OS (The $(OSTYPE) doesn't 
> really works; we have to use uname). I just committed the fix.
> 
> Let me know if there are problems. Thanks for the patience. :D
> 
> --
> Razvan ME
> 
> On Wed, 2 Dec 2009, Andres Vahter wrote:
> 
>> Hi,
>> 
>> I added following lines to avr.rules:
>> 
>> ifeq ($(PROGRAMMER),avrdude)
>> ifeq ($(findstring darwin, $(OSTYPE)), darwin)
>>   AVRDUDE_CONF ?= /opt/local/etc/avrdude.conf
>> endif
>> 
>> AVRDUDE_CONF ?= /etc/avrdude/avrdude.conf
>> ifeq ($(shell [ -f /bin/cygwin1.dll ] && echo cygwin),cygwin)
>>   AVRDUDE_CONF := $(shell cygpath -m $(AVRDUDE_CONF))
>> endif
>> PROGRAMMER_EXTRA_FLAGS += -C$(AVRDUDE_CONF)
>> #  PROGRAMMER_EXTRA_FLAGS += -v -v
>> endif
>> 
>> But I still got an error:
>> 
>> Andrese-MBP:Null Andres$ make iris install mib510,/dev/tty.usbserial
>> mkdir -p build/iris
>>   compiling NullAppC to a iris binary
>> ncc -o build/iris/main.exe  -Os -fnesc-separator=__ -Wall -Wshadow 
>> -Wnesc-all -target=iris -fnesc-cfile=build/iris/app.c -board=micasb 
>> -DDEFINED_TOS_AM_GROUP=0x22 --param max-inline-insns-single=100000 
>> -DIDENT_APPNAME=\"NullAppC\" -DIDENT_USERNAME=\"Andres\" 
>> -DIDENT_HOSTNAME=\"Andrese-MBP.loc\" -DIDENT_USERHASH=0xb6e8c730L 
>> -DIDENT_TIMESTAMP=0x4b167323L -DIDENT_UIDHASH=0xd63997bfL -fnesc-dump=wiring 
>> -fnesc-dump='interfaces(!abstract())' -fnesc-dump='referenced(interfacedefs, 
>> components)' -fnesc-dumpfile=build/iris/wiring-check.xml NullAppC.nc -lm
>>   compiled NullAppC to build/iris/main.exe
>>            748 bytes in ROM
>>              4 bytes in RAM
>> avr-objcopy --output-target=srec build/iris/main.exe build/iris/main.srec
>> avr-objcopy --output-target=ihex build/iris/main.exe build/iris/main.ihex
>>   writing TOS image
>> cp build/iris/main.srec build/iris/main.srec.out
>>   installing iris binary using mib510
>> avrdude -cmib510 -P/dev/tty.usbserial -U hfuse:w:0xd9:m -pm1281 -U 
>> efuse:w:0xff:m -C/etc/avrdude/avrdude.conf  -U 
>> flash:w:build/iris/main.srec.out:a
>> avrdude: can't open config file "/etc/avrdude/avrdude.conf": No such file or 
>> directory
>> avrdude: error reading system wide configuration file 
>> "/etc/avrdude/avrdude.conf"
>> make: *** [program] Error 1
>> 
>> It seems like avrdude.conf is not searched from /opt/local/etc/.
>> 
>> As I said it works when I define it in Makefile:
>> AVRDUDE_CONF=/opt/local/etc/avrdude.conf
>> 
>> I'll try symlink from /etc/avrdude/avrdude.conf to 
>> /opt/local/etc/avrdude.conf. I think it will do the trick.
>> 
>> Andres Vahter
>> 
>> 

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

Reply via email to