public inbox for ecos-devel@sourceware.org
 help / color / mirror / Atom feed
From: John Clark <clarkjc@runbox.com>
To: ecos-devel@sourceware.org
Cc: asl@sourceware.org
Subject: Redboot load command is crippled
Date: Sun, 19 Nov 2006 12:46:00 -0000	[thread overview]
Message-ID: <45605202.7020207@runbox.com> (raw)

Hello,

I've noticed that the Redboot load command is crippled whenever 
"Validate RAM addresses during load" 
(CYGSEM_REDBOOT_VALIDATE_USER_RAM_LOADS) is disabled.  It looks like 
when the load into flash option was added to load.c, a call to 
valid_address() was added to load_elf_image() and load_srec_image() to 
determine whether to write to flash or not.

I'm new to using Redboot and eCos.  I've been playing with it on an i386 
PC target and loading eCos applications into extended memory above 1 
MB.  Redboot seems to require address validation to be disabled because 
this platform doesn't implement cyg_plf_memory_segment().

Anyhow, because of the unconditional calls to valid_address() now, load 
reports success but fails to actually write to memory outside of its 
known range.  For a quick fix, I put a check for 
CYGSEM_REDBOOT_VALIDATE_USER_RAM_LOADS around the calls to 
valid_address().  Unfortunately, that breaks the load into flash feature 
completely when address validation is disabled.

Everything else looks great.  I'm really starting to like eCos.  Thanks.

- John

             reply	other threads:[~2006-11-19 12:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-19 12:46 John Clark [this message]
2006-11-19 16:01 ` Andrew Lunn
2006-11-19 22:51   ` John Clark
2006-11-20 23:13     ` Andrew Lunn
2006-11-22  6:51       ` John Clark

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=45605202.7020207@runbox.com \
    --to=clarkjc@runbox.com \
    --cc=asl@sourceware.org \
    --cc=ecos-devel@sourceware.org \
    /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).