Changeset 2193


Ignore:
Timestamp:
Apr 29, 2011, 7:10:28 AM (3 years ago)
Author:
quozl
Message:

OLPC XO-1.5 - fs-update, remove erase support because it broke
NANDblaster. The microSD card is used to hold the received .zd file,
and erasing the card erases the file, causing fs-update to see a zero
filled file beyond a certain point. This revision tested with sparse
.zd files on NANDblaster and fs-update from USB.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpu/x86/pc/olpc/via/fsupdate.fth

    r2192 r2193  
    6666vocabulary nand-commands 
    6767also nand-commands definitions 
    68  
    69 \ some cards do not respond in a reasonable time, 
    70 \ some cards lock up and cause a command timeout in get-status, 
    71 \ so split the erase into many parts. 
    72 : erase-blocks 
    73    [char] ~ emit                        \ visual hint of erase delay 
    74    #image-eblocks /nand-block h# 200 */ ( #blocks ) 
    75    dup d# 16 / swap                     ( /part #blocks ) 
    76    0 do                                 ( /part ) 
    77       i over " erase-blocks" $call-nand 
    78       hdd-led-toggle                    \ visual hint of progress 
    79    dup +loop                            ( /part ) 
    80    drop 
    81    bs emit space bs emit hdd-led-off    \ visual hint remove 
    82 ; 
    83  
    84 \ : erase-blocks 
    85 \ 0 #image-eblocks /nand-block h# 200 */ " erase-blocks" $call-nand ; 
    8668 
    8769: zblocks:  ( "eblock-size" "#eblocks" ... -- ) 
     
    9577   " Image size is larger than output device" ?nand-abort 
    9678   #image-eblocks  show-init 
    97    erase-blocks 
    9879   get-inflater 
    9980   \ Separate the two buffers by enough space for both the compressed 
Note: See TracChangeset for help on using the changeset viewer.