[OpenBIOS] r575 - dev/olpc/cafenand
svn at openbios.org
svn at openbios.org
Fri Aug 24 01:28:08 CEST 2007
Author: wmb
Date: 2007-08-24 01:28:07 +0200 (Fri, 24 Aug 2007)
New Revision: 575
Modified:
dev/olpc/cafenand/badblock.fth
Log:
Changed the name of "scrub" to "scrub!" and made "scrub" issue a
warning message.
Modified: dev/olpc/cafenand/badblock.fth
===================================================================
--- dev/olpc/cafenand/badblock.fth 2007-08-23 16:08:37 UTC (rev 574)
+++ dev/olpc/cafenand/badblock.fth 2007-08-23 23:28:07 UTC (rev 575)
@@ -286,7 +286,7 @@
\ Completely erase the device, ignoring any existing bad-block info
\ This is fairly severe, not recommended except in exceptional situations
-: scrub ( -- )
+: scrub! ( -- )
release-bbt
total-pages 0 ?do
(cr i .
@@ -294,6 +294,11 @@
pages/eblock +loop
make-bbt
;
+: scrub ( -- )
+ ." scrub is dangerous because it discards factory bad block information." cr
+ ." That can cause bad problems with later use of the NAND FLASH device." cr
+ ." Type scrub! if you really want to do it." cr
+;
: .bn ( -- ) (cr . ;
More information about the OpenBIOS
mailing list