[ECOS] RE : [ECOS] Multiple partitions on a FLASH device.
Vincent Catros
Vincent.Catros@elios-informatique.fr
Wed Nov 19 10:41:00 GMT 2003
> -----Message d'origine-----
> De : Andrew Lunn [mailto:andrew@lunn.ch]
> Envoyé : mercredi 19 novembre 2003 11:22
> À : Vincent Catros
> Cc : ecos-discuss@sources.redhat.com
> Objet : Re: [ECOS] Multiple partitions on a FLASH device.
>
> 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?
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:
>
> 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]
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
More information about the Ecos-discuss
mailing list