public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Serial drivers in iq80310.
@ 2001-04-30 11:28 Ashwin Kamath
  2001-04-30 12:40 ` Jonathan Larmour
  0 siblings, 1 reply; 2+ messages in thread
From: Ashwin Kamath @ 2001-04-30 11:28 UTC (permalink / raw)
  To: Ecos-discuss

I am using a slightly older repository (1 month old), but this problem
should remain the same, since I did not see any relevant changes in the
changelog since then.

I use a default configuration for iq80310. At this stage serial drivers
are not enabled in ecos.ecc, so I go ahead and enable it. Then I run
"ecosconfig tree" and make, but the final image does not have the serial
devices in the device tab. Also for this platform the generic serial
driver sources are required at devs/eth/generic/current/src, but the
generic directory does not get created in the build tree. Another
verification point is that the symbols defined in the generic source
file are not present in the library. Is something else required, so that
I can get the serial drivers built with the rest of the libraries?


So, to circumvent the above problem, I used the /dev/ttydiag device. I
use the xmodem method to download an image which uses this device node.
All the program does is write to this device and read from it, with a
few other threads which are idle at this time. (The lowest priority task
writes to the console). Writes are fine, but reads do not respond to
keystrokes on a minicom terminal very well. Out of every 10 or so keys
that I hit, only one gets echoed back. So I disabled the interrupts
around the call to cyg_io_read, after this everything works fine. But it
is not desirable for a low priority console task to disable interrupts
and wait for console input. Is the above behaviour expected when
/dev/ttydiag is used. (I am not using gdb at this time.)

Thanks,
Ashwin.
begin:vcard 
n:Kamath;Ashwin
x-mozilla-html:FALSE
org:OmegaBand Inc
adr:;;;;;;
version:2.1
email;internet:kamath@OmegaBand.com
x-mozilla-cpt:;0
fn:Ashwin Kamath
end:vcard

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ECOS] Serial drivers in iq80310.
  2001-04-30 11:28 [ECOS] Serial drivers in iq80310 Ashwin Kamath
@ 2001-04-30 12:40 ` Jonathan Larmour
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Larmour @ 2001-04-30 12:40 UTC (permalink / raw)
  To: Ashwin Kamath; +Cc: Ecos-discuss

Ashwin Kamath wrote:
> 
> I am using a slightly older repository (1 month old), but this problem
> should remain the same, since I did not see any relevant changes in the
> changelog since then.
> 
> I use a default configuration for iq80310. At this stage serial drivers
> are not enabled in ecos.ecc, so I go ahead and enable it. Then I run
> "ecosconfig tree" and make, but the final image does not have the serial
> devices in the device tab. Also for this platform the generic serial
> driver sources are required at devs/eth/generic/current/src, but the
> generic directory does not get created in the build tree. Another
> verification point is that the symbols defined in the generic source
> file are not present in the library. Is something else required, so that
> I can get the serial drivers built with the rest of the libraries?

It seems to be an omission that the generic serial package is not included
in the target template for the iq80310. I'll fix that, but till then, just
add it to your configuration using "ecosconfig add
devs_serial_generic_16x5x"

> So, to circumvent the above problem, I used the /dev/ttydiag device. I
> use the xmodem method to download an image which uses this device node.
> All the program does is write to this device and read from it, with a
> few other threads which are idle at this time. (The lowest priority task
> writes to the console). Writes are fine, but reads do not respond to
> keystrokes on a minicom terminal very well. Out of every 10 or so keys
> that I hit, only one gets echoed back. So I disabled the interrupts
> around the call to cyg_io_read, after this everything works fine. But it
> is not desirable for a low priority console task to disable interrupts
> and wait for console input. Is the above behaviour expected when
> /dev/ttydiag is used. (I am not using gdb at this time.)

Not expected, no. But if you had the serial device driver enabled, I would
have said that it was it that was eating the characters :-). I think you'll
have to debug it.

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-04-30 12:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-04-30 11:28 [ECOS] Serial drivers in iq80310 Ashwin Kamath
2001-04-30 12:40 ` Jonathan Larmour

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).