[Tinyos-help] parallel port problem on Gentoo when running "make mica2 install"

Elaine Cheong celaine at eecs.berkeley.edu
Thu Jun 15 11:13:56 PDT 2006


Jonathan Sprinkle was able to get "make mica2 install" to work by enabling 
support for user-space parallel port device drivers in the kernel on 
Gentoo.  He says the following:

=======
I got it to work with gentoo, and the application downloaded...successfully.

I had to rebuild the kernel with the option of

Device Drivers ->
   Character Devices ->
<M>    Support for user-space parallel port device drivers

make && make modules_install

After copying the old kernel as
cp /boot/2.6.15-gentoo-r1 /boot/2.6.15-gentoo-r1-noparport
I copied the new kernel in /usr/src/linux/arch/i386/boot/bzImageTo
/boot/2.6.15-gentoo-r1

I then added the module to

/etc/modules.autoload.d/kernel-2.6

As

ppdev

then running the make mica2 install works.

======

Elaine


On 6/14/06, Elaine Cheong <celaine at eecs.berkeley.edu> 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:
> ------
> htaylor at ransom-urquell ~/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



More information about the Tinyos-help mailing list