public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* Re: "Read-only file system" error while writing]
       [not found] <20020731141035.B17800@penguin.adcon.at>
@ 2002-07-31 13:15 ` Gerhard Chvatal
  0 siblings, 0 replies; only message in thread
From: Gerhard Chvatal @ 2002-07-31 13:15 UTC (permalink / raw)
  To: linux-mtd

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-07-31 13:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20020731141035.B17800@penguin.adcon.at>
2002-07-31 13:15 ` "Read-only file system" error while writing] Gerhard Chvatal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox