aboutsummaryrefslogtreecommitdiff
path: root/external/boot-tests
AgeCommit message (Collapse)AuthorFilesLines
2017-07-20boot_tests: add PFLASH_TO_COPY for OpenBMCStewart Smith1-0/+6
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
2017-06-20boot-tests: add OpenBMC supportStewart Smith2-2/+125
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
2017-06-06boot_test.sh: Add SMC BMC supportStewart Smith4-7/+149
Your BMC needs a special debug image flashed to use this, the exact image and methods aren't something I can publish here, but if you work for IBM or SMC you can find out from the right sources. A few things are needed to move around to be able to flash to a SMC BMC. For a start, the SSH daemon will only accept connections after a special incantation (which I also can't share), but you should put that in the ~/.skiboot_boot_tests file along with some other default login information we don't publicise too broadly (because Security Through Obscurity is *obviously* a good idea....) We also can't just directly "ssh /bin/true", we need an expect script, and we can't scp, but we can anonymous rsync! You also need a pflash binary to copy over. Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com> Reviewed-by: Cyril Bur <cyril.bur@au1.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
2016-11-07boot_test: fix typo in console messageStewart Smith1-2/+2
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
2016-11-02boot-tests: force BMC to boot from non-golden sideStewart Smith1-0/+2
Because IPMI raw commands copied out of internal bugzilla is the best source of things that need to go in test scripts. Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
2016-10-10external/boot_tests: remove lid from the BMC after flashingClaudio Carvalho1-2/+10
Usually, BMC systems doesn't have too much space for storage. This removes the lid from the BMC after the lid is flashed. Signed-off-by: Claudio Carvalho <cclaudio@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
2016-10-10external/boot_tests: add the nobooting option -NClaudio Carvalho1-10/+21
This adds the -N option for BMC targets, which does not boot the firmware. The option helps in situations that we need to flash multiple partitions before booting the firmware. Signed-off-by: Claudio Carvalho <cclaudio@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
2016-10-10external/boot_tests: add arbitrary lid option -FClaudio Carvalho2-3/+27
There are situations where we want to flash a lid that isn't neither BOOTKERNEL nor PAYLOAD. That's the case for CAPP, to test secure and trusted boot patches we need to flash CAPP with different secure boot headers. This adds the -F option for BMC targets that can be used to flash an arbitrary lid. Example: '-F CAPP:cappucode.bin.sec.ecc' will flash CAPP partition with cappucode.bin.sec.ecc The eyecatch for each partition is defined in https://github/open-power/pnor.git Signed-off-by: Claudio Carvalho <cclaudio@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
2016-08-09boot-test: give a better temp file name for boot logStewart Smith1-1/+1
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
2016-08-09boot-test: Add -k and -K options to keep logs on fail or alwaysStewart Smith1-3/+20
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
2016-06-20Fix for typosFrederic Bonnard1-3/+3
While reviewing the Debian packaging, codespell found those. Most proposed fixes are based on codespell's default dictionnary. Signed-off-by: Frederic Bonnard <frediz@linux.vnet.ibm.com> Reviewed-by: Mukesh Ojha <mukesh02@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
2016-04-18boot-tests: allow running boot_test.sh via a symlinkAndrew Donnellan1-1/+1
In boot_test.sh, use readlink when working out the path to source {fsp,bmc}_support.sh, so the script doesn't fail when run using a symlink from outside the boot-tests directory. Signed-off-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
2016-04-01boot-tests: force booting from primary (non-golden) sideStewart Smith3-0/+12
Some machines decide to go boot from the Golden side, and this means we are not boot testing what we flash. So, use the magic incantation and goat sacrifice that is IPMI raw commands to boot from the primary side. Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
2015-10-30Fix boot_test.sh script for chmod +x pflash if copyingStewart Smith1-0/+1
On some BMC firmware revisions, we need to copy over a pflash binary and we need to ensure that the executable bit is set. Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
2015-10-01Add ability to copy pflash binary to BMC to boot_tests.shStewart Smith1-3/+9
Some BMC firmware versions don't ship pflash. Support PFLASH_TO_COPY environment variable to a pflash binary built for the BMC that will be copied over and used to pflash the partition or whole pnor. Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
2015-08-13fix fat-fingering of FSPSSHUSER support in extract_gcov.shStewart Smith1-4/+6
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
2015-08-13support FSPSSHUSER env variables in extract_gcov.shStewart Smith1-1/+1
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
2015-07-31external/boot-tests: update boot-test.sh usage for BMC single partition flashingAndrew Donnellan1-4/+7
Update boot-test.sh usage to document single partition flashing on BMC platforms. Signed-off-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
2015-07-31external/boot-tests: Fix logging functions in boot_test.shAndrew Donnellan1-5/+15
Fix the error() and msg() functions in boot_test.sh so they don't cause a shell error when called before $target is set (i.e. before parameter parsing). Change error() to allow the use of multiple arguments in the message, in line with msg(). Use $* rather than $@ as it's very slightly more correct. Signed-off-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
2015-06-19Add single partition flashing for BMC platforms to boot_test.shStewart Smith2-19/+42
Support flashing whole PNOR and/or individual partitions. This should let you flash a known good whole PNOR and then replace individual partitions in one command. Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
2015-06-18Because BMCs love to change things, use dd rather than scpStewart Smith1-2/+6
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
2015-05-28Make boot_test.sh always prefix output with target nameStewart Smith2-16/+16
This helps when 'make -j' is used for boot tests Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
2015-05-27Support doing physical machine boot tests with gcovStewart Smith1-0/+28
We can boot FSP machines and extract GCOV coverage report from them combining with Mambo reports Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
2015-05-15Fix fsp_support.sh for boot_tests, export SSHUSER and SSHPASSStewart Smith1-0/+2
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
2015-04-30Fix boot-tests for BMC machines due to FSP password in dotfileStewart Smith2-5/+5
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
2015-04-30Increase BOOT_TIMEOUT in boot-tests/fsp_support to 20Stewart Smith1-1/+1
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
2015-04-29Add boot-tests scripts for automating boot testing on FSP and BMC systemsStewart Smith3-0/+491
Have been using this for a while in the lab. It's a good start for more fully automated and autonomous boot testing. From: Daniel Axtens <daxtens@au1.ibm.com> From: Cyril Bur <cyril.bur@au1.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>