public inbox for ecos-maintainers@sourceware.org
 help / color / mirror / Atom feed
From: Gary Thomas <gary@mlbassoc.com>
To: Nick Garnett <nickg@ecoscentric.com>
Cc: John Dallaway <jld@ecoscentric.com>,
	eCos Maintainers <ecos-maintainers@sources.redhat.com>
Subject: Re: Patches for the eCos 2.0 branch
Date: Tue, 18 Mar 2003 19:13:00 -0000	[thread overview]
Message-ID: <1048014798.7462.3684.camel@hermes.chez-thomas.org> (raw)
In-Reply-To: <m3adfslcm7.fsf@miso.calivar.com>

On Tue, 2003-03-18 at 12:05, Nick Garnett wrote:
> Gary Thomas <gary@mlbassoc.com> writes:
> 
> > 
> > Actually, I tried to make it such that a dependency does not exist
> > (note the most recent version which this patch reflects does try 
> > and work properly even without an updated RedBoot).  I may have
> > missed the mark, but I did try.
> > 
> 
> It certainly caused me a bit of head scratching when I tried running
> on an Adder board with an old RedBoot yesterday. Fortunately I
> remembered your change and updating the Adder's RedBoot fixed it.
> 
> The problem appeared to be that *(CYGHWR_HAL_VSR_TABLE + 0x1F0)
> contained 0xFFFF, resulting in _mpc8xx_allocBd() starting again from
> QUICC_BD_BASE and overwriting RedBoot's stuff for the serial device.
> 
> The effect I saw was that halfway through initializing the rx buffer
> descriptors, the serial device went haywire.
> 
> I'm not sure how it is possible to make this code backward compatible,
> since without the value in (CYGHWR_HAL_VSR_TABLE + 0x1F0), eCos has no
> way of knowing where in the DPRAM it can make allocations.

The drivers are supposed to be flexible in this case.  If the
eCos program changes the serial port setup (allocates different
buffer descriptors), the driver in RedBoot should be OK with it
since it uses only the data from the CPM after initialization.

I could see a problem though - RedBoot could choose some region
for the buffers for the serial port and then, because of the lack of 
communication, eCos might choose those same locations for the
network.  If you were running an eCos program with networking in
it, I could see this happening.

Alas, it seems that updating RedBoot is a good idea anyway :-)

-- 
------------------------------------------------------------
Gary Thomas                 |
MLB Associates              |  Consulting for the
+1 (970) 229-1963           |    Embedded world
http://www.mlbassoc.com/    |
email: <gary@mlbassoc.com>  |
gpg: http://www.chez-thomas.org/gary/gpg_key.asc
------------------------------------------------------------

  reply	other threads:[~2003-03-18 19:13 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-18  8:47 John Dallaway
2003-03-18 13:48 ` Gary Thomas
2003-03-18 16:04   ` Proposal for processing patches " John Dallaway
2003-03-18 17:25     ` Jonathan Larmour
2003-03-18 18:21       ` Nick Garnett
2003-03-18 18:56     ` Andrew Lunn
2003-04-12  5:00       ` Jonathan Larmour
2003-04-14  7:28         ` Andrew Lunn
2003-03-18 19:01     ` Andrew Lunn
2003-03-18 22:58       ` Jonathan Larmour
2003-03-18 19:16     ` SNMP for FreeBSD Andrew Lunn
2003-03-19 13:22       ` Jonathan Larmour
2003-03-19 14:23         ` Gary Thomas
2003-03-19 18:07         ` Nick Garnett
2003-03-25 17:01       ` Andrew Lunn
2003-03-19 14:22     ` 2.0 branch: mn10300 debug info patch Bart Veer
2003-03-19 14:40       ` John Dallaway
2003-03-19 18:07       ` Nick Garnett
2003-03-18 18:09   ` Patches for the eCos 2.0 branch Nick Garnett
2003-03-18 18:25     ` Gary Thomas
2003-03-18 19:05       ` Nick Garnett
2003-03-18 19:13         ` Gary Thomas [this message]
2003-03-19 10:18           ` New CPM/DPRAM allocator John Dallaway
2003-03-19 13:02             ` Nick Garnett
2003-03-19 14:38               ` Gary Thomas
2003-03-19 15:44               ` John Dallaway
2003-03-19 17:06                 ` Gary Thomas
2003-03-19 18:22                   ` Nick Garnett
2003-03-19 18:26                     ` Gary Thomas
2003-03-19 18:52                       ` Nick Garnett
     [not found]                         ` <1048100525.7462.5617.camel@hermes.chez-thomas.org>
2003-03-19 19:21                           ` Nick Garnett
2003-03-20 13:02                           ` Nick Garnett
2003-03-20 13:14                             ` Gary Thomas
2003-03-20 18:11                               ` Nick Garnett

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1048014798.7462.3684.camel@hermes.chez-thomas.org \
    --to=gary@mlbassoc.com \
    --cc=ecos-maintainers@sources.redhat.com \
    --cc=jld@ecoscentric.com \
    --cc=nickg@ecoscentric.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).