public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* [newbie] MTD and tiny RAM
@ 2002-09-26  7:25 free
  2002-09-27  9:05 ` Jörn Engel
  0 siblings, 1 reply; 4+ messages in thread
From: free @ 2002-09-26  7:25 UTC (permalink / raw)
  To: MTD mailing liste

Hello,

I use a very tiny SRAM (128ko) battery backuped to save
very important and changeable data.
I have a char. driver for it (i know how to read/write it)
I would like to mount it on Linux VFS but it seems that
bloc drivers are RAM cached.
Acces on this SRAM must be immediatly apply (if power goes
down data must be safe)

Does MTD could help me :
- is my SRAM not to tiny (128KO) for use with MTD ?
- could i acces to my SRAM through MTD in block mode without caching ?
- what king of file system could fit on such tiny RAM ?


All advices are welcome.

Thanks

Damien

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [newbie] MTD and tiny RAM
  2002-09-26  7:25 [newbie] MTD and tiny RAM free
@ 2002-09-27  9:05 ` Jörn Engel
  2002-09-27  9:34   ` free
  0 siblings, 1 reply; 4+ messages in thread
From: Jörn Engel @ 2002-09-27  9:05 UTC (permalink / raw)
  To: free; +Cc: MTD mailing liste

On Thu, 26 September 2002 09:25:41 +0200, free wrote:
> I use a very tiny SRAM (128ko) battery backuped to save
> very important and changeable data.
> I have a char. driver for it (i know how to read/write it)
> I would like to mount it on Linux VFS but it seems that
> bloc drivers are RAM cached.
> Acces on this SRAM must be immediatly apply (if power goes
> down data must be safe)
> 
> Does MTD could help me :
> - is my SRAM not to tiny (128KO) for use with MTD ?
> - could i acces to my SRAM through MTD in block mode without caching ?
> - what king of file system could fit on such tiny RAM ?

(This assumes 128KO == 128 kilobyte)

You could use the slram driver for this and put a jffs2 on top of it.
But slram uses eraseblocks of 64kiB and jffs2 needs 5 of those free
for being operational. You should tweak the slram driver to use
something closer to 4kiB.

Jörn

-- 
There's nothing better for promoting creativity in a medium than
making an audience feel "Hmm ­ I could do better than that!"
-- Douglas Adams in a slashdot interview

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: [newbie] MTD and tiny RAM
  2002-09-27  9:05 ` Jörn Engel
@ 2002-09-27  9:34   ` free
  2002-09-27 10:40     ` David Woodhouse
  0 siblings, 1 reply; 4+ messages in thread
From: free @ 2002-09-27  9:34 UTC (permalink / raw)
  To: Jörn Engel; +Cc: MTD mailing liste

>> I use a very tiny SRAM (128ko) battery backuped to save
>> very important and changeable data.
>> I have a char. driver for it (i know how to read/write it)
>> I would like to mount it on Linux VFS but it seems that
>> bloc drivers are RAM cached.
>> Acces on this SRAM must be immediatly apply (if power goes
>> down data must be safe)
>>
>> Does MTD could help me :
>> - is my SRAM not to tiny (128KO) for use with MTD ?
>> - could i acces to my SRAM through MTD in block mode without caching ?
>> - what king of file system could fit on such tiny RAM ?
>
>(This assumes 128KO == 128 kilobyte)
>
>You could use the slram driver for this and put a jffs2 on top of it.
>But slram uses eraseblocks of 64kiB and jffs2 needs 5 of those free
>for being operational. You should tweak the slram driver to use
>something closer to 4kiB.
>
>Jörn

I have a worry with jffs2, i use a kernel 2.2.17 and i was using an old CVS
snap shot. I have recently down load the last CVS and it does not compile
on my 2.2.17 kernel. My old CVS didn't have jffs2, it just have jffs.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [newbie] MTD and tiny RAM
  2002-09-27  9:34   ` free
@ 2002-09-27 10:40     ` David Woodhouse
  0 siblings, 0 replies; 4+ messages in thread
From: David Woodhouse @ 2002-09-27 10:40 UTC (permalink / raw)
  To: free; +Cc: Jörn Engel, MTD mailing liste

dag4004@free.fr said:
>  I have a worry with jffs2, i use a kernel 2.2.17 and i was using an
> old CVS snap shot. I have recently down load the last CVS and it does
> not compile on my 2.2.17 kernel. My old CVS didn't have jffs2, it just
> have jffs. 

It's been backported to 2.2. Look in the list archives.

--
dwmw2

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-09-27 10:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-26  7:25 [newbie] MTD and tiny RAM free
2002-09-27  9:05 ` Jörn Engel
2002-09-27  9:34   ` free
2002-09-27 10:40     ` David Woodhouse

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox