This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: sharing Flash with eCOS & JFFS2
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Michael Jastrebtsoff <jam2000 at pisem dot net>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Wed, 31 Mar 2004 09:25:01 +0200
- Subject: Re: [ECOS] sharing Flash with eCOS & JFFS2
- References: <159291493.20040331115853@pisem.net>
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?
The flash is not partitioned, like a disc system. You configure each
flash block device with the offset from the start of the flash and the
length of the allocated area. See the config parameters
CYGNUM_IO_FLASH_BLOCK_{OFFSET|LENGTH}_[12]. So you would set the
offset to 256K and the length to 768.
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