flashrom$ sh util/ubertest/ubertest.sh -p internal $MY_OPTS
flashrom$ sh util/ubertest/ubertest.sh -r remote_host -p internal $MY_OPTS
flashrom$ sh util/ubertest/ubertest.sh -p internal -s ext_prog $MY_OPTS
flashrom # sh util/ubertest/ubertest.sh -p internal -s ext_prog -r remote_host $MY_OPTS
In this configuration the "old" and "new" flashrom binaries will be on the remote host. However in order to control the external programmer that will be used to check the result, a local flashrom binary must be supplied using
For each region layout mode, we will assume a different set of common options in
MY_OPTS. For details on the possible configurations, as well as their corresponding example commands, see Configurations / Setup above.
MY_OPTS=”-n new_flashrom -o old_flashrom -t single -m clobber”
The clobber mode test will clobber (no surprise there!) the ROM with random content. If this operation is successful, then a partial write test will be run on the entire chip in order to test corner cases.
MY_OPTS=”-n new_flashrom -o old_flashrom -t single -m layout -l layout.txt -layout-region RW”
MY_OPTS=”-n new_flashrom -o old_flashrom -t single -m descriptor --descriptor-region bios”
MY_OPTS=”-n new_flashrom -o old_flashrom -t single -m flashmap --flashmap-region RW_SECTION”
For the following test types, we will assume the set of common options
MY_OPTS. For details on each configuration, as well as the corresponding example command, see Configurations / Setup above.
MY_OPTS=”-n new_flashrom -o old_flashrom -t endurance”
The endurance test will repeatedly run single Clobber Mode tests until the first failure. This is intended to test the capabilities of the flash chip. It is important to note that a full test can take a while (potentially more than a week or two) to complete. The average time for one iteration of the endurance test using a remote host with a SPI ROM operating at 50MHz is around 100 seconds. This process will likely take longer for boards with larger chip sizes, and also longer for configurations that use an external programmer. At 1 iteration every 100 seconds, which is a relatively high speed, around 6048 iterations will be run in a week (probably a little less than that because the time spent between iterations will accumulate to a significant amount).
Authors: David Hendricks firstname.lastname@example.org, Souvik Ghosh
Original document short URL: https://goo.gl/3jNoL7
Original document long URL: https://docs.google.com/document/d/1IoBR7rHXJFiahC6dGnNKqaNFfg-q89_NMHuFyiJ7JnA/edit?usp=sharing
This document is licensed under a Creative Commons Attribution 3.0 Unported License. Feel free to copy, modify, and distribute this document however you see fit with attribution to the Flashrom Community.