summaryrefslogtreecommitdiffstats
path: root/hwaccess.h
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2012-02-08 23:28:54 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2012-02-08 23:28:54 +0000
commit1b83be5cd45b86d2a52ec6962de2910901972b38 (patch)
tree4bea7df2226bbaf8a68ab01a1410bf43acb24f4b /hwaccess.h
parent23907d8903487dc350783e85e190cf21e47e82e4 (diff)
downloadast2050-flashrom-1b83be5cd45b86d2a52ec6962de2910901972b38.zip
ast2050-flashrom-1b83be5cd45b86d2a52ec6962de2910901972b38.tar.gz
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 Corresponding to flashrom svn r1490. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: David Hendricks <dhendrix@google.com>
Diffstat (limited to 'hwaccess.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud