Changeset 1490 for trunk/flashrom.8


Ignore:
Timestamp:
Feb 9, 2012 12:28:54 AM (16 months ago)
Author:
hailfinger
Message:

SPI command black-/ignorelisting for the flash chip emulator in the dummy programmer

Usage:
flashrom -p dummy:spi_blacklist=commandlist
flashrom -p dummy:spi_ignorelist=commandlist

If commandlist is 0302, flashrom will refuse (blacklist) or ignore
(ignorelist) command 0x03 (READ) and command 0x02 (WRITE). The
commandlist can be up to 512 bytes (256 commands) long.
Specifying flash chip emulation is a good idea to get useful results.

Very useful for testing corner cases if you don't own a locked down
Intel chipset and want to simulate such a thing.

Example usage:
dd if=/dev/zeros bs=1024k count=4 of=dummy_simulator.rom
dd if=/dev/urandom bs=1024k count=4 of=randomimage.rom
flashrom -p dummy:emulate=SST25VF032B,image=dummy_simulator.rom,\
spi_blacklist=20,spi_ignorelist=52 -w randomimage.rom -V

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@…>
Acked-by: David Hendricks <dhendrix@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/flashrom.8

    r1483 r1490  
    422422.sp 
    423423.B "  flashrom -p dummy:emulate=M25P10.RES,spi_write_256_chunksize=5" 
     424.sp 
     425To simulate a programmer which refuses to send certain SPI commands to the 
     426flash chip, you can specify a blacklist of SPI commands with the 
     427.sp 
     428.B "  flashrom -p dummy:spi_blacklist=commandlist" 
     429.sp 
     430syntax where commandlist is a list of two-digit hexadecimal representations of 
     431SPI commands. If commandlist is e.g. 0302, flashrom will behave as if the SPI 
     432controller refuses to run command 0x03 (READ) and command 0x02 (WRITE). 
     433commandlist may be up to 512 characters (256 commands) long. 
     434Implementation note: flashrom will detect an error during command execution. 
     435.sp 
     436To simulate a flash chip which ignores (doesn't support) certain SPI commands, 
     437you can specify an ignorelist of SPI commands with the 
     438.sp 
     439.B "  flashrom -p dummy:spi_ignorelist=commandlist" 
     440.sp 
     441syntax where commandlist is a list of two-digit hexadecimal representations of 
     442SPI commands. If commandlist is e.g. 0302, the emulated flash chip will ignore 
     443command 0x03 (READ) and command 0x02 (WRITE).  commandlist may be up to 512 
     444characters (256 commands) long. 
     445Implementation note: flashrom won't detect an error during command execution. 
    424446.TP 
    425447.BR "nic3com" , " nicrealtek" , " nicsmc1211" , " nicnatsemi" , " nicintel\ 
Note: See TracChangeset for help on using the changeset viewer.