public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Andrew Lunn <andrew.lunn@ascom.ch>
To: eCos Disuss <ecos-discuss@sourceware.cygnus.com>
Subject: [ECOS] ROMRAM start for ARM
Date: Tue, 05 Jun 2001 08:55:00 -0000	[thread overview]
Message-ID: <20010605175504.F6438@biferten.ma.tech.ascom.ch> (raw)

Hi Folks

Im trying to figure out how to make the ARM family ROMRAM start. In
particular im interested in the EBSA285.

I have to modify PLATFORM_SETUP1 so that after its setup the DRAM it
copies the image from ROM into RAM. My question is, what exactly do i
have to copy from where to where?

I need to copy the text, rodata sections. What about the rom_vectors
and fixed_vectors section? I assume these also need copying. It looks
like i just have to copy the image to address 0x0. 

I assume a ROMRAM application is linked using the RAM memory layout?
So all symbols will have the RAM values. How do i get the address the
code is currently in ROM? Does the linker know this or do i just have
to hard code it? It looks like the MIPs has the FLASH address
hardcoded into it. Is there is symbol i can use the find out how much
i have to copy? __rom_data_end?

At the moment it looks like i need to do the equivelent of
        memcpy(0,FLASH_START,__rom_data_end);
        goto ram
ram: nop;

Does this seem right?

       Thanks
                Andrew

             reply	other threads:[~2001-06-05  8:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-05  8:55 Andrew Lunn [this message]
2001-06-05  9:20 ` David Airlie

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=20010605175504.F6438@biferten.ma.tech.ascom.ch \
    --to=andrew.lunn@ascom.ch \
    --cc=ecos-discuss@sourceware.cygnus.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).