From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7602 invoked by alias); 17 Jun 2006 21:25:47 -0000 Received: (qmail 7594 invoked by uid 22791); 17 Jun 2006 21:25:46 -0000 X-Spam-Check-By: sourceware.org Received: from sta-204-188-98-27.rockynet.com (HELO hermes.chez-thomas.org) (204.188.98.27) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 17 Jun 2006 21:25:43 +0000 Received: by hermes.chez-thomas.org (Postfix, from userid 999) id D16F419500A8; Sat, 17 Jun 2006 15:25:41 -0600 (MDT) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by hermes.chez-thomas.org (Postfix) with ESMTP id 659AB195000F; Sat, 17 Jun 2006 15:25:34 -0600 (MDT) From: Gary Thomas To: =?ISO-8859-1?Q?Andr=E9-John?= Mas Cc: eCos Discussion In-Reply-To: References: <0857FC94-7C1D-4977-AF18-4A6C37CFB47F@sympatico.ca> <1150508462.8940.20.camel@hermes> Content-Type: text/plain; charset=UTF-8 Date: Sat, 17 Jun 2006 21:25:00 -0000 Message-Id: <1150579533.8940.26.camel@hermes> Mime-Version: 1.0 X-Mailer: Evolution 2.6.2 (2.6.2-1.fc5.5) Content-Transfer-Encoding: 8bit Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] Reading flash config value from application X-SW-Source: 2006-06/txt/msg00152.txt.bz2 On Fri, 2006-06-16 at 22:43 -0400, André-John Mas wrote: > Which package do I need to include in my ECC for this? Please keep your replies on the list so that all may benefit. No special packages are required; just include > Andre > > On 16-Jun-06, at 21:41 , Gary Thomas wrote: > > > On Fri, 2006-06-16 at 19:22 -0400, André-John Mas wrote: > >> Hi, > >> > >> I use fconfig in my redboot to set an IP address for my card. What is > >> the > >> best way to read this IP address from my application, since > >> flash_config.h > >> seems to be part of the Redboot package. > > > > You can do this using the Virtual Vectors interface into RedBoot. > > The call: > > CYGACC_CALL_IF_FLASH_CFG_OP(CYGNUM_CALL_IF_FLASH_CFG_GET, > > , > > &result, > > ) > > > > Where is a string containing the 'fconfig' short > > name for > > the data item (use 'fc -l -n' to see what the names are). The > > variable > > defines the type of data. You can find the #define's for these > > in the include file "flash_config.h". > > > > Note: the result of this call is a boolean - true if the data was > > found, false if not. > > > > -- > > ------------------------------------------------------------ > > Gary Thomas | Consulting for the > > MLB Associates | Embedded world > > ------------------------------------------------------------ > > > > > > -- > > Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ > > ecos > > and search the list archive: http://ecos.sourceware.org/ml/ecos- > > discuss -- ------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------ -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss