From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21347 invoked by alias); 11 May 2005 20:21:44 -0000 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 Received: (qmail 21304 invoked from network); 11 May 2005 20:21:39 -0000 Received: from unknown (HELO londo.lunn.ch) (80.238.139.98) by sourceware.org with SMTP; 11 May 2005 20:21:39 -0000 Received: from lunn by londo.lunn.ch with local (Exim 3.36 #1 (Debian)) id 1DVxi5-00078S-00; Wed, 11 May 2005 22:21:37 +0200 Date: Wed, 11 May 2005 20:41:00 -0000 To: Will Wagner Cc: ecos-discuss@sources.redhat.com Message-ID: <20050511202137.GR31731@lunn.ch> Mail-Followup-To: Will Wagner , ecos-discuss@sources.redhat.com References: <427F303D.8000806@carallon.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <427F303D.8000806@carallon.com> User-Agent: Mutt/1.5.9i From: Andrew Lunn Subject: Re: [ECOS] flash erase and bootblocks X-SW-Source: 2005-05/txt/msg00168.txt.bz2 On Mon, May 09, 2005 at 10:41:17AM +0100, Will Wagner wrote: > Hi All, > > I have a question about support for smaller bootblock sectors when > erasing/programming flash. > > I have a driver for AMD AM29DL323D flash chips all working nicely. These > chips have 8 smaller sectors at the beginning of flash. > > The erase and program routines in flash_am29xxxx.inl have support for > the smaller bootblocks. However the flash_erase function in flash.c > doesn't support the bootblocks so if I try to erase just one of the > smaller sectors it erases all of them at once. > > Anyone got any suggestions on how to get round this? Otherwise I guess > I'll have to alter flash_erase to suit my needs. Take a look at the flash_v2 branch in CVS. It has a new api which should allow this to work much cleaner. There is a driver for AMD devices, but i don't know if this particular device is supported. You will need to check the sources. 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