j
: Next unread message k
: Previous unread message j a
: Jump to all threads
j l
: Jump to MailingList overview
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 . ;