public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: "Stephan Linke" <Stephan.Linke@epygi.de>
To: "Subrahmanyam" <subrahmanyam@navayuga.co.in>
Cc: linux-mtd@lists.infradead.org
Subject: RE: MTD driver
Date: Wed, 8 Dec 2004 11:03:51 +0100	[thread overview]
Message-ID: <NGENJJFPMHGLPILEKKAMGEBBCFAA.Stephan.Linke@epygi.de> (raw)
In-Reply-To: <1102487832.13353.486.camel@tglx.tec.linutronix.de>

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@lists.infradead.org
> [mailto:linux-mtd-bounces@lists.infradead.org]On Behalf Of Thomas
> Gleixner
> Sent: Mittwoch, 8. Dezember 2004 07:37
> To: Subrahmanyam
> Cc: linux-mtd@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/
>

  reply	other threads:[~2004-12-08 10:04 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-07  3:46 MTD driver Subrahmanyam
2004-12-08  5:48 ` [PATCH] nand flash through IDE interface William J Beksi
2004-12-09 13:20   ` Thomas Gleixner
2004-12-09 13:53     ` William J Beksi
2004-12-08  6:37 ` MTD driver Thomas Gleixner
2004-12-08 10:03   ` Stephan Linke [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-12-09  3:38 Subrahmanyam
2004-12-09  8:51 ` Stephan Linke
2004-12-13  8:33   ` Subrahmanyam
2004-12-09 10:04 ` Thomas Gleixner
2004-12-13 14:01   ` Subrahmanyam

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=NGENJJFPMHGLPILEKKAMGEBBCFAA.Stephan.Linke@epygi.de \
    --to=stephan.linke@epygi.de \
    --cc=linux-mtd@lists.infradead.org \
    --cc=subrahmanyam@navayuga.co.in \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox