"Read-only file system" error while writing

David Woodhouse dwmw2 at infradead.org
Tue Jul 30 18:25:26 EDT 2002


gromit1463 at mailworks.org said:
> 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).

The only case in which do_write_buffer() should return -EROFS is if the 
status bit is set which means that the block in question was locked. Try 
using the MEMUNLOCK ioctl to unlock it?



--
dwmw2






More information about the linux-mtd mailing list