"Read-only file system" error while writing

Stephen Hui gromit1463 at mailworks.org
Tue Jul 30 17:27:23 EDT 2002


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






More information about the linux-mtd mailing list