public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Jesper Skov <jskov@cambridge.redhat.com>
To: Jonathan Larmour <jlarmour@redhat.com>
Cc: ecos-discuss@sources.redhat.com
Subject: Re: [ECOS] MBX redboot
Date: Tue, 22 May 2001 23:23:00 -0000	[thread overview]
Message-ID: <ot4ruc60th.fsf@thinktwice.zoftcorp.adsl.dk> (raw)
In-Reply-To: <3AFAE16E.3788227@redhat.com>

>>>>> "Jonathan" == Jonathan Larmour <jlarmour@redhat.com> writes:

>> "Natarajan, Mekala (CTS)" wrote:
>> 
>> How to debug the rom monitor(redboot).  When i build the redboot
>> image from the configuration tool, it creates *.elf, *.srec and
>> .bin file.  Can i use the .elf file,load this into ram and debug
>> the code(redboot).

Jonathan> No you can't debug redboot itself very easily because even a
Jonathan> RAM based RedBoot will steal most of the exception vectors
Jonathan> etc. for itself (as will any application that has GDB stubs
Jonathan> included). And quite right too - you wouldn't be able to use
Jonathan> a RAM based RedBoot to upgrade if it still relied on the
Jonathan> ROM/Flash based one to run.

Actually, debugging the vector magic can be done simply by changing
the location of the virtual vector table in the RAM application
(RedBoot).

Then the ROM monitor can be used for debugging most of the RAM app
startup initialization, including virtual vector setup. You may have
to hack a few things to prevent the RAM app from taking over exception
vectors and/or serial control. But it's definitely doable.

Jesper

  reply	other threads:[~2001-05-22 23:23 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <DDD04F4480FED411AB5D00508BFD7A441783AF@CTSINTDLSXUA>
2001-05-08 16:08 ` Gary Thomas
2001-05-10 11:44 ` Jonathan Larmour
2001-05-22 23:23   ` Jesper Skov [this message]
2001-05-23 14:12     ` Jonathan Larmour
2001-05-23 23:16       ` Jesper Skov
2001-05-04  4:53 mekala natarajan
2001-05-04 11:48 ` Jonathan Larmour
2001-05-06 21:33   ` mekala natarajan
2001-05-07 15:26     ` Gary Thomas

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=ot4ruc60th.fsf@thinktwice.zoftcorp.adsl.dk \
    --to=jskov@cambridge.redhat.com \
    --cc=ecos-discuss@sources.redhat.com \
    --cc=jlarmour@redhat.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).