public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* "Read-only file system" error while writing
@ 2002-07-30 21:27 Stephen Hui
  2002-07-30 22:25 ` David Woodhouse
  2002-07-31 15:35 ` Stuart Menefy
  0 siblings, 2 replies; 15+ messages in thread
From: Stephen Hui @ 2002-07-30 21:27 UTC (permalink / raw)
  To: linux-mtd

Hi,

I have a set of STMicro flash chips (M28W320CT) that use the Intel
Extended CFI command set (0001), and I'm using kernel 2.4.2.  I can
partition the chips, lock and unlock the chips, erase the chips and read
from (dd) the chips perfectly fine.

When I write to the chips using either cat, dd, stdout redirection, or
cp, the CFI driver complains of attempting to write to a "Read-only file
system", even after unlocking all blocks in the partition and erasing
the partition.  I can mount /dev/mtdblock*, but mount complains and I
still can't put anything into the mounted partition.  do_write_buffer()
in cfi_cmdset_0001.c is returning the error (EROFS).

All I want to do is put a JFFS2 image onto the partition and be able to
erase and update the image later.

I've scoured the list archive back about a year, but haven't found
anything like the problem I'm experiencing.  Would it be worth my while
to backport cfi_cmdset_0001.c from a later kernel rev (2.4.18 or
2.4.17), besides to get the bug fix in do_write_buffer() (the one posted
to this list a little while ago)?  I diff'ed the 2.4.2 cfi_cmdset_0001.c
with a 2.4.18 and didn't see any really major differences between the
two.  Or could the bug in do_write_buffer() have something to do with
this?

Thanks in advance,
Stephen.


-- 
"Find out what you've been missing while you've been
rebooting Windows NT." -- Infoworld on Linux

http://www.ao.com/~regan/penguins/tux.html

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2003-05-22 21:57 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-30 21:27 "Read-only file system" error while writing Stephen Hui
2002-07-30 22:25 ` David Woodhouse
2002-07-31 11:53   ` Jörn Engel
2003-05-21 11:33   ` Gordon J Milne
2003-05-21 14:18     ` Thayne Harbaugh
2003-05-22 21:57     ` Gordon J Milne
2002-07-31 15:35 ` Stuart Menefy
2002-07-31 20:24   ` Stephen Hui
2002-08-01 10:31     ` David Woodhouse
2002-08-01 18:05       ` Stuart Menefy
2002-08-01 18:26         ` Stuart Menefy
2002-08-01 19:45           ` Stephen Hui
2002-08-01 22:37             ` Stuart Menefy
2002-08-02 14:46               ` Stephen Hui
2002-08-01 10:35   ` David Woodhouse

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