diff options
| author | Andrew Jeffery <andrew@aj.id.au> | 2016-05-25 11:21:14 +0930 |
|---|---|---|
| committer | Jeremy Kerr <jk@ozlabs.org> | 2016-05-25 09:56:53 +0800 |
| commit | dd7e99977843adb049f31e94826ac59d1969145c (patch) | |
| tree | ec9397f3b8ec88e08b40abd59c1709a390ee563c | |
| parent | cef0ec7fe04bdf98ba76d776535833599a802fef (diff) | |
| download | openbmc-docs-dd7e99977843adb049f31e94826ac59d1969145c.tar.gz openbmc-docs-dd7e99977843adb049f31e94826ac59d1969145c.zip | |
cheatsheet: QEMU commandline for palmetto-bmc
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
| -rw-r--r-- | cheatsheet.md | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/cheatsheet.md b/cheatsheet.md index 2a77481..4e2c8f5 100644 --- a/cheatsheet.md +++ b/cheatsheet.md @@ -80,3 +80,29 @@ busctl call <path> <interface> <object> <method> <parameters> ``` * \<parameters\> example : sssay "t1" "t2" "t3" 2 2 3 + +## Using QEMU + +QEMU has a palmetto-bmc machine (as of v2.6.0) which implements the core +devices to boot a Linux kernel. OpenBMC also [maintains a +tree](https://github.com/openbmc/qemu) with patches on their way upstream or +temporary work-arounds that add to QEMU's capabilities where appropriate. + +QEMU's wiki has instructions for [building from +source](http://wiki.qemu.org/Documentation/GettingStartedDevelopers). + +Assuming the CWD is the root of the openbmc tree, a palmetto-bmc machine can be +invoked with: + +``` +qemu-system-arm \ + -M palmetto-bmc \ + -m 256 \ + -append "console=ttyS4" \ + -nographic \ + -kernel build/tmp/deploy/images/palmetto/cuImage-palmetto.bin \ + -dtb build/tmp/deploy/images/palmetto/cuImage-aspeed-bmc-opp-palmetto.dtb \ + -initrd build/tmp/deploy/images/palmetto/obmc-phosphor-image-palmetto.cpio.gz +``` + +To quit, type `Ctrl-a c` to switch to the QEMU monitor, and then `quit` to exit. |

