This is the mail archive of the ecos-discuss@sourceware.cygnus.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: LIBC and STDIO


Hi Mr. Larmour,

I don't know what did it, but after downloading and setting up the latest
CVS source tree, the printf works with "/dev/tty1"

thanks for all the help.  appreciate it.

btw, that gdb/sniffing really sounds impressive.  I used to only use it for
hacking purpose :)

regards,

Perry

> -----Original Message-----
> From: jlarmour@cygnus.co.uk [mailto:jlarmour@cygnus.co.uk]
> Sent: Friday, December 17, 1999 12:23 PM
> To: Perry Wang
> Cc: jskov@cygnus.co.uk; ecos-discuss@sourceware.cygnus.com
> Subject: Re: [ECOS] LIBC and STDIO
>
>
> Perry Wang wrote:
> >
> > I do have the serial package enabled.. some of the defines are here:
> >
> [snip]
> > io write to /dev/tty1 or /dev/ser1 directly works fine.
> However the libc
> > printf doesn't like it.  I guess I'm still missing something.  Changing
> > CYGDAT_LIBC_STDIO_DEFAULT_CONSOLE back to "/dev/haldiag" will
> work, but it
> > prints out some garbage only GDB will understand.
>
> I suppose it isn't very helpful for me to say that I just tried it here on
> an AEB-1B and (from what I could tell[1]) I could run the libc stdiooutput
> test fine.
>
> Have you tried the other serial line? It could be some conflict
> between the
> hal diag initialization and the serial driver initialization - we've had
> such things happen before. If that doesn't work either, it at least gives
> you the chance to debug it (using GDB attached to the first
> serial line) to
> see what is going on.
>
> [1] For reasons to long to explain, I connected with GDB over a TCP
> connection to a proxy test server, and used an ethernet packet
> sniffer since
> GDB silently discards anything not in remote protocol packets. Yes, I'm
> lazy.
>
> Jifl
> --
> Cygnus Solutions, 35 Cambridge Place, Cambridge, UK.  Tel: +44
> (1223) 728762
> "I used to have an open mind but || Get yer free open source
> RTOS's here...
>  my brains kept falling out."    || http://sourceware.cygnus.com/ecos
> Help fight spam! http://spam.abuse.net/  These opinions are all
> my own fault


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]