summaryrefslogtreecommitdiffstats
path: root/external/boot-tests
Commit message (Collapse)AuthorAgeFilesLines
* boot_tests: add PFLASH_TO_COPY for OpenBMCStewart Smith2017-07-201-0/+6
| | | | Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* boot-tests: add OpenBMC supportStewart Smith2017-06-202-2/+125
| | | | Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* boot_test.sh: Add SMC BMC supportStewart Smith2017-06-064-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>
* boot_test: fix typo in console messageStewart Smith2016-11-071-2/+2
| | | | Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* boot-tests: force BMC to boot from non-golden sideStewart Smith2016-11-021-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>
* external/boot_tests: remove lid from the BMC after flashingClaudio Carvalho2016-10-101-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>
* external/boot_tests: add the nobooting option -NClaudio Carvalho2016-10-101-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>
* external/boot_tests: add arbitrary lid option -FClaudio Carvalho2016-10-102-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>
* boot-test: give a better temp file name for boot logStewart Smith2016-08-091-1/+1
| | | | Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* boot-test: Add -k and -K options to keep logs on fail or alwaysStewart Smith2016-08-091-3/+20
| | | | Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* Fix for typosFrederic Bonnard2016-06-201-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>
* boot-tests: allow running boot_test.sh via a symlinkAndrew Donnellan2016-04-181-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>
* boot-tests: force booting from primary (non-golden) sideStewart Smith2016-04-013-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>
* Fix boot_test.sh script for chmod +x pflash if copyingStewart Smith2015-10-301-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>
* Add ability to copy pflash binary to BMC to boot_tests.shStewart Smith2015-10-011-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>
* fix fat-fingering of FSPSSHUSER support in extract_gcov.shStewart Smith2015-08-131-4/+6
| | | | Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* support FSPSSHUSER env variables in extract_gcov.shStewart Smith2015-08-131-1/+1
| | | | Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* external/boot-tests: update boot-test.sh usage for BMC single partition flashingAndrew Donnellan2015-07-311-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>
* external/boot-tests: Fix logging functions in boot_test.shAndrew Donnellan2015-07-311-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>
* Add single partition flashing for BMC platforms to boot_test.shStewart Smith2015-06-192-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>
* Because BMCs love to change things, use dd rather than scpStewart Smith2015-06-181-2/+6
| | | | Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* Make boot_test.sh always prefix output with target nameStewart Smith2015-05-282-16/+16
| | | | | | This helps when 'make -j' is used for boot tests Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* Support doing physical machine boot tests with gcovStewart Smith2015-05-271-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>
* Fix fsp_support.sh for boot_tests, export SSHUSER and SSHPASSStewart Smith2015-05-151-0/+2
| | | | Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* Fix boot-tests for BMC machines due to FSP password in dotfileStewart Smith2015-04-302-5/+5
| | | | Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* Increase BOOT_TIMEOUT in boot-tests/fsp_support to 20Stewart Smith2015-04-301-1/+1
| | | | Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* Add boot-tests scripts for automating boot testing on FSP and BMC systemsStewart Smith2015-04-293-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>
OpenPOWER on IntegriCloud