Skip to contentSkip to conversation

Which filesystem can live on one flash sector?

DISCUSSION fred 2 participants 2 messages Dec 10, 2002 1 message not in the archive Memory technology devices (MTD)

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

fred

author
#1 lore raw

Ok, I understand I can't run JFFS at only one sector.

In fact, I have 64k space left for saving configuration data. The size of a sector is 64k normally except the bottom sectors that are 8k, 4k, 4k, 16k, 32k.
So you see, I have five sectors to run JFFS rather than one 64k sector. Then, is it possible to run JFFS on these sectors?

-----Original Message-----
From: Charles Manning [mailto:[email protected]]
Sent: Tuesday, December 10, 2002 3:07 PM
To: [email protected]
Subject: Re: Which filesystem can live on one flash sector?

Quoted 5 lines · you

Hi,

I am using CRAMFS plus RAMFS on my board.
And there is only one sector left for saving configuration data. Can I put a file system, e.g. JFFS, on it?

I don't see how any fs - alive or dead - could live in one sector. You need at least one free sector to do garbage collection. (more for any real file system).

Sounds to me like you'll just have to use it as raw flash.

-- Charles

#2 lore raw
Quoted 8 lines · fred

Ok, I understand I can't run JFFS at only one sector.

In fact, I have 64k space left for saving configuration data. The size of a sector is 64k normally except the bottom sectors that are 8k, 4k, 4k, 16k, 32k.
So you see, I have five sectors to run JFFS rather than one 64k sector. Then, is it possible to run JFFS on these sectors?

Yes, jffs (not jffs2) would be working on those sectors. But I fear that the partition code doesn't treat them seperately, so jffs will only see one sector and won't work.
You should tweak the partition code or provide your own mapping driver to get it working. Something like that

Jörn

Signature · 2 lines
Everything should be made as simple as possible, but not simpler.
-- Albert Einstein