From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31004 invoked by alias); 17 Jun 2006 01:41:08 -0000 Received: (qmail 30996 invoked by uid 22791); 17 Jun 2006 01:41:07 -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 01:41:05 +0000 Received: by hermes.chez-thomas.org (Postfix, from userid 999) id 1FBF119500A3; Fri, 16 Jun 2006 19:41:04 -0600 (MDT) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by hermes.chez-thomas.org (Postfix) with ESMTP id 256F2195000F; Fri, 16 Jun 2006 19:41:03 -0600 (MDT) From: Gary Thomas To: =?ISO-8859-1?Q?Andr=E9-John?= Mas Cc: ecos-discuss@sources.redhat.com In-Reply-To: <0857FC94-7C1D-4977-AF18-4A6C37CFB47F@sympatico.ca> References: <0857FC94-7C1D-4977-AF18-4A6C37CFB47F@sympatico.ca> Content-Type: text/plain; charset=utf-8 Date: Sat, 17 Jun 2006 01:41:00 -0000 Message-Id: <1150508462.8940.20.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/msg00144.txt.bz2 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