Author: quozl Date: Wed Mar 20 01:39:58 2013 New Revision: 3621 URL: http://tracker.coreboot.org/trac/openfirmware/changeset/3621
Log: OLPC XO-1.5 - SPI FLASH recovery tools, add new command excavate, for reading the target SPI FLASH and writing to a file, for forensic analysis of a target.
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 19 05:24:05 2013 (r3620) +++ cpu/x86/pc/olpc/via/recover.fth Wed Mar 20 01:39:58 2013 (r3621) @@ -7,6 +7,7 @@ \ The commands are: \ ok clone \ Copies this machine's FLASH to the dead one \ ok recover disk:\file.rom \ Copies a ROM file to the dead one +\ ok excavate disk:\the.rom \ Reads the dead ROM and writes to a file
: (tethered-flash) ( -- ) use-bb-spi @@ -23,3 +24,11 @@ ;
: recover ( "filename" -- ) get-file (tethered-flash) ; + +: excavate ( "filename" -- ) + use-bb-spi + flash-write-enable + read-flash + flash-write-disable + use-local-ec +;