I don't think I changed anything, but now I have (when I try to use
parport0):
-----
[EMAIL PROTECTED] ~/tinyos-1.x/apps/Blink $ make mica2 install
compiling Blink to a mica2 binary
ncc -o build/mica2/main.exe -Os -board=micasb -target=mica2 -Wall
-Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -finline-limit=100000
-fnesc-cfile=build/mica2/app.c Blink.nc -lm
compiled Blink to build/mica2/main.exe
1502 bytes in ROM
49 bytes in RAM
avr-objcopy --output-target=srec build/mica2/main.exe
build/mica2/main.srec
make[1]: Entering directory `/home/htaylor/tinyos-1.x/apps/Blink'
installing mica2 binary
uisp -dprog=dapa -dpart=ATmega128 --wr_fuse_e=ff -dlpt=3 --erase
ioperm: Operation not permitted
Failed to get direct I/O port access.
make[1]: *** [reinstall] Error 2
make[1]: Leaving directory `/home/htaylor/tinyos-1.x/apps/Blink'
make: *** [install] Error 2
-----
Elaine
On Wed, 14 Jun 2006, David Gay wrote:
On 6/14/06, Elaine Cheong <[EMAIL PROTECTED]> wrote:
We have an IBM T40 with Gentoo (kernel 2.6.15-gentoo-r1), and we are
unable to get "make mica2 install" to work. We ran "COMPILE" and "make
install" in tinyos-1.x/tools/src/uisp.
We tried:
mknod /dev/parport0 c 99 0
chmod 666 /dev/parport0
But we get:
------
[EMAIL PROTECTED] ~/tinyos-1.x/apps/Blink $ make mica2 install
mkdir -p build/mica2
compiling Blink to a mica2 binary
ncc -o build/mica2/main.exe -Os -finline-limit=100000 -Wall -Wshadow
-DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=mica2
-fnesc-cfile=build/mica2/app.c
-board=micasb -I%T/lib/Deluge -DIDENT_PROGRAM_NAME=\"Blink\"
-DIDENT_USER_ID=\"htaylor\" -DIDENT_HOSTNAME=\"ransom-urquell\"
-DIDENT_USER_HASH=0x39c1918cL -DIDENT_UNIX_TIME=0x44907e9aL
-DIDENT_UID_HASH=0x91f5e321L Blink.nc -lm
compiled Blink to build/mica2/main.exe
1502 bytes in ROM
49 bytes in RAM
avr-objcopy --output-target=srec build/mica2/main.exe build/mica2/main.srec
avr-objcopy --output-target=ihex build/mica2/main.exe build/mica2/main.ihex
writing TOS image
cp build/mica2/main.srec build/mica2/main.srec.out
installing mica2 binary with dapa
uisp -dprog=dapa --wr_fuse_h=0xd8 -dpart=ATmega128 --wr_fuse_e=ff --erase
/dev/parport0: No such device or address
Failed to open ppdev.
make: *** [program] Error 2
FWIW, I have found that there's something in Fedora which "undoes" the
effect of chmod 666 /dev/parport0 after the first access to the
parallel port. So I always have to do it twice (I haven't looked into
the cause). This may or may not be your problem...
David Gay
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help