[uClinux-dev] How to create Filesystem driver for FRAM device?

Erwin Authried eauth at softsys.co.at
Fri Jan 12 16:36:31 EST 2007


Am Freitag, den 12.01.2007, 10:34 +0100 schrieb Sagaert Johan:
> Hi
> 
> I have some FRAM device connected to the spi port.
> I have the SPI working (i can write and read to/from the FRAM device)
> 
> How can i create a driver so i can mount this device in the filesytem ?
> (jffs).
> The FRAM provides the persistance of data like FLASH ,has the access speed
> of RAM and does not suffer from a limited num of writes.
> 
> I am fairly new to linux in general so some example code is much
> appreciated.
> 
> Johan
> 
The SPI FRAM's interface &  protocol has many similarities to serial
dataflash. You can take a look at drivers/mtd/devices/mtd_dataflash.c to
see how the driver looks like. You can use any filesystem on this
device, because you do not have the restrictions of flash memory. I
wouldn't use JFFS because it is written for flash and it would add a lot
of overhead and reduce available space on your FRAM.

Regards,
Erwin



More information about the uClinux-dev mailing list