public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Chris AtLee <catlee@canada.com>
To: linux-mtd@lists.infradead.org
Subject: Writing to flash problems
Date: 04 May 2002 03:51:50 -0400	[thread overview]
Message-ID: <1020498711.12077.72.camel@geb> (raw)

[-- Attachment #1: Type: text/plain, Size: 1121 bytes --]

Hello again,

After figuring out how to unlock my flash partition, I've been
experimenting with writing to it.  Erasing the partition seems to work
perfectly.

I have a file which contains 2 characters:
12

First I erase the partition with eraseall /dev/mtd3

Then I write data to the partition with
mtd_debug write /dev/mtd3 0 2 data

I retrieve the data with
mtd_debug read /dev/mtd3 0 2 data.new

The contents of data.new is 2 characters:
11

Now, if I repeat the process (without erasing) with the data 22, the new
contents of data.new is 00.

So to me it looks like I have two problems: writing to the words
themselves is not functioning, and the only way to set bits to 1 is by
erasing ('0' == '1' & '2').  In fact, this is in the documentation for
the flash: "If users attempt to program "1"s, the memory cell contents
do not change and no error occurs."

So it looks like I need to erase before writing to fix my second
problem.  I've tried putting in an erase command in do_write_oneword,
but I get timeout errors.

I'd really appreciate any pointers!

Thanks,
Chris





[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 232 bytes --]

                 reply	other threads:[~2002-05-04  7:51 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1020498711.12077.72.camel@geb \
    --to=catlee@canada.com \
    --cc=linux-mtd@lists.infradead.org \
    /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