JFFS2 peoblems with K3 strata flash on Dalhart
David Woodhouse
dwmw2 at infradead.org
Thu Aug 8 04:37:28 EDT 2002
cain.yuan at intel.com said:
> First bootup will success without any error message. but when I reset
> the board and boot it again, many errors occurs.
The error is -EROFS. Your chip might need unlocking each time it's reset. At
least one map driver does this automatically at startup.
The reason the error isn't being reported properly is because I'm
stupid...
--- writev.c 20 May 2002 14:56:39 -0000 1.2
+++ writev.c 8 Aug 2002 08:35:21 -0000 1.3
@@ -7,7 +7,7 @@
*
* For licensing information, see the file 'LICENCE' in this directory.
*
- * $Id: writev.c,v 1.2 2002/05/20 14:56:39 dwmw2 Exp $
+ * $Id: writev.c,v 1.3 2002/08/08 08:35:21 dwmw2 Exp $
*
*/
@@ -28,7 +28,7 @@ static inline int mtd_fake_writev(struct
for (i=0; i<count; i++) {
if (!vecs[i].iov_len)
continue;
- mtd->write(mtd, to, vecs[i].iov_len, &thislen, vecs[i].iov_base);
+ ret = mtd->write(mtd, to, vecs[i].iov_len, &thislen, vecs[i].iov_base);
totlen += thislen;
if (ret || thislen != vecs[i].iov_len)
break;
--
dwmw2
More information about the linux-mtd
mailing list