public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] need help with console i/o
@ 2004-06-25 22:04 agyhoo
  0 siblings, 0 replies; only message in thread
From: agyhoo @ 2004-06-25 22:04 UTC (permalink / raw)
  To: ecos-discuss

Hi,

I am using an A&M rattler board that has 2 serial ports
SMC1 and SCC1. I am using SMC1 as my console device.

I configured /dev/ser1 with the necessary settings and
mapped my console driver "/dev/tty0" to the "/dev/ser1"
serial driver. I also set the console device to "/dev/tty0"
for the ISO C library I/O fns.

I also selected the "inherit console settings" option under
ROM monitor support.

In the Redboot configuration my diagnostic and debug
channels are both set to SMC1.

Now, in my application "main" routine (I am using POSIX and
ISO C library), I am spawning 3-4 pthreads. I use printfs
to print out info about threads being spawned. The threads
include my own version of the dhcp mgmt thread, snmp agent
thread and a telnet server thread.

I notice that my console output is erratic at best.
SOmetimes, I get the letters jumbled, sometimes not. If my
output is verbose, everything locks up (I am not able to
ping the target or anything). If I download application via
GDB, the console output is dumped on GDB console and seems
to behave better.

Another interesting observation is that if I start my
application with the ethernet port unplugged, I am
guaranteed to lock up my application. If I replace my
printfs with diag_printfs, this doesn't happen.

I know that the /dev/ser1 driver is an interrupt driven
driver. Could there be some issues with the initialization
sequence and interrupts being enabled in a timely manner?
Is the scheduler enabled before the main thread is invoked?

Another possibility is that the hal diag serial driver and
the /dev/tty0 driver are clashing trying to access the same
device...would this cause a lockup?

This problem has kept cropping up and going away for a
while now...I would really appreciate any help so that I
can resolve it once and for all.

Thanks.

- Anunoy

PS> I am using fairly current CVS sources (checked out
about a couple of weeks ago)


		
__________________________________
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail 

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-06-25 22:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-25 22:04 [ECOS] need help with console i/o agyhoo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).