From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21828 invoked by alias); 12 Nov 2007 12:14:17 -0000 Received: (qmail 21818 invoked by uid 22791); 12 Nov 2007 12:14:16 -0000 X-Spam-Check-By: sourceware.org Received: from 204-133-123-27.dia.static.slbbi.com (HELO mail.chez-thomas.org) (204.133.123.27) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 12 Nov 2007 12:14:14 +0000 Received: by mail.chez-thomas.org (Postfix, from userid 999) id 4AA3A19502A8; Mon, 12 Nov 2007 05:14:12 -0700 (MST) Received: from [192.168.1.101] (hermes_local [192.168.1.101]) by mail.chez-thomas.org (Postfix) with ESMTP id 5BCF119500BC; Mon, 12 Nov 2007 05:14:09 -0700 (MST) Message-ID: <47384390.4030907@mlbassoc.com> Date: Mon, 12 Nov 2007 12:14:00 -0000 From: Gary Thomas User-Agent: Thunderbird 1.5.0.12 (X11/20070530) MIME-Version: 1.0 To: Syed Ismail CC: ecos-discuss@ecos.sourceware.org References: <20071112113002.1721.qmail@pro12.rediffmailpro.com> In-Reply-To: <20071112113002.1721.qmail@pro12.rediffmailpro.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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: Re: [ECOS] Redboot X-SW-Source: 2007-11/txt/msg00069.txt.bz2 Syed Ismail wrote: > > > On Mon, 12 Nov 2007 Andrew Lunn wrote : >> On Mon, Nov 12, 2007 at 08:38:52AM -0000, Syed Ismail >> wrote: >>> Hi >>> When i run redboot on my custom board, i get the >> following message. >>> **Warning** FLASH configuration checksum error or >> invalid key >>> Use 'fconfig -i' to [re]initialize database >>> >>> fis list gives this >>> Name FLASH addr Mem addr Length >> Entry point >>> ReReoooococoigig 0xF000F000 0xF000F000 0x10001000 >> 0x00000000 >>> >>> What could be the issue. Could it be flash device >> incompatibility. Please help. >> >> Did you notice that Redboot says this: >> >> Use 'fconfig -i' to [re]initialize database >> >> What happens when you do this? >> >> You may also want to try >> >> fis init >> >> The RedBoot manual is: >> >> http://ecos.sourceware.org/docs-latest/redboot/redboot-g- >> uide.html >> >> Andrew > Hi > I found that redboot configuration does not get written into flash properly. So, the checksum error. For example, config key1 0BADFACE gets written as FACEFACE. Where could be the issue. It looks like your FLASH doesn't read 32 bit quantities properly. Unless your FLASH driver sets 'CYGSEM_IO_FLASH_READ_INDIRECT', RedBoot will read the FLASH (FIS directory, FCONFIG data, etc) directly from the FLASH, using the most expedient means possible. On most platforms, this will be using normal 'memcpy()'. Depending on how your device and system are configured, this will possibly go through a data cache which may also be causing problems. -- ------------------------------------------------------------ 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