Changeset 3630


Ignore:
Timestamp:
Mar 26, 2013, 7:26:33 AM (21 months ago)
Author:
quozl
Message:

OLPC XO-1.5 - SPI FLASH recovery tools, add XO-4 CForth-only reflash utility word.

File:
1 edited

Legend:

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

    r3622 r3630  
    4343   \ ." WARNING: do not use local SPI FLASH access without reboot" cr 
    4444; 
     45 
     46\ write only the CForth image to SPI FLASH, leaving Open Firmware alone 
     47: recover-cforth  ( "filename" -- ) 
     48   use-bb-spi 
     49   $read-open flash-buf h# 2.0000 ifd @ fgets ifd @ fclose 
     50   flash-write-enable 
     51   flash-buf h# 2.0000 0 write-flash-range 
     52   flash-write-disable 
     53   use-local-ec 
     54; 
Note: See TracChangeset for help on using the changeset viewer.