From: Alexander Graf <agraf@suse.de>
To: qemu-devel@nongnu.org
Cc: qemu-ppc@nongnu.org
Subject: [Qemu-devel] [PATCH 00/10] PPC: e500: Use u-boot as firmware
Date: Mon, 20 Jan 2014 00:44:27 +0100 [thread overview]
Message-ID: <1390175077-5717-1-git-send-email-agraf@suse.de> (raw)
Today we don't run any firmware on our e500 platform. You're either running
a Linux kernel directly through -kernel or you don't boot the VM at all.
This is bad for multiple reasons. The normal firmware on e500 based systems
is u-boot. Some OSes (IIRC FreeBSD) rely on u-boot for their 2nd stage boot
loader. Since that relies on interfaces u-boot provides we can't execute it
today.
The other case where we're falling short of expectations that I'm aware of
is network boot. With a firmware you can actually pxe boot a virtual machine.
This patch set implements all the pieces necessary to run u-boot as the
firmware for our e500 platforms: mpc8544ds and e500plat. It is based on a
u-boot patch set that I sent out earlier today and that is still pending review.
Please try out as many things as you're able to try.
If you want to revert back the the old behavior of loading a kernel directly
all you need to do is pass -kernel $uImage -bios $uImage to QEMU on the command
line. That will run the kernel as ePAPR compliant firmware instead.
Known missing bits:
- -boot doesn't get interpreted yet
- pflash is missing, so the environment is volatile
- no block drivers available (ata_piix is broken in u-boot and virtio-blk
is missing)
- KVM is still missing a few emulation bits to support this
Alex
Alexander Graf (10):
PPC: Make all e500 CPUs SVR aware
PPC: Add definitions for GIVORs
PPC: Add stub emulation for HDBCR0
PPC: Add L1CFG1 SPR emulation
PPC: Properly emulate L1CSR0 and L1CSR1
PPC: Add dcbtls emulation
PPC: guts: Add emulation of a few more registers
PPC: e500: Expose kernel load address in dt
PPC: Add u-boot firmware for e500
PPC: e500: Move to u-boot as firmware
hw/ppc/e500.c | 116 ++++++++++++++++++++++++++++----------------
hw/ppc/mpc8544_guts.c | 12 +++++
pc-bios/u-boot.e500 | Bin 0 -> 1049524 bytes
target-ppc/cpu-models.c | 28 +++++------
target-ppc/cpu.h | 20 ++++++++
target-ppc/translate.c | 12 +++++
target-ppc/translate_init.c | 26 ++++++++--
7 files changed, 154 insertions(+), 60 deletions(-)
create mode 100755 pc-bios/u-boot.e500
--
1.8.1.4
next reply other threads:[~2014-01-19 23:44 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-19 23:44 Alexander Graf [this message]
2014-01-19 23:44 ` [Qemu-devel] [PATCH 01/10] PPC: Make all e500 CPUs SVR aware Alexander Graf
2014-01-19 23:44 ` [Qemu-devel] [PATCH 02/10] PPC: Add definitions for GIVORs Alexander Graf
2014-01-19 23:44 ` [Qemu-devel] [PATCH 03/10] PPC: Add stub emulation for HDBCR0 Alexander Graf
2014-01-19 23:44 ` [Qemu-devel] [PATCH 04/10] PPC: Add L1CFG1 SPR emulation Alexander Graf
2014-01-23 0:15 ` [Qemu-devel] [Qemu-ppc] " Scott Wood
2014-01-19 23:44 ` [Qemu-devel] [PATCH 05/10] PPC: Properly emulate L1CSR0 and L1CSR1 Alexander Graf
2014-01-19 23:44 ` [Qemu-devel] [PATCH 06/10] PPC: Add dcbtls emulation Alexander Graf
2014-01-19 23:44 ` [Qemu-devel] [PATCH 07/10] PPC: guts: Add emulation of a few more registers Alexander Graf
2014-01-23 0:08 ` [Qemu-devel] [Qemu-ppc] " Scott Wood
2014-01-23 11:34 ` Alexander Graf
2014-01-23 21:22 ` Scott Wood
2014-01-19 23:44 ` [Qemu-devel] [PATCH 08/10] PPC: e500: Expose kernel load address in dt Alexander Graf
2014-01-19 23:44 ` [Qemu-devel] [PATCH 09/10] PPC: Add u-boot firmware for e500 Alexander Graf
2014-01-20 0:17 ` Peter Maydell
2014-01-20 10:04 ` Alexander Graf
2014-01-23 0:13 ` Scott Wood
2014-01-19 23:44 ` [Qemu-devel] [PATCH 10/10] PPC: e500: Move to u-boot as firmware Alexander Graf
2014-01-23 0:23 ` Scott Wood
2014-01-23 10:40 ` Alexander Graf
2014-01-23 22:22 ` Scott Wood
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1390175077-5717-1-git-send-email-agraf@suse.de \
--to=agraf@suse.de \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).