summaryrefslogtreecommitdiffstats
path: root/external/mambo
Commit message (Collapse)AuthorAgeFilesLines
...
* mambo: Fix bt command and add little endian supportMichael Neuling2016-07-201-8/+32
| | | | | | | | | | | | | | | | | | | | This fixes the bt (back trace) command which had bit rot. It also adds little endian support. Format looks like this: systemsim % bt pc: 0x000000003007F270 lr: 0x000000003007EFAC stack:0x0000000031C03B60 0x0000000031C03BF0 stack:0x0000000031C03C00 0x0000000030022F44 stack:0x0000000031C03C90 0x0000000030023000 stack:0x0000000031C03D20 0x0000000030039540 stack:0x0000000031C03E30 0x00000000300145BC stack:0x0000000031C03F00 0x000000003000259C Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* mambo: Run at fastest speed.Michael Neuling2016-07-051-2/+2
| | | | | | Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* mambo: Add README.md for skiboot.tclMichael Neuling2016-07-011-0/+57
| | | | | | | | | | | | Stewart has a great blog post on getting started with mambo and skiboot. It would be better to have this content here so we can keep it in sync with the code. Original blog post here: https://www.flamingspork.com/blog/2014/12/03/running-skiboot-opal-on-the-power8-simulator/ Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* mambo: Add support for POWER9Michael Neuling2016-07-011-2/+31
| | | | | | | | Ensures the simulator is configured correctly and we advertise the right features via the device tree. Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* Fix for typosFrederic Bonnard2016-06-201-1/+1
| | | | | | | | | 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>
* mambo: Remove reliance on env(SIMHOST)Michael Neuling2016-04-281-5/+3
| | | | | | | | | The SIMHOST environment variable is not present in all version of mambo. This removes the reliance on it and instead uses the "display default_configure" command to find the simulator type. Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* mambo: Flatten device tree at the endMichael Neuling2016-04-181-4/+3
| | | | | | | | | Flatten device tree at the end to ensure we've configured everything first. Otherwise we may get an old dump of the device tree in skiboot. Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* mambo: Increase memory to 4GB and change memory mapMichael Neuling2016-04-181-2/+4
| | | | | | | | | | | Increase memory in the sim to 4GB up from 1GB. We need to turn off the small RAM and ROM in mambo as that sits at 3.75GB currently. We don't use these currently. Also change where we put the CPIO to give ourselves more space. Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* mambo: Enable multicore configurationsMichael Neuling2016-04-171-13/+23
| | | | | | | | | | | | | This enables multicore configurations in mambo. You can change the number of cores in mambo by changing the line: mconfig cpus CPUS 1 To do this, we need to sanitise the PIR that mambo sets and fixup the ibm,ppc-interrupt-server#s properties. Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* external/mambo: Load skiboot already offsetMichael Neuling2016-01-151-2/+2
| | | | | | | | Load skiboot already offset at 768MB so that it doesn't need to relocate itself. This shaves about 1M instructions off boot time. Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* external/mambo: Fix indentation in mambo_tuils.tclMichael Neuling2016-01-151-75/+75
| | | | | | | No code change. Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* mambo: Auto start the simulator using SKIBOOT_AUTORUNMichael Neuling2015-10-211-0/+4
| | | | | | | | Automatically start the simulator using the SKIBOOT_AUTORUN environment variable. Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* mambo: Add SKIBOOT_SIMCONF for additional configurationMichael Neuling2015-10-211-0/+4
| | | | | | | | Add ability to add additional configuration information using the SKIBOOT_SIMCONF environment variable. Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* mambo: Advertise the sim supports 256M and 1TB segments in device treeMichael Neuling2015-10-211-0/+2
| | | | | | | | Advertise the sim supports 256M and 1TB segments in device tree. If we don't have this, Linux will default to 256MB segments. Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* mambo: Add ability to load initrdMichael Neuling2015-10-211-0/+11
| | | | | | | Add ability to load initrd using SKIBOOT_INITRD environment variable. Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* mambo: Make PVR change only on p8Michael Neuling2015-10-211-1/+5
| | | | | | | Only make PVR change when running on the POWER8 simulator. Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* mambo: Use SIMHOST to determine the simulator typeMichael Neuling2015-10-211-2/+4
| | | | | | | | | Use SIMHOST to determine the simulator type. This means we can support past and future sims other than P8. Signed-off-by: Michael Neuling <mikey@neuling.org> [stewart@linux.vnet.ibm.com: support environments without SIMHOST] Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* mambo: Use alternate skiboot.lid with SKIBOOTMichael Neuling2015-10-211-0/+3
| | | | | | | | Make it possible to use an alternate skiboot.lid by setting the SKIBOOT environment variable. Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* external/mambo: Update PVR valueSamuel Mendoza-Jonas2015-08-211-0/+1
| | | | | | | | | Running little-endian kernels in mambo requires HILE to be set properly, which requires a bump in the machine's pvr value to a DD2.x chip. Reported-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Samuel Mendoza-Jonas <sam.mj@au1.ibm.com> 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>
* 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>
* 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>
* 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>
* 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>
OpenPOWER on IntegriCloud