public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Jonathan Larmour <jlarmour@redhat.com>
To: wjasper@tx.ncsu.edu
Cc: ecos-discuss@sourceware.cygnus.com
Subject: Re: [ECOS] Placing binary file into RAM on target
Date: Thu, 26 Jul 2001 11:35:00 -0000	[thread overview]
Message-ID: <3B6062A6.D3394E40@redhat.com> (raw)
In-Reply-To: <200107261817.OAA24971@lx10.tx.ncsu.edu>

Warren Jasper wrote:
> 
> Does anybody know of a way to place an arbitrary binary file into
> SDRAM on a target if one is running gdb stubs?  I am running a
> Intel StrongARM SA1110, and would like to load a program into
> FLASH via eCos (as opposed to JTAG via a parallel port with JFLASH).
> 
> gdb will only load elf type files, so I guess one option is to convert a
> file into "elf" and have the loader put it into memory.  Is there an easy way
> to do this or a better way?

echo > foo.c
arm-elf-gcc -c foo.c
arm-elf-objcopy --add-section .loadme=mybinfile foo.o
arm-elf-objcopy --set-section-flags .loadme=alloc,contents,load,data foo.o

Probably anyway :). Close enough for you to work out the rest on your own.

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine

  reply	other threads:[~2001-07-26 11:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-26 11:22 Warren Jasper
2001-07-26 11:35 ` Jonathan Larmour [this message]
2001-07-26 14:09 ` Gary Thomas
     [not found] <200107271231.IAA25770@lx10.tx.ncsu.edu>
2001-07-27  5:39 ` 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=3B6062A6.D3394E40@redhat.com \
    --to=jlarmour@redhat.com \
    --cc=ecos-discuss@sourceware.cygnus.com \
    --cc=wjasper@tx.ncsu.edu \
    /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).