This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re[2]: sharing Flash with eCOS & JFFS2


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]