public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: David Woodhouse <dwmw2@infradead.org>
To: Tim Hockin <thockin@sun.com>
Cc: linux-mtd@lists.infradead.org
Subject: Re: cfi_cmdset_0002 and writes
Date: Wed, 18 Jul 2001 23:42:10 +0100	[thread overview]
Message-ID: <27004.995496130@redhat.com> (raw)
In-Reply-To: <3B560DDC.55ECB635@sun.com>

thockin@sun.com said:
>  Right, but this is our boot ROM we're dealing with :)  Can you
> suggest a better alternative?  The device is rarely ever loaded, but
> when it is loaded we want to read and re-program the whole thing as
> safely as possible. 

It's sane enough. Just loading the 'mtdblock' driver will give you exactly 
the semantics you described. Alternatively, use the raw chardevice driver, 
and you have to issue the MEMERASE ioctl before rewriting a sector. There 
are utilities in CVS which do this for you, given an MTD device and a file 
to load into it.

Either way, the underlying flash device driver only deals with the physical 
capabilities of the flash chip. What you do on top of that is none of its 
business.

--
dwmw2

  reply	other threads:[~2001-07-18 22:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-18 21:58 cfi_cmdset_0002 and writes Tim Hockin
2001-07-18 22:04 ` David Woodhouse
2001-07-18 22:29   ` Tim Hockin
2001-07-18 22:42     ` David Woodhouse [this message]
2001-07-19 17:44     ` Bjorn Wesen
2001-07-18 22:12 ` David Woodhouse

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=27004.995496130@redhat.com \
    --to=dwmw2@infradead.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=thockin@sun.com \
    /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