From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24643 invoked by alias); 19 Nov 2003 10:41:31 -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 24598 invoked from network); 19 Nov 2003 10:41:29 -0000 Received: from unknown (HELO melelios.dmz.elios-informatique.fr) (194.250.150.132) by sources.redhat.com with SMTP; 19 Nov 2003 10:41:29 -0000 Received: from figuier ([192.168.7.116]) by melelios.dmz.elios-informatique.fr with Microsoft SMTPSVC(5.0.2195.5329); Wed, 19 Nov 2003 11:48:26 +0100 From: "Vincent Catros" To: "'Andrew Lunn'" Cc: Date: Wed, 19 Nov 2003 10:41:00 -0000 Message-ID: <001901c3ae8a$10229e90$7407a8c0@figuier> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 In-Reply-To: <20031119102130.GA21008@lunn.ch> Importance: Normal X-OriginalArrivalTime: 19 Nov 2003 10:48:26.0421 (UTC) FILETIME=[A9377650:01C3AE8A] Subject: [ECOS] RE : [ECOS] Multiple partitions on a FLASH device. X-SW-Source: 2003-11/txt/msg00242.txt.bz2 > -----Message d'origine----- > De=A0: Andrew Lunn [mailto:andrew@lunn.ch] > Envoy=E9=A0: mercredi 19 novembre 2003 11:22 > =C0=A0: Vincent Catros > Cc=A0: ecos-discuss@sources.redhat.com > Objet=A0: Re: [ECOS] Multiple partitions on a FLASH device. >=20 > 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? >=20 > What exactly do you mean by partitions? Do you mean multiple jffs2 > filesystems? ie /dev/flash1 & /dev/flash2? Yes. > 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: >=20 > static struct flashiodev_priv_t flashiodev_priv[1]; >=20 > needs to have 2 entries when there are 2 devices, and add a second >=20 > 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] ); >=20 > but make that last line &flashiodev_priv[1] OK, this will work on a "Linux Synthetic Target" because that way we create a totaly separated FLASH device. But I plan to use multiple partitions on a real device where, for instance, "/dev/flash1" and "/dev/flash2" are on the same device but on different locations. I think this is not possible without modifying the FLASH driver. Am I wrong? Regards. Vincent -- Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos and search the list archive: http://sources.redhat.com/ml/ecos-discuss