Author: quozl Date: Tue Mar 26 07:26:33 2013 New Revision: 3630 URL: http://tracker.coreboot.org/trac/openfirmware/changeset/3630
Log: OLPC XO-1.5 - SPI FLASH recovery tools, add XO-4 CForth-only reflash utility word.
Modified: cpu/x86/pc/olpc/via/recover.fth
Modified: cpu/x86/pc/olpc/via/recover.fth ============================================================================== --- cpu/x86/pc/olpc/via/recover.fth Tue Mar 26 03:36:15 2013 (r3629) +++ cpu/x86/pc/olpc/via/recover.fth Tue Mar 26 07:26:33 2013 (r3630) @@ -42,3 +42,13 @@ " "(03)"CL4" machine-signature swap cmove \ ." WARNING: do not use local SPI FLASH access without reboot" cr ; + +\ write only the CForth image to SPI FLASH, leaving Open Firmware alone +: recover-cforth ( "filename" -- ) + use-bb-spi + $read-open flash-buf h# 2.0000 ifd @ fgets ifd @ fclose + flash-write-enable + flash-buf h# 2.0000 0 write-flash-range + flash-write-disable + use-local-ec +;
openfirmware@openfirmware.info