All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gerhard Chvatal <G.Chvatal@adcon.at>
To: linux-mtd@lists.infradead.org
Subject: Re: "Read-only file system" error while writing]
Date: Wed, 31 Jul 2002 15:15:10 +0200	[thread overview]
Message-ID: <3D47E2DE.F0D84D2F@adcon.at> (raw)
In-Reply-To: 20020731141035.B17800@penguin.adcon.at

Hi!

Few months ago a had a similar problem.

gromit1463@mailworks.org said:
> [...]
> I have a set of STMicro flash chips (M28W320CT) that use the Intel
> Extended CFI command set (0001) [...]

The M28W320CT is not really 100% compatible with the Intel Chips.
There is a small difference in the state machine:

 As stated in the data sheet of the INTEL 28F320C3 "APPENDIX A, 
 WSM CURRENT/NEXT STATES" on page 40, the device will present the status
 when in "Lock Oper. (Done) state" (usually after sending 60H followed
by
 D0h to the command interface).

 The M28W320CB _does_not_ present the status - it presents the array
data
 when read in this state.

Unfortunately, the Linux MTD Driver (Kernel 2.4.0-rmk2-bluemug1) 
assumes to have the status available after UNLOCK Operation.
(around line: 1365-1379 in cfi_cmdset_0001.c:do_unlock_oneblock()).

After 

  [...]
  cfi_write(map, CMD(0x60), adr);
  cfi_write(map, CMD(0x01), adr);
  chip->state = FL_UNLOCKING;
  [...]

do a

  cfi_write(map, CMD(0x70), cmd_addr);

to switch the state machine to READ_STATUS mode. Real Intel Chips will
ignore this.

I have never changed this, because we are still using INTEL chips in our
design, but if it works, it would be nice to have a feedback.

Gerhard
-- 
ADCON TELEMETRY AG    ( ( (  /|\  ) ) )   Smart Wireless Solutions
Inkustraße 24, A-3400 Klosterneuburg
Tel:+43 (0)2243 38280-0
Fax:+43 (0)2243 38280-6

           reply	other threads:[~2002-07-31 13:15 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <20020731141035.B17800@penguin.adcon.at>]

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=3D47E2DE.F0D84D2F@adcon.at \
    --to=g.chvatal@adcon.at \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.