public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: "Dave Airlie" <airlied@parthus.com>
To: "Jonathan Larmour" <jlarmour@redhat.com>
Cc: "Gary Thomas" <gthomas@redhat.com>,
	ecos-discuss@sources.redhat.com,
	"Grant Edwards" <grante@visi.com>
Subject: Re: [ECOS] PID ROM and eCos
Date: Thu, 25 Jan 2001 09:53:00 -0000	[thread overview]
Message-ID: <Pine.LNX.4.21.0101251428450.25355-100000@platinum.limerick.sslinc.com> (raw)
In-Reply-To: <3A6F2F81.9DDB2A5E@redhat.com>

> Firstly, it should be down to the user on whether they want to copy to RAM.
> But also I've done other work (Gary can probably guess what) this way and
> it was no real trouble. The only problem is determining real addresses
> before relocation, but that's easy too. With the ARM you could even use MMU
> tricks, but I wouldn't recommend it :).

I'm hitting a small snag which may not be a snag but is catching me none
the less,

The PID flash programmer seems to use a trick to get the image for the
FLASH into memory, after generating the ROM image up at 0x4000000, objcopy
is used to relocate it down to 0x60000, and this loaded to the PID via
angel, the flash programmer is then downloaded and executed at 0x8000, and
it writes the stuff between 0x60000 and 0x80000 into the FLASH at
0x4000000

This seems to be working okay for the ROM image, but not for me, I
relocate my image from 0x8000 to 0x60000, program it in and the first
thing I do in reset_vector after the RAM enable is copy it down to 0x8000, 

Now I've just realised I'm not then jumping down to the code in RAM, but I
can't see where the other code does this, from the edbxxxx stuff..

Dave.

-- 
      David Airlie, Software Engineer, Parthus Technologies plc.,
       Mary Rosse Centre, National Tech Park, Limerick, Ireland.
   t: +353-61-508116 / f: +353-61-508101 / David.Airlie@parthus.com



      reply	other threads:[~2001-01-25  9:53 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-24  7:12 Dave Airlie
2001-01-24  7:27 ` Andrew Lunn
2001-01-24  7:42 ` Grant Edwards
2001-01-24  8:02   ` Gary Thomas
2001-01-24 11:08     ` Jonathan Larmour
2001-01-24 11:15       ` Dave Airlie
2001-01-24 11:20       ` Gary Thomas
2001-01-24 11:39         ` Jonathan Larmour
2001-01-25  9:53           ` Dave Airlie [this message]

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=Pine.LNX.4.21.0101251428450.25355-100000@platinum.limerick.sslinc.com \
    --to=airlied@parthus.com \
    --cc=ecos-discuss@sources.redhat.com \
    --cc=grante@visi.com \
    --cc=gthomas@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).