Skip to contentSkip to conversation

filesystem for battery-buffered SRAM

DISCUSSION Matthias Fuchs 2 participants 2 messages Oct 22, 2001 – Oct 23, 2001 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Hi,

I have to setup an embedded Linux box that uses 1MB of battery buffered SRAM to store nonvolatile data.
This memory is directly mapped into ma addressspace and needs no magic things to read or write to it.

What might be the best choice for a filesystem for this memory and is it possible to setup file access with MTD.
With other words: Is MTD able to access normal RAM devices (no FLASH, but SRAM) ?

Are there other ways to setup a filesystem in a SRAM ?

Matthias

Signature · 13 lines
--------------------------------------------------------------------------

                             _/_/_/_/   Matthias Fuchs
                            _/_/_/_/   Dipl.-Ing.
                           _/_/_/_/   [email protected]

       _/_/_/   _/_/_/_/_/_/_/      esd electronic system design gmbh
     _/   _/  _/             _/    Vahrenwalder Str. 207
    _/   _/    _/_/_/   _/   _/   D-30165 Hannover
    _/             _/  _/   _/   Phone: +49-511-37298-0
     _/_/_/_/_/_/_/   _/_/_/    Fax:   +49-511-37298-68

--------------------------------------------------------------------------
#1 lore raw
Quoted 9 lines · Matthias Fuchs

I have to setup an embedded Linux box that uses 1MB of battery buffered SRAM to store nonvolatile data.
This memory is directly mapped into ma addressspace and needs no magic things to read or write to it.

What might be the best choice for a filesystem for this memory and is it possible to setup file access with MTD.
With other words: Is MTD able to access normal RAM devices (no FLASH, but SRAM) ?

Use mtdram with CONFIG_MTDRAM_ABS_POS. It's (the config option) there
for exactly this purpose.

Signature · 1 line
//Björnen.