From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32268 invoked by alias); 1 Apr 2007 07:52:18 -0000 Received: (qmail 32247 invoked by uid 22791); 1 Apr 2007 07:52:17 -0000 X-Spam-Check-By: sourceware.org Received: from netic.com (HELO netic.com) (208.131.130.247) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 01 Apr 2007 08:52:14 +0100 Received: from piii550 (60-242-91-36.static.tpgi.com.au [60.242.91.36]) by netic.com (8.12.11.20060308/8.12.11) with SMTP id l317qAjY032108; Sun, 1 Apr 2007 01:52:11 -0600 From: "Laurie Gellatly" To: =?iso-8859-1?Q?=D8yvind_Harboe?= , "eCos Discussion" Date: Sun, 01 Apr 2007 07:52:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: [ECOS] Placing data at an absolute address X-SW-Source: 2007-04/txt/msg00000.txt.bz2 Hi All, 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? Thanks ...Laurie:{) -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss