From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21922 invoked by alias); 3 Dec 2007 12:31:47 -0000 Received: (qmail 21909 invoked by uid 22791); 3 Dec 2007 12:31:46 -0000 X-Spam-Check-By: sourceware.org Received: from py-out-1112.google.com (HELO py-out-1112.google.com) (64.233.166.183) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 03 Dec 2007 12:31:40 +0000 Received: by py-out-1112.google.com with SMTP id a25so6565752pyi for ; Mon, 03 Dec 2007 04:31:38 -0800 (PST) Received: by 10.142.109.16 with SMTP id h16mr102879wfc.1196685095053; Mon, 03 Dec 2007 04:31:35 -0800 (PST) Received: by 10.142.251.9 with HTTP; Mon, 3 Dec 2007 04:31:35 -0800 (PST) Message-ID: Date: Mon, 03 Dec 2007 12:31:00 -0000 From: "Tom Deconinck" To: ecos-discuss@ecos.sourceware.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <31213.213.15.68.47.1196669035.squirrel@webmail.chalmers.se> 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: [ECOS] Questions about dual flash X-SW-Source: 2007-12/txt/msg00004.txt.bz2 On Dec 3, 2007 9:03 AM, Per-Erik Johansson wrote: > Hello again > > Found some posts from 2004 about merging flash_v2 and trunk.. > http://sources.redhat.com/ml/ecos-discuss/2004-10/msg00119.html > will this still work? > Also I have a home-cooked driver for the internal flash, do I have to > change this driver or will it work with v2 as it is? > > Cheers > Per-Erik > > > > >> Hello > >> > >> I'm working on a redboot port for a PhyCore MPC5554 board. > >> Our eval board has flash on it and the MPC5554 also has flash, but on > >> startup the redboot prompt only displays one flash segment. Could it be > >> made to show both? > >> We added so redboot displays both our ram segments but cant understand > >> how > >> we could do it for flash since _flash_info() doesn't use a list. > >> Also, just by using both flash drivers, with corresponding cdl and > >> c-files, will redboot initiate both our flashes? > > > > The trunk of anoncvs has no support for discontinuous flash. Look at > > the flash_v2 branch, which can have multiple flash devices. > > > > 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 > > Hi, Yes, the merging will work. I've done it a couple of weeks ago in light of porting eCos on the AT91SAM7SE family. Just start from the trunk tree and then replace the following directories with their flash_v2 branch counter parts: io/flash dev/flash redboot fs/jffs2 You will probably have to make some small changes to your ecos.db too, but those are pretty straight-forward. If you enable the flash legacy api (CYGHWR_IO_FLASH_DEVICE_LEGACY cdl option), I guess your home-cooked driver should still work. Tom -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss