From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18047 invoked by alias); 19 Nov 2003 10:21:54 -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 18023 invoked from network); 19 Nov 2003 10:21:45 -0000 Received: from unknown (HELO londo.lunn.ch) (80.238.139.98) by sources.redhat.com with SMTP; 19 Nov 2003 10:21:45 -0000 Received: from lunn by londo.lunn.ch with local (Exim 3.36 #1 (Debian)) id 1AMPSk-0005T1-00; Wed, 19 Nov 2003 11:21:30 +0100 Date: Wed, 19 Nov 2003 10:21:00 -0000 To: Vincent Catros Cc: ecos-discuss@sources.redhat.com Message-ID: <20031119102130.GA21008@lunn.ch> Mail-Followup-To: Vincent Catros , ecos-discuss@sources.redhat.com References: <001001c3ae84$4c546020$7407a8c0@figuier> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <001001c3ae84$4c546020$7407a8c0@figuier> User-Agent: Mutt/1.5.4i From: Andrew Lunn Subject: Re: [ECOS] Multiple partitions on a FLASH device. X-SW-Source: 2003-11/txt/msg00241.txt.bz2 On Wed, Nov 19, 2003 at 11:02:53AM +0100, Vincent Catros wrote: > Hello, > > I've a FLASH device (the Linux Synthetic Target one for the moment) that > I would like to split into multiple partitions. > > Is it possible? > If yes, how to do that? What exactly do you mean by partitions? Do you mean multiple jffs2 filesystems? ie /dev/flash1 & /dev/flash2? In this case, not its not supported. But it does not look too hard to add it. You would need to modify packages/io/flash/current/io_flash.cdl and add a cdl_component CYGDAT_IO_FLASH_BLOCK_DEVICE_NAME_2 based on the ..._NAME_2. Then in src/flashiodev.c: static struct flashiodev_priv_t flashiodev_priv[1]; needs to have 2 entries when there are 2 devices, and add a second BLOCK_DEVTAB_ENTRY( cyg_io_flashdev1, CYGDAT_IO_FLASH_BLOCK_DEVICE_NAME_1, 0, &cyg_io_flashdev1_ops, &flashiodev_init, 0, // No lookup required &flashiodev_priv[0] ); but make that last line &flashiodev_priv[1] flashiodev_init() will need to be generalized. It assumes only one device when working out what dev->start and dev->end should be. Andrew -- Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos and search the list archive: http://sources.redhat.com/ml/ecos-discuss