This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Naive newbie questions!
- From: Gary Thomas <gary at mlbassoc dot com>
- To: Peter Seebach <seebs at plethora dot net>
- Cc: eCos Discussion <ecos-discuss at ecos dot sourceware dot org>
- Date: Fri, 23 Dec 2005 02:55:44 -0700
- Subject: Re: [ECOS] Naive newbie questions!
- References: <200512222045.jBMKj0Dg020159@guild.plethora.net>
On Thu, 2005-12-22 at 14:45 -0600, Peter Seebach wrote:
> Hi! I got curious about eCos and decided to do a couple of small projects
> in it. My target system is a TAMS 3011.
>
> My first question, which should give you some clue of how little I know of
> what's going on, is this: How do I determine which version of eCos is in
> a source repository? Everything is named "current". Presumably it was
> current when it was shipped, but is there a version string or number anywhere?
> If so, where would I find it?
There's no version number or even string - we rely on CVS versioning and
the dates on the files.
>
> My second question is a little more elaborate. In a fit of insanity, I
> decided that what I really need out of an embedded system is the ability
> to play Zork. So, I've ported frotz to eCos. This means copying the guts
> of the Berkeley curses and termcap libraries over, hard-coding in a termcap
> entry, and running things that way.
>
> Surprisingly, this works!
>
> Only, it doesn't quite. Once frotz is booted, every other character is
> dropped. Worse, it doesn't actually get cbreak mode; regular line-mode
> processing is still in effect, such that I can edit a line using backspace,
> etcetera, and when I'm done, the edited line shows up all at once.
>
> To clarify, the "every other character is dropped" thing happens before any
> input processing. So, if I type "hello\n", I don't get back the line "hlo";
> I get nothing, because the "\n" was one of the characters dropped. (The hlo
> echoes, though.) If I type "hheelllloo\n\n", then, after the second \n is
> sent, the whole line shows up. If I type "h e l l o \n ", same thing.
>
> It doesn't appear that attempts to tweak terminal mode are at issue; this
> seems to happen regardless.
>
> Any likely first things to look at? I guess the first question is, are
> people successfully doing reads (and ideally raw reads with no line buffering)
> on this system?
Yes, absolutely :-)
What driver did you use for the serial port?
How did you configure the system?
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss