Skip to contentSkip to conversation

Flash Partitons

DISCUSSION Ashok M Padmanaban 3 participants 3 messages Nov 21, 2001 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Hi
It will be very usefull if some one can give their comments.

We are developing an embeded device (email device ) and planning to have

CRAMFS for the root file system and JFFS2 for the user data.

If CRAMFS is root fs, then i cant have system and user configuration files under this as they are updated according to requirement.

One way is to have links to Jffs2 partition so that we can update these files.
Or To have a separate partition (jffs2) for configuration files, which consumes a lot of
flash space (as 5 sectors are reserved for GC).

I feel first one is the better choice as we are very tight on FLASH space.
But having the config files and user data in the same partition .......will it be safe?
Like while manipulating the user data, is there any chance that config files may be corrupted...while GC. is running and the power goes down.......)

Is there any other way of doing this.

Thanks in advance
Regards
ashok

#1 lore raw
Quoted 4 lines · [email protected] said:

But having the config files and user data in the same partition
.......will it be safe? Like while manipulating the user data, is there any chance that config files may be corrupted...while GC. is running and the power goes down.......)

It ought to be safe. It's designed that way and perhaps more importantly, we've actually done power-fail testing on active JFFS2 filesystems and observed that it's fine. You can do your own testing to make sure it's reliable to your own standards.

The 5 blocks of GC reserved space is also fixable. We'll reduce it if and when I'm sufficiently convinced that it's safe to do so.

--
dwmw2

#2 lore raw

is flash file system stable in linux 2.4.1 kernel

i am getting problem of freeing accounting screwed
when i am going for big files
i am able save and restore back a small file any idea please help
som

____________________________________________________________
*NEW* over 2200 active jobs at Yahoo! Careers *NEW*
Visit http://in.careers.yahoo.com/