public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Grant Edwards <grante@visi.com>
To: ecos-discuss@sources.redhat.com
Subject: [ECOS]  Re: Placing data at an absolute address
Date: Sun, 01 Apr 2007 15:25:00 -0000	[thread overview]
Message-ID: <euois6$6lr$1@sea.gmane.org> (raw)
In-Reply-To: <OBEELMDOHGDFDEMJCJCJCEPCLLAA.laurie.gellatly@netic.com>

On 2007-04-01, Laurie Gellatly <laurie.gellatly@netic.com> wrote:

> For our eCos application, I'd like to place the MAC address at
> a particular address in flash and have it loaded as part of
> storing Redboot into the flash. At production time, a script
> would be run that finds that address section in redboot.elf
> and updates it before it is stored into the next unit. Finding
> the section in the elf is not the hard bit. I've tried adding
> a new section on the gcc command line and adding a variable
> into the C source which almost works except the section size
> is of length 0. How can I make the section 6 bytes long or is
> there a better way to do this whole thing?

You can use objcopy to add a new section from the command line.

-- 
Grant Edwards                   grante             Yow!  Was my SOY LOAF left
                                  at               out in th'RAIN? It tastes
                               visi.com            REAL GOOD!!


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

  reply	other threads:[~2007-04-01 15:25 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-26 18:55 [ECOS] ANNOUNCEMENT: www.ecosforge.net - a home for eCos packages and modules Øyvind Harboe
2007-04-01  7:52 ` [ECOS] Placing data at an absolute address Laurie Gellatly
2007-04-01 15:25   ` Grant Edwards [this message]
2007-04-01 17:55   ` Gary Thomas
2007-04-01 18:52     ` [ECOS] " Grant Edwards
2007-04-01 23:04       ` Laurie Gellatly
2007-04-01 21:42     ` [ECOS] " Laurie Gellatly
2007-06-01 10:32 ` [ECOS] Dropped characters Laurie Gellatly
2007-06-01 10:56   ` Sergei Gavrikov
2007-06-01 11:56     ` Laurie Gellatly
2007-06-02 12:28       ` Laurie Gellatly
2007-06-01 11:58 ` [ECOS] Eclipse unable to debug threads Laurie Gellatly

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='euois6$6lr$1@sea.gmane.org' \
    --to=grante@visi.com \
    --cc=ecos-discuss@sources.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).