Versions of my files after applying that patch:
printf.h 1.7
PrintfC 1.7
PrintfFlush 1.4
PrintfP 1.8
avr_stdio.h 1.1

-Ben


> -----Original Message-----
> From: Faisal Aslam [mailto:[EMAIL PROTECTED]
> Sent: 21 November 2007 15:09
> To: Murray, Ben
> Cc: [email protected]
> Subject: Re: [Tinyos-help] Lesson 15 does not work with mica2 and
> tinyos-2 .0.2
> 
> 
> Thanks. I have the same patch but I am sure that version of the files 
> like tos/lib/printf/printfP are newer (i.e. 1.7)  and patch 
> was written 
> for older version 1.6. It is because patch failure creates a file  
> (PrintfP.nc.rej) which has following mis-match information 
> (see below). 
> However, thanks for your reply. I will now try to patch it "manually" 
> again and even will create files. After your email I am 
> confident that 
> it will work by manual carefully patching.
> 
> *** 40,47 ****
>    *
>    *
>    * @author Kevin Klues ([EMAIL PROTECTED])
> -  * @version $Revision: 1.6 $
> -  * @date $Date: 2007/04/20 01:14:13 $
>    */
>  
>   #include "printf.h"
> --- 40,47 ----
>    *
>    *
>    * @author Kevin Klues ([EMAIL PROTECTED])
> +  * @version $Revision: 1.8 $
> +  * @date $Date: 2007/08/20 06:09:11 $
>    */
>  
>   #include "printf.h"
> ****************
> *and many more such line*
> 
> 
> *Thanks
> Faisal*
> *
> Murray, Ben wrote:
> > I don't have the TestPrintfApp but I have got TinyOS-2.0.2 
> and have applied
> > the patch manually as instructed. It added the file your 
> errors indicate are
> > missing (avr_stdio.h) and printf is working just fine in my 
> application!
> > Have you searched for that file (avr_stdio.h) on your pc in 
> case you applied
> > the patch from the wrong directory? For me it is in:
> > cygwin\opt\tinyos-2.x\tos\lib\printf
> >
> > reference post from the tos boards:
> > 
> http://www.mail-archive.com/[EMAIL PROTECTED]
> u/msg14616.htm
> > l
> > link to the patch I applied from that archived post:
> > http://www.stanford.edu/~klueska/tinyos-2.0-printf.patch
> >
> > good luck.
> > -Ben
> >
> >
> >
> >
> >   
> >> -----Original Message-----
> >> From: [EMAIL PROTECTED]
> >> [mailto:[EMAIL PROTECTED] Behalf 
> >> Of Faisal
> >> Aslam
> >> Sent: 21 November 2007 12:25
> >> To: [email protected]
> >> Subject: [Tinyos-help] Lesson 15 does not work with mica2 and
> >> tinyos-2.0.2
> >>
> >>
> >> I am using tinyos-2.0.2 and mica2 motes. I tried lesson-15 
> >> and it does 
> >> not work.
> >> Firstly, the patch mentioned in the lesson fails to apply. I 
> >> believe it 
> >> fails because the version of code in tinyos-2.0.2 is newer 
> >> and patch is 
> >> for an older version. Hence I have to applied the patch by hand.
> >> After that, when I make TestPrintf application then I still get 
> >> following errors. (I am able to do most of other 
> >> tutorials/lessons hence 
> >> you can assume that my system is configured correctly)
> >>
> >> ----
> >> $ make mica2
> >> mkdir -p build/mica2
> >> mig java -target=mica2 -I/opt/tinyos-2.x/tos/lib/printf 
> >> -DIDENT_PROGRAM_NAME=\"TestPrintfAppC\" -DIDENT_USER_ID=\"aslam\" 
> >> -DIDENT_HOSTNAME=\"verona\" -DIDENT_US
> >>                 -java-classname=PrintfMsg \
> >>                 /opt/tinyos-2.x/tos/lib/printf/printf.h 
> printf_msg -o 
> >> PrintfMsg.java
> >> /opt/tinyos-2.x/tos/lib/printf/printf.h:41:25: avr_stdio.h: 
> >> No such file 
> >> or directory
> >> <commandline>: failed to preprocess 
> >> /opt/tinyos-2.x/tos/lib/printf/printf.h
> >> failed to parse message file 
> /opt/tinyos-2.x/tos/lib/printf/printf.h
> >> make: *** [PrintfMsg.java] Error 1
> >> ----
> >>
> >> Please help in solving this problem! Thanking you in anticipation.
> >>
> >> Faisal Aslam
> >> _______________________________________________
> >> Tinyos-help mailing list
> >> [email protected]
> >> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/t
> >>     
> > inyos-help
> >
> > 
> **************************************************************
> *****************
> > Please consider the environment before printing this email.
> > 
> **************************************************************
> *****************
> > This email and any files transmitted with it are intended 
> solely for the use of
> > the individual or entity to whom they are addressed and may 
> not be divulged to
> > any third party without the express permission of the 
> originator.  Any views
> > expressed in this message are those of the individual 
> sender, except where the
> > sender specifically states them to be the views of Thales 
> Research & Technology
> > (UK) Limited.
> > 
> **************************************************************
> *****************
> >
> > _______________________________________________
> > Tinyos-help mailing list
> > [email protected]
> > 
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/t
inyos-help
>
>   
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to