[ECOS] Multiple partitions on a FLASH device.
Wed Nov 19 10:21:00 GMT 2003
On Wed, Nov 19, 2003 at 11:02:53AM +0100, Vincent Catros wrote:
> 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;
needs to have 2 entries when there are 2 devices, and add a second
0, // No lookup required
but make that last line &flashiodev_priv
flashiodev_init() will need to be generalized. It assumes only one
device when working out what dev->start and dev->end should be.
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