From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25519 invoked by alias); 13 Nov 2007 14:05:58 -0000 Received: (qmail 25510 invoked by uid 22791); 13 Nov 2007 14:05:57 -0000 X-Spam-Check-By: sourceware.org Received: from londo.lunn.ch (HELO londo.lunn.ch) (80.238.139.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 13 Nov 2007 14:05:54 +0000 Received: from lunn by londo.lunn.ch with local (Exim 3.36 #1 (Debian)) id 1IrwOk-0007EN-00; Tue, 13 Nov 2007 15:05:50 +0100 Date: Tue, 13 Nov 2007 14:07:00 -0000 From: Andrew Lunn To: Syed Ismail Cc: ecos-discuss@ecos.sourceware.org Message-ID: <20071113140550.GT4401@lunn.ch> Mail-Followup-To: Syed Ismail , ecos-discuss@ecos.sourceware.org References: <20071113130642.13476.qmail@pro9.rediffmailpro.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071113130642.13476.qmail@pro9.rediffmailpro.com> User-Agent: Mutt/1.5.17 (2007-11-01) 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: Re: Re: Re: [ECOS] Redboot X-SW-Source: 2007-11/txt/msg00089.txt.bz2 > > How is the flash attached to > > the data bus? > attached to processor through chip select cs0. > > Is it a 16 bit device or a 32 bit device? > 16 bit > > How is the > > flash driver configured? > #define CYGNUM_FLASH_INTERLEAVE (1) > #define CYGNUM_FLASH_SERIES (1) > #define CYGNUM_FLASH_WIDTH (16) > CYGHWR_DEVS_FLASH_MXC_NOR,CYGHWR_DEVS_FLASH_MXC_NAND and CYGHWR_DEVS_FLASH_MXC_MULTI are enabled Does the CPU know you have a 16 bit device connected to its 32 bit data bus? Maybe you need to set the MMU up to allow this? Also, have you tried Gary's suggestion. Force all reads to go through the flash API, not direct from memory with a memcpy? Andrew -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss