summaryrefslogtreecommitdiffstats
path: root/external
Commit message (Collapse)AuthorAgeFilesLines
...
* | pflash: Create make dist target for pflash release tarballsCyril Bur2015-06-013-35/+57
| | | | | | | | | | | | | | | | | | | | | | | | In order to be able to compile and ship pflash independently to the rest of skiboot as it is a separate userland tool we're going to need a tarball of all the required files to build it. This commit adds a make dist target which copies libflash and ccan alongside pflash sources and inserts a stripped down Makefile into a tarball. Signed-off-by: Cyril Bur <cyril.bur@au1.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* | pflash: Use git tag versioning from make_version.shCyril Bur2015-06-012-4/+21
| | | | | | | | | | | | | | | | In order to be able to create distribution tarballs of pflash there needs to be some saneish versioning scheme. Signed-off-by: Cyril Bur <cyril.bur@au1.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* | pflash: Improve ARCH detectionCyril Bur2015-06-011-4/+3
| | | | | | | | | | | | | | | | | | Despite coding style, for make, the ARCH detection logic shouldn't have indenting. Done this way, the make builtin error function can be called without a 'fake' target. Signed-off-by: Cyril Bur <cyril.bur@au1.ibm.com> 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>
* | Refactor mambo test runningStewart Smith2015-05-251-2/+0
| | | | | | | | | | | | | | | | we now properly control the simulation rather than just killing off Mambo. For boot test, we wait for petitboot and actually shut down the simulation properly with 'halt'. Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* | Merge PRD rework from stableStewart Smith2015-05-211-12/+178
|\|
| * external/opal-prd: Update for new PRD userspace interfaceJeremy Kerr2015-05-211-12/+178
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previous updates to the opal-prd firmare interface have 1) added the message size into struct opal_prd_msg 2) split opal_prd_msg into a separate header struct 3) exposed the PRD ranges through the device-tree This update to the opal-prd binary will accommodate these interface changes. Signed-off-by: Jeremy Kerr <jk@ozlabs.org> 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>
* | external/pflash: fix build breakage on powerpcCyril Bur2015-04-181-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Because pflash is a userland tool which makes interesting use of hardware flash accessors it needs a special version of those functions which don't actually try to access hardware but perform various userland calls to call into firmware to update the flash. Sometime in the past optimisations which introduced inline functions in to the lpc code caused it to be incompatible with the userland access functions for powerpc. This patch solves this by adding a special lpc header to pflash file without these optimisations. Signed-off-by: Cyril Bur <cyril.bur@au1.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* | external/pflash: fix build breakage on armCyril Bur2015-04-181-0/+1
|/ | | | | | | add missing #define in ast.h Signed-off-by: Cyril Bur <cyril.bur@au1.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* external: create a GUARD partition parsing utilityCyril Bur2015-04-015-0/+920
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This utility is designed to run completely in userland linux and make use of OPAL APIs (exposed to userland via the linux MTD abstraction) to read, parse, display and optionally clear firmware GUARD partition information. The main intended use case is to have the tool run on the OpenPOWER machine and automatically detect the flash device containing the gard data and display information about the running system. The tool can also read a flash imagine contained in a specified file. The tool can also be used to parse just guard data not contained in a flash image but rather dumped to a file. The tool understands ECC and does its best to detect this automatically. There are three commands: - list: lists all the records - show: show more information about a specific record - clear: clear/erase a specific record or the entire flash. The tool makes some assumptions: - gard data is terminated by an entry containing all FF bytes. In the case of the tool detecting ECC it will always read with ECC correction so the final all FF record will still need to contain ECC bytes. - The GUARD partition will not have gaps, the clear code does shuffle entires up and set the last one to all FF bytes. Note: This tool has been named 'gard' because this is the traditional name for hardware that has been detected as faulty and has been 'gard'ed. It turns out that in the flash the partition is named 'GUARD'. Signed-off-by: Cyril Bur <cyril.bur@au1.ibm.com> Reviewed-by: Daniel Axtens <dja@axtens.net> [stewart@linux.vnet.ibm.com: add correct (C) header to gard.c] Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* external/opal-prd: Use link register for cross-endian branchJeremy Kerr2015-04-011-3/+3
| | | | | | | | | | | | With the change to the official switch_endian system call, we lost preservation of the counter across the system call. This change uses the LR instead. It's preserved across the system call, and is going to be overwritten by the branch-and-link instruction anyway. Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* mambo: Make mambo_utils.tcl optionalMichael Ellerman2015-03-311-5/+8
| | | | | | | | | | | Only source mambo_utils.tcl if we can find it. This allows using skiboot.tcl from another directory, which is useful for automated testing. We need to open code the body of "ton" and "c" obviously, in case we didn't find skiboot.tcl. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* mambo: Exit mambo when the simulation is stoppedMichael Ellerman2015-03-311-2/+1
| | | | | | | | | | | | | When the simulation runs to completion, exit mambo. In addition to the previous patch this allows "halt" on the Linux command line to stop the simulation and exit mambo. Note that this only takes effect if the "mysim go" is left to run until the simulation is stopped. If the user interrupts the simulation, eg. with Ctrl-C, to inspect state, then the exit has no effect. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* external/opal-prd: Use "official" switch-endian syscallJeremy Kerr2015-03-311-6/+14
| | | | | | | | | | | The "fast endian switch" syscall was never fully supported - this change moves to the official switch-endian syscall, using __NR_switch_endian We also form the little-endian instructions using this prepreocessor define. Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* memboot: Add a memboot flash backendAlistair Popple2015-03-261-0/+17
| | | | | | | | | memboot uses bmc system memory instead of a real flash chip. This patch adds a flash backend for bmc system memory to allow use of the memboot tool (in external/memboot) to boot the system. Signed-off-by: Alistair Popple <alistair@popple.id.au> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* external/opal-prd: Unify logging calls and log to syslogJeremy Kerr2015-03-175-154/+287
| | | | | | | | | | | | | | | This change unifies the printf/fprintf/warn/err/perror calls into: pr_log(level, fmt, ...). While doing this, add prefixes to each message, to signify the functionality that raised the log message. We also add syslog initialisation, so that we can log to the system-wide syslog facility. Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* external/opal-prd: Add a helper for module loadingJeremy Kerr2015-03-175-5/+90
| | | | | | | | | | | | | | Rather than calling system("modprobe ...") in different locations, this change introduces an insert_module() helper function. We use this for the existing i2c modprobe, and add one for the ipmi devintf module too. We won't need the i2c-opal module, as it should be automatically loaded by the platform device. Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* Fixup "i" command in mambo scriptsBenjamin Herrenschmidt2015-03-111-1/+1
| | | | | Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* external/opal-prd: Correct partition offsetJoel Stanley2015-03-041-8/+2
| | | | | | | | | The start of the partition was not used when sending the size to the mtd_{read,write} calls. This meant they were unconditionally reading and writing to the start of the flash, instead of the partition. Signed-off-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* external/opal-prd: Allow partial ops with PNOR APIJoel Stanley2015-03-042-10/+26
| | | | | | | | | | | | The PNOR operations will now return the number of bytes successfully written, which may be less than the number of bytes requested, similar to read(2) and write(2). The hostboot interface is updated with this information. The signature does not change. Signed-off-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* external/opal-prd: Enhance PNOR error messagesJoel Stanley2015-03-041-17/+26
| | | | | | | Provide detailed feedback when encountering errors in the PNOR code. Signed-off-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* external/opal-prd: NULL-out FSP-only callbacksJeremy Kerr2015-03-042-33/+9
| | | | | | | The HBRT code will check for NULL callbacks, so don't provide them in the hinterface table. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* external/opal-prd: Fix prototypes of i2c read/write callbacksJeremy Kerr2015-03-041-4/+4
| | | | Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* external/opal-prd: Add install targetJeremy Kerr2015-03-041-0/+6
| | | | Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* external/opal-prd: Add asm directory for opal-prd linkJeremy Kerr2015-03-041-0/+2
| | | | Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* external/opal-prd: Add userspace support for PRD facilityJeremy Kerr2015-03-0412-0/+2775
| | | | | | | | | | | | | | | | | | | | | | | | | | This change adds an application in external/opal-prd, implementing the userspace portion of a PRD stack. This code is responsible for loading the HBRT code from reserved memory, and provding hostboot runtime functionality through a set of callbacks. Because we may be running little-endian (and expect the HBRT code to be big-endian), we need to thunk the endianness between calls through the HBRT interface. Includes multiple contributions from: Joel Stanley <joel@jms.id.au> Vaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com> Benjamin Herrenschmidt <benh@kernel.crashing.org Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Signed-off-by: Vaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com> Signed-off-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> [stewart@linux.vnet.ibm.com: squash trailing whitespace] Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* external/pflash: libflash needs ecc.oJeremy Kerr2015-02-261-1/+1
| | | | | | Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Reviewed-By: Joel Stanley <joel@jms.id.au> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* libffs: Add ecc parameter on ffs_part_info()Michael Neuling2015-02-231-2/+2
| | | | | | | | Add ecc parmenter to ffs_part_info() to indicate if the partition is ECC protected or not. Fix all call sites. Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* mambo: Get the zImage from an environment variableMichael Ellerman2014-12-151-1/+4
| | | | | | | | | | | Rather than hard coding /tmp/zImage.epapr, get the zImage from an environment variable. This is a) cleaner, and b) allows running multiple copies of the simulator against different kernels simultaneously. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* Improve mambo configBenjamin Herrenschmidt2014-12-061-3/+71
| | | | Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
* esel: Add a logging backend for bmc based machinesAlistair Popple2014-12-021-0/+55
| | | | | | | | | This patch adds a backend for bmc based machines running AMI firmware supporting the OEM extended sel commands. Errors are logged in pel format to the bmc. Signed-off-by: Alistair Popple <alistair@popple.id.au> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* Add scripts to run from MamboBenjamin Herrenschmidt2014-12-012-0/+362
| | | | | Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* More trace endian fixes so make check works againBenjamin Herrenschmidt2014-11-281-1/+1
| | | | | | | We need the core to do proper endian among others since that code is compiled in run-trace Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
* Various fixes to dump_tracesBenjamin Herrenschmidt2014-11-263-33/+41
| | | | | | Endian breakage, build breakage, ... Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
* external: Add the memboot utilityAlistair Popple2014-11-143-0/+171
| | | | | | | | | | The memboot tool is a small utility designed to be run on the ASPEED BMC used in some OpenPower systems. It allows you to boot the P8 host from the main system memory of the BMC rather than from the flash memory. Signed-off-by: Alistair Popple <alistair@popple.id.au> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
* Import pflash 0.8.6Benjamin Herrenschmidt2014-11-1412-0/+1637
| | | | | | We share code, it's easier to maintain it this way Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
* external: Add xscom utilitiesBenjamin Herrenschmidt2014-11-135-0/+455
| | | | Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
* Fix make check after Ben broke it with external/* -> external/trace/ renameStewart Smith2014-10-211-1/+1
| | | | Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* Move external trace stuff to a subdirectoryBenjamin Herrenschmidt2014-10-204-0/+0
| | | | Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
* Initial commit of Open Source releaseBenjamin Herrenschmidt2014-07-024-0/+329
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
OpenPOWER on IntegriCloud