Skip to contentSkip to conversation

"Read-only file system" error while writing]

DISCUSSION Gerhard Chvatal 1 participant 1 message Jul 31, 2002 1 message not in the archive Memory technology devices (MTD)

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Hi!

Few months ago a had a similar problem.

Quoted 3 lines · [email protected] 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

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