summaryrefslogtreecommitdiff
path: root/serial.c
diff options
context:
space:
mode:
authorhailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2009-11-23 12:55:31 +0000
committerhailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2009-11-23 12:55:31 +0000
commitf15ccbbbb1cb05bf1533acd9e38f508144e15202 (patch)
tree67c75e22deb5b6a1ae1a2dcf2f152fce1843c647 /serial.c
parent24998cd879a01ab072430fdd9324666c00ddddd1 (diff)
downloadflashrom-f15ccbbbb1cb05bf1533acd9e38f508144e15202.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(). Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Maciej Pijanka <maciej.pijanka@gmail.com> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@770 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'serial.c')
0 files changed, 0 insertions, 0 deletions