This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re[2]: sharing Flash with eCOS & JFFS2
- From: Michael Jastrebtsoff <jam2000 at pisem dot net>
- To: Andrew Lunn <andrew at lunn dot ch>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Wed, 31 Mar 2004 14:53:33 +0700
- Subject: Re[2]: [ECOS] sharing Flash with eCOS & JFFS2
- References: <159291493.20040331115853@pisem.net><20040331072501.GH29940@lunn.ch>
- Reply-to: Michael Jastrebtsoff <jam2000 at pisem dot net>
Hello, Andrew.
I meant that I have a fis logical "partitions"(fis create ...):
1. "part1"
2. "part2"
and I want map this partitions to the /dev/flash1, /dev/flash2 an so
on. But in eCos flash devices cfg I have only one /dev/flash1 device.
--
Regards,
Mike
AL> On Wed, Mar 31, 2004 at 11:58:53AM +0700, Michael Jastrebtsoff wrote:
>> Hello, All.
>>
>> How can I make a sharing of flash for storing eCOS & JFFS2.
>> E.g., flash of 1Mb: 256Kb for eCOS; the rest is for JFFS2(user data)?
>> Is there anything like partitions in eCOS? Where can I setup flash
>> addresses for each of mentioned tasks. And can eCOS have several flash
>> logic devices for flash, e.g. /dev/flash1, /dev/flash2 and so on?
AL> The flash is not partitioned, like a disc system. You configure each
AL> flash block device with the offset from the start of the flash and the
AL> length of the allocated area. See the config parameters
AL> CYGNUM_IO_FLASH_BLOCK_{OFFSET|LENGTH}_[12]. So you would set the
AL> offset to 256K and the length to 768.
AL> 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