From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30198 invoked by alias); 11 Nov 2003 12:51:48 -0000 Mailing-List: contact ecos-discuss-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@sources.redhat.com Received: (qmail 30191 invoked from network); 11 Nov 2003 12:51:47 -0000 Received: from unknown (HELO hermes.chez-thomas.org) (63.225.98.241) by sources.redhat.com with SMTP; 11 Nov 2003 12:51:47 -0000 Received: by hermes.chez-thomas.org (Postfix, from userid 2000) id 36F4F50D8B5; Tue, 11 Nov 2003 05:51:47 -0700 (MST) Received: from localhost (localhost.localdomain [127.0.0.1]) by hermes.chez-thomas.org (Postfix) with ESMTP id 9C61B50D8B4; Tue, 11 Nov 2003 05:51:45 -0700 (MST) From: Gary Thomas To: "M.Eugenia G.Valdecasas" Cc: ecos-discuss@sources.redhat.com In-Reply-To: <20031111100754.GE325@kavik.isar-tec.com> References: <000b01c3a7d0$49ead9f0$030aa8c0@kavik> <20031111100754.GE325@kavik.isar-tec.com> Content-Type: text/plain Organization: MLB Associates Message-Id: <1068555105.9906.321.camel@hermes> Mime-Version: 1.0 Date: Tue, 11 Nov 2003 12:51:00 -0000 Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-4.4 required=5.0 tests=AWL,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REFERENCES,REPLY_WITH_QUOTES,USER_AGENT_XIMIAN autolearn=ham version=2.55 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) Subject: Re: Re:[ECOS] Flash detection X-SW-Source: 2003-11/txt/msg00152.txt.bz2 On Tue, 2003-11-11 at 03:07, M.Eugenia G.Valdecasas wrote: > > > The configuration lines are: > > > > > > in altair_strataflash.inl-> > > > > > > #define CYGNUM_FLASH_DEVICES (2) > > > #define CYGNUM_FLASH_BASE (0x00000000u) > > > #define CYGNUM_FLASH_BASE_MASK (0xFE000000u) // 2 * 16Mb devices > > > > #define CYGNUM_FLASH_WIDTH (16) > > > > #define CYGNUM_FLASH_BLANK (1) > > > > > > > > #define FLASH_P2V(x) ((volatile flash_t *)(((unsigned)(x) < > > 0x1000) ? \ > > > > ((unsigned)(x) | 0xa0000000) : \ > > > > (unsigned)(x))) > > > > > > > > > > Why do you have this code? I think it was only necessary on the > > IQ80321 > > and definitely *not* on the PXA25x > > If I substitude this code for > #define FLASH_P2V(x) (unsigned)(x) > > The exit on the console would be: > > +$T0a0f:08f0efa3;0d:d8ca00a0;#a7 > > and would repeat the same line every time I press a key. First of all, this is RedBoot falling into GDB mode, indicating that you are accessing invalid memory. I think you have other configuration or setup issues here. On most ARM platforms, PXA25x based ones included, the hardware has FLASH at 0x00000000 (as you write above), but eCos immediately uses the MMU to remap this to some other address. For example, on the uE250 (PXA250) the FLASH is at *logical* address 0x50000000 and this is the address used by the FLASH drivers. You'll have to figure out the appropriate address to use, based on how memory is being remapped. > > Also I tried to apply the patch for strataflash: > 2003-05-02 Jani Monoses > > but it gave me this answer as well: > +$T0a0f:08f0efa3;0d:d8ca00a0;#a7 > > Do I have to apply other patches? > > I know I take ok the data of the flash (manufacturer code, qry etc...) > but somehow somewhere between the cache enable and cache disable, this > data is lost... does it make anysense what I am saying??? > > Why would it jump out of this condition > if ( (qp->manuf_code == FLASH_Intel_code) && > (strncmp(qp->id, "QRY", 3) == 0)) > > if the data that the flash sends is correct???? > I am out of ideas.... -- Gary Thomas MLB Associates -- Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos and search the list archive: http://sources.redhat.com/ml/ecos-discuss