public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Driver Development approach
@ 2001-06-11 15:06 Trenton D. Adams
  2001-06-12 11:09 ` Jonathan Larmour
  0 siblings, 1 reply; 5+ messages in thread
From: Trenton D. Adams @ 2001-06-11 15:06 UTC (permalink / raw)
  To: 'eCos Discussion'

I've been reading up on driver development.  I want some advice on my
approach.

I was thinking that I could make a driver that simply prints to stdout
when cyg_io_write() or cyg_io_read() are called on it.  I could make a
test harness program, and run it through GDB.  Then when connecting
through GDB, I would know that it's working because the messages would
be output to me.

Will this even work?  If so, is this a good approach to learn how the
drivers interact with the system?

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

* Re: [ECOS] Driver Development approach
  2001-06-11 15:06 [ECOS] Driver Development approach Trenton D. Adams
@ 2001-06-12 11:09 ` Jonathan Larmour
  2001-06-12 13:07   ` Trenton D. Adams
  0 siblings, 1 reply; 5+ messages in thread
From: Jonathan Larmour @ 2001-06-12 11:09 UTC (permalink / raw)
  To: Trenton D. Adams; +Cc: 'eCos Discussion'

"Trenton D. Adams" wrote:
> 
> I've been reading up on driver development.  I want some advice on my
> approach.
> 
> I was thinking that I could make a driver that simply prints to stdout
> when cyg_io_write() or cyg_io_read() are called on it.  I could make a
> test harness program, and run it through GDB.  Then when connecting
> through GDB, I would know that it's working because the messages would
> be output to me.
> 
> Will this even work?  If so, is this a good approach to learn how the
> drivers interact with the system?

I think it could work, while the cyg_io stuff isn't particularly intended
to be re-entrant, I think it is anyway.

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
Come to the Red Hat TechWorld open source conference in Brussels!
Keynotes, techie talks and exhibitions    http://www.redhat-techworld.com/

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

* RE: [ECOS] Driver Development approach
  2001-06-12 11:09 ` Jonathan Larmour
@ 2001-06-12 13:07   ` Trenton D. Adams
  2001-06-12 15:59     ` Lewin A.R.W. Edwards
  0 siblings, 1 reply; 5+ messages in thread
From: Trenton D. Adams @ 2001-06-12 13:07 UTC (permalink / raw)
  To: 'Jonathan Larmour'; +Cc: 'eCos Discussion'

Ah, see the headers below.  The list is CCing to it's self and creating
duplicate messages, no?



Return-Path:
<ecos-discuss-return-7450-tadams=extremeeng.com@sources.redhat.com>
Received: from sourceware.cygnus.com ([205.180.83.71])
          by Firewall.extremeeng.com (Post.Office MTA v3.5.3 release 223
          ID# 0-0U10L2S100V35) with SMTP id com
          for <tadams@extremeeng.com>; Tue, 12 Jun 2001 14:04:48 -0600
Received: (qmail 15839 invoked by alias); 12 Jun 2001 18:09:08 -0000
Mailing-List: contact ecos-discuss-help@sourceware.cygnus.com; run by
ezmlm
Precedence: bulk
List-Unsubscribe:
< mailto:ecos-discuss-unsubscribe-tadams=extremeeng.com@sources.redhat.co
m>
List-Subscribe: < mailto:ecos-discuss-subscribe@sources.redhat.com >
List-Archive: < http://sources.redhat.com/ml/ecos-discuss/ >
List-Post: < mailto:ecos-discuss@sources.redhat.com >
List-Help: < mailto:ecos-discuss-help@sources.redhat.com >,
< http://sources.redhat.com/ml/#faqs >
Sender: ecos-discuss-owner@sources.redhat.com
Delivered-To: mailing list ecos-discuss@sources.redhat.com
Received: (qmail 15753 invoked from network); 12 Jun 2001 18:08:58 -0000
Received: from unknown (HELO executor.cambridge.redhat.com)
(195.224.55.237)
  by sourceware.cygnus.com with SMTP; 12 Jun 2001 18:08:58 -0000
Received: from redhat.com (murgh.cambridge.redhat.com [172.16.18.70])
	by executor.cambridge.redhat.com (Postfix) with ESMTP
	id 6665AABB03; Tue, 12 Jun 2001 19:08:50 +0100 (BST)
Message-ID: < 3B265AB2.67E19640@redhat.com >
Date: Tue, 12 Jun 2001 19:08:50 +0100
From: Jonathan Larmour <jlarmour@redhat.com>
Organization: Red Hat UK Ltd.
X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.17-14enterprise i686)
X-Accept-Language: en
MIME-Version: 1.0
To: "Trenton D. Adams" <tadams@extremeeng.com>
Cc: 'eCos Discussion' <ecos-discuss@sourceware.cygnus.com>
References: < 000e01c0f2c2$77c59ab0$090110ac@BURN >
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Subject: Re: [ECOS] Driver Development approach






-----Original Message-----
From: ecos-discuss-owner@sources.redhat.com
[ mailto:ecos-discuss-owner@sources.redhat.com ] On Behalf Of Jonathan
Larmour
Sent: Tuesday, June 12, 2001 12:09 PM
To: Trenton D. Adams
Cc: 'eCos Discussion'
Subject: Re: [ECOS] Driver Development approach


"Trenton D. Adams" wrote:
> 
> I've been reading up on driver development.  I want some advice on my 
> approach.
> 
> I was thinking that I could make a driver that simply prints to stdout

> when cyg_io_write() or cyg_io_read() are called on it.  I could make a

> test harness program, and run it through GDB.  Then when connecting 
> through GDB, I would know that it's working because the messages would

> be output to me.
> 
> Will this even work?  If so, is this a good approach to learn how the 
> drivers interact with the system?

I think it could work, while the cyg_io stuff isn't particularly
intended to be re-entrant, I think it is anyway.

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 Come to the Red Hat TechWorld open source conference in
Brussels!
Keynotes, techie talks and exhibitions
http://www.redhat-techworld.com/

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

* RE: [ECOS] Driver Development approach
  2001-06-12 13:07   ` Trenton D. Adams
@ 2001-06-12 15:59     ` Lewin A.R.W. Edwards
  0 siblings, 0 replies; 5+ messages in thread
From: Lewin A.R.W. Edwards @ 2001-06-12 15:59 UTC (permalink / raw)
  To: Trenton D. Adams, 'Jonathan Larmour'; +Cc: 'eCos Discussion'

At 02:03 PM 6/12/2001 -0600, Trenton D. Adams wrote:
>Ah, see the headers below.  The list is CCing to it's self and creating
>duplicate messages, no?

I'm not seeing these duplicates.

You will (eventually) get two copies of this message of mine. One direct, 
one via the list, and both copies will say "cc:"'eCos Discussion'" 
<ecos-discuss@sourceware.cygnus.com>". The list preserves the "cc:" from 
the original message sent to it when it broadcasts the message. That does 
not imply circular routing.


-- Lewin A.R.W. Edwards
Embedded Engineer, Digi-Frame Inc.
Work: http://www.digi-frame.com/
Tel (914) 937-4090 9am-6:30pm M-F ET
Personal: http://www.larwe.com/ http://www.zws.com/

"Far better it is to dare mighty things, to win glorious triumphs, even 
though checkered by failure, than to rank with those poor spirits who 
neither enjoy much nor suffer much, because they live in the gray twilight 
that knows not victory nor defeat."
(Theodore Roosevelt)

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

* RE: [ECOS] Driver Development approach
@ 2001-06-12 15:57 Dan Conti
  0 siblings, 0 replies; 5+ messages in thread
From: Dan Conti @ 2001-06-12 15:57 UTC (permalink / raw)
  To: eCos Discussion

I'm not getting multiple messages from the list. Have you checked your
outlook rules? The headers below show a message sent from jifl to you
and cc'd to the list, exactly as it should be.

-Dan

> -----Original Message-----
> From: Trenton D. Adams [ mailto:tadams@extremeeng.com ]
> Sent: Tuesday, June 12, 2001 1:04 PM
> To: 'Jonathan Larmour'
> Cc: 'eCos Discussion'
> Subject: RE: [ECOS] Driver Development approach
> 
> 
> Ah, see the headers below.  The list is CCing to it's self 
> and creating
> duplicate messages, no?
> 
> 
> 
> Return-Path:
> <ecos-discuss-return-7450-tadams=extremeeng.com@sources.redhat.com>
> Received: from sourceware.cygnus.com ([205.180.83.71])
>           by Firewall.extremeeng.com (Post.Office MTA v3.5.3 
> release 223
>           ID# 0-0U10L2S100V35) with SMTP id com
>           for <tadams@extremeeng.com>; Tue, 12 Jun 2001 14:04:48 -0600
> Received: (qmail 15839 invoked by alias); 12 Jun 2001 18:09:08 -0000
> Mailing-List: contact ecos-discuss-help@sourceware.cygnus.com; run by
> ezmlm
> Precedence: bulk
> List-Unsubscribe:
> < mailto:ecos-discuss-unsubscribe-tadams=extremeeng.com@sources
> .redhat.co
> m>
> List-Subscribe: < mailto:ecos-discuss-subscribe@sources.redhat.com >
> List-Archive: < http://sources.redhat.com/ml/ecos-discuss/ >
> List-Post: < mailto:ecos-discuss@sources.redhat.com >
> List-Help: < mailto:ecos-discuss-help@sources.redhat.com >,
> < http://sources.redhat.com/ml/#faqs >
> Sender: ecos-discuss-owner@sources.redhat.com
> Delivered-To: mailing list ecos-discuss@sources.redhat.com
> Received: (qmail 15753 invoked from network); 12 Jun 2001 
> 18:08:58 -0000
> Received: from unknown (HELO executor.cambridge.redhat.com)
> (195.224.55.237)
>   by sourceware.cygnus.com with SMTP; 12 Jun 2001 18:08:58 -0000
> Received: from redhat.com (murgh.cambridge.redhat.com [172.16.18.70])
> 	by executor.cambridge.redhat.com (Postfix) with ESMTP
> 	id 6665AABB03; Tue, 12 Jun 2001 19:08:50 +0100 (BST)
> Message-ID: < 3B265AB2.67E19640@redhat.com >
> Date: Tue, 12 Jun 2001 19:08:50 +0100
> From: Jonathan Larmour <jlarmour@redhat.com>
> Organization: Red Hat UK Ltd.
> X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.17-14enterprise i686)
> X-Accept-Language: en
> MIME-Version: 1.0
> To: "Trenton D. Adams" <tadams@extremeeng.com>
> Cc: 'eCos Discussion' <ecos-discuss@sourceware.cygnus.com>
> References: < 000e01c0f2c2$77c59ab0$090110ac@BURN >
> Content-Type: text/plain; charset=us-ascii
> Content-Transfer-Encoding: 7bit
> Subject: Re: [ECOS] Driver Development approach
> 
> 
> 
> 
> 
> 
> -----Original Message-----
> From: ecos-discuss-owner@sources.redhat.com
> [ mailto:ecos-discuss-owner@sources.redhat.com ] On Behalf Of Jonathan
> Larmour
> Sent: Tuesday, June 12, 2001 12:09 PM
> To: Trenton D. Adams
> Cc: 'eCos Discussion'
> Subject: Re: [ECOS] Driver Development approach
> 
> 
> "Trenton D. Adams" wrote:
> > 
> > I've been reading up on driver development.  I want some 
> advice on my 
> > approach.
> > 
> > I was thinking that I could make a driver that simply 
> prints to stdout
> 
> > when cyg_io_write() or cyg_io_read() are called on it.  I 
> could make a
> 
> > test harness program, and run it through GDB.  Then when connecting 
> > through GDB, I would know that it's working because the 
> messages would
> 
> > be output to me.
> > 
> > Will this even work?  If so, is this a good approach to 
> learn how the 
> > drivers interact with the system?
> 
> I think it could work, while the cyg_io stuff isn't particularly
> intended to be re-entrant, I think it is anyway.
> 
> 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 Come to the Red Hat TechWorld open source conference in
> Brussels!
> Keynotes, techie talks and exhibitions
> http://www.redhat-techworld.com/
> 
> 

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

end of thread, other threads:[~2001-06-12 15:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-11 15:06 [ECOS] Driver Development approach Trenton D. Adams
2001-06-12 11:09 ` Jonathan Larmour
2001-06-12 13:07   ` Trenton D. Adams
2001-06-12 15:59     ` Lewin A.R.W. Edwards
2001-06-12 15:57 Dan Conti

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