MTD driver

Stephan Linke Stephan.Linke at epygi.de
Wed Dec 8 05:03:51 EST 2004


Hi,

you may setup a dedicated partition that gives you access to the particular
location in the flash where you whant to place this data. Then you can use
normal open() read() write() and seek() functions to access what ever byte in
this partition. How to erass a block you can look up in one of the MTD tools.
(Only if you are using NAND flash you should not do it like this since bad block
handling whould be missing.)
But I aggree with Thomas. Best whould be to put it into a filesystem...

Stephan


> -----Original Message-----
> From: linux-mtd-bounces at lists.infradead.org
> [mailto:linux-mtd-bounces at lists.infradead.org]On Behalf Of Thomas
> Gleixner
> Sent: Mittwoch, 8. Dezember 2004 07:37
> To: Subrahmanyam
> Cc: linux-mtd at lists.infradead.org
> Subject: Re: MTD driver
>
>
> On Tue, 2004-12-07 at 09:16 +0530, Subrahmanyam wrote:
> >  Hi,
> >
> >  I need to provide an user interface/GUI wherein when a certain data
> > (string/key) is entered, it should basically store the key in the flash
> > (this basically happens during run time after the target has been
> identified
> > by the host).
> >
> > In the target we have a flash in which there is jffs2 file system and also
> > mtd drivers, since i need to store block oriented data, i am looking at the
> > possiblity of using mtd driver and storing data(key) in a particular
> > location in flash. How should i proceed in acheiving the same.
>
> Is there any good reason, why the key cannot be stored on the already
> available jffs2 filesystem ?
>
> tglx
>
>
>
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/
>





More information about the linux-mtd mailing list