[Yaffs] CONFIG_YAFFS_USE_GENERIC_RW

Ulla ulla@bluewatersys.com
Thu, 14 Oct 2004 10:39:39 +1200


Hi,

I am using yaffs (CVS) (linux 2.6.8.1, mtd-snapshot: 20041005), and I am ab=
le=20
to mount the device properly, to write to the flash and erase from the flas=
h.=20
But with CONFIG_YAFFS_USE_GENERIC_RW disabled copying back (or cat) doesn't=
=20
work, it is running in an endless loop. For example, catting a simple text=
=20
file will endlessly repeat the contents of that file.  Copying a file will=
=20
not end & create a huge file at the destination.  By enabling=20
CONFIG_YAFFS_USE_GENERIC_RW everything is ok. Can someone explain what are=
=20
the benefits of disabling CONFIG_YAFFS_USE_GENERIC_RW (like it is in the=20
default Makefile) and what are the exact differences between generic_rw and=
=20
yaffs_rw?

Thanks a lot
   Ulla
=2D-=20
Bluewater Systems Ltd - ARM Technology Solution Centre

=A0 =A0 =A0 =A0 Ulrike Eisenmann=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=
 =A0 Bluewater Systems Ltd
Phone: +64 3 3779127 (Aus +1 800 148 751) =A0 =A0 =A0 Level 17, 119 Armagh =
St
=46ax: =A0 +64 3 3779135 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0 =A0PO Box 13889
Email: ulla@bluewatersys.com   =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Christchu=
rch
Web: =A0 http://www.bluewatersys.com =A0 =A0 =A0 =A0 =A0 =A0 =A0New Zealand