summaryrefslogtreecommitdiffstats
path: root/serprog.c
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2009-11-23 12:55:31 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2009-11-23 12:55:31 +0000
commiteaac68bf8be13ff4cfe2b58119c766357a37d417 (patch)
tree67c75e22deb5b6a1ae1a2dcf2f152fce1843c647 /serprog.c
parenta2441cef65161f5d5b4b7a80de8379173a0d04cc (diff)
downloadast2050-flashrom-eaac68bf8be13ff4cfe2b58119c766357a37d417.zip
ast2050-flashrom-eaac68bf8be13ff4cfe2b58119c766357a37d417.tar.gz
Add the ability to generate test patterns for write testing
This will be useful once we create a --test function for flashrom. The test patterns make it easy to find skipped and duplicated bytes, are human readable, and the first 8 of them have block numbers to detect aliasing or wraparounds. Current size limit for aliasing detection is 16 MByte, but since neither LPC nor FWH nor SPI chips exist with bigger sizes, this is reasonably safe. Detailed documentation is available as source code comments above the new function generate_testpattern(). Corresponding to flashrom svn r770. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Maciej Pijanka <maciej.pijanka@gmail.com>
Diffstat (limited to 'serprog.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud