Author: quozl Date: Mon Nov 28 01:05:38 2011 New Revision: 2705 URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2705
Log: OLPC - avoid a gap in the reflash progress display, and show one more dot after the verify pass.
Modified: dev/olpc/spiflash/spiui.fth
Modified: dev/olpc/spiflash/spiui.fth ============================================================================== --- dev/olpc/spiflash/spiui.fth Mon Nov 28 00:59:40 2011 (r2704) +++ dev/olpc/spiflash/spiui.fth Mon Nov 28 01:05:38 2011 (r2705) @@ -10,6 +10,10 @@
defer spi-progress ' drop to spi-progress ( n -- )
+: .progress ( offset -- ) + 5 rshift dup spi-progress h# 400 + spi-progress +; + : write-flash-range ( adr end-offset start-offset -- ) ." Writing" cr ?do ( adr ) @@ -26,7 +30,7 @@ i flash-erase-block dup /flash-block i flash-write ( adr ) then - i 5 rshift dup spi-progress h# 400 + spi-progress ( adr ) + i .progress ( adr ) /flash-block + ( adr' ) /flash-block +loop ( adr ) cr drop ( ) @@ -186,6 +190,7 @@ [then]
\ Don't write the block containing the manufacturing data + mfg-data-offset .progress
flash-buf mfg-data-end-offset + /flash mfg-data-end-offset write-flash-range \ Write last part ; @@ -210,6 +215,7 @@ write-firmware verify-firmware then + /flash .progress flash-write-disable else .verify-msg
openfirmware@openfirmware.info