public inbox for ecos-devel@sourceware.org
 help / color / mirror / Atom feed
From: Stanislav Meduna <stano@meduna.org>
To: ecos-devel@ecos.sourceware.org
Subject: ROMRAM .. kind of
Date: Tue, 21 Feb 2012 21:08:00 -0000	[thread overview]
Message-ID: <4F4407A2.1030706@meduna.org> (raw)

Hi,

I want to be able to update the RedBoot from RedBoot. So
I need to copy a short code from RedBoot away into RAM,
disable interrupts and run it to flash the new RedBoot,
then do a verify and reboot to the new one.

That code has to be linked with offsets in RAM, but needs
to be stored in flash.

Unfortunately I am not really a guru in GNU ld and its scripts.
Is there any example on how to link a code for one address
and direct the section somewhere else in the final image?

I've looked up some ROMRAM setups but they look such that
the code up to the RAM copy is position independent and initially
simply runs from an 'incorrect' address, which does not
really help me much.

In the case it matters I need to do this for a Cortex-M3.

Maybe my flash code can be made position independent too
and I can also think of some script magic to assemble the
flash image, but I would of course prefer to do this in
the ld script way if possible.

Thanks
-- 
                                      Stano

             reply	other threads:[~2012-02-21 21:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-21 21:08 Stanislav Meduna [this message]
     [not found] ` <CAOFa9c3aBi51iOj5=2bDoYv_zvVMPzSnvfh3jP3gX1i+YzTJhQ@mail.gmail.com>
2012-02-23 21:24   ` [ECOS] " Stanislav Meduna

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=4F4407A2.1030706@meduna.org \
    --to=stano@meduna.org \
    --cc=ecos-devel@ecos.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).