From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8889 invoked by alias); 14 Dec 2007 09:47:56 -0000 Received: (qmail 8880 invoked by uid 22791); 14 Dec 2007 09:47:55 -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; Fri, 14 Dec 2007 09:47:51 +0000 Received: from lunn by londo.lunn.ch with local (Exim 3.36 #1 (Debian)) id 1J378z-0003g1-00; Fri, 14 Dec 2007 10:47:45 +0100 Date: Fri, 14 Dec 2007 10:46:00 -0000 From: Andrew Lunn To: Per-Erik Johansson Cc: ecos-discuss@ecos.sourceware.org Message-ID: <20071214094745.GC13033@lunn.ch> Mail-Followup-To: Per-Erik Johansson , ecos-discuss@ecos.sourceware.org References: <31213.213.15.68.47.1196669035.squirrel@webmail.chalmers.se> <1354.213.15.68.47.1197552515.squirrel@webmail.chalmers.se> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1354.213.15.68.47.1197552515.squirrel@webmail.chalmers.se> 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: [ECOS] Questions about dual flash X-SW-Source: 2007-12/txt/msg00077.txt.bz2 > But if we then run fis init, our output from fis free becomes a bit > confusing.. > RedBoot> fis free > ... Read from 0x001e0000-0x001fffff to 0x407e0000: > 0x00040000 .. 0x001C0000 > 0x001C1000 .. 0x001E0000 > 0x00200000 .. 0x001FFFFF > 0x00000001 .. 0x20020042 > > We have set the Maximum number of free chunks to 40 ((2MB + 8MB > flash)/256k min image size) Are we thinking totally wrong here?? > > One even more strange thing is that if we use telnet, instead of serial, > we get get this output from the fis free: > RedBoot> fis free > ... Read from 0x001e0000-0x001fffff to 0x407e0000: > 0x00040000 .. 0x001C0000 > 0x001C1000 .. 0x001E0000 > 0x00200000 .. 0x001FFFFF > 0x3FFF2BA4 .. 0x000031AC This looks like a bug to me. The code which finds free space is not so simple and it got even hairier when we added support for multiple flashes in the v2 branch. Take a look at /packages/redboot/current/src/flash.c:find_free() and see if you can find the problem. 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