qemu-ppc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-ppc] KVM on PPC host


From: Jd Lyons
Subject: Re: [Qemu-ppc] KVM on PPC host
Date: Sat, 20 Jan 2018 06:03:59 -0500



On Jan 20, 2018, at 5:11 AM, Mark Cave-Ayland <address@hidden> wrote:

On 19/01/18 19:05, Jd Lyons wrote:

Ok, I got Tiger to install and boot by doing a little hacking in the command line in Openbios, but I have to use the -cpu 7410 command then:
>0 dev /cpus/@0
>0 80030105 encode-int “ cpu-version” property
>0 “ PowerPC,G4” encode-string “ model” property
This seems to be the most stable, I did a little hacking to Openbios and added support for the 7447a cpu, but BootX just hangs forever, so it seems 7447a support is incomplete in Qemu-PPC.
So I have a few question:
What do we need to do to get the 7447a working?

Good question. Is this in TCG-only qemu-system-ppc? The first thing would be to understand the difference between the 2 CPU models, perhaps using datasheets and then see if it is because QEMU is missing particular feature.

You probably also want to try asking on the KVM PPC mailing lists as people there who are worked on the kernel side will likely be able to just tell you. My work in this area has been mostly limited to getting the peripheral emulation to a point where both OS X and OS 9 are happy.

Ok, I’ll see if they can help me with a few issues.

Where is the -cpu host support in Qemu-PPC, meaning what file or files do I need to edit to add support for this in 32bit binaries?
I’m just assuming that as I’ve read reports that this works for people when they build 64bit bianaries of qemu-system-ppc and emu-system-ppc64 that for some reason the code for KVM cpu host support just isn’t building into the 32bit binaries.

Did you mention in a previous email that this used to work for you? The -cpu parameter parsing has had quite big overhaul in the past couple of QEMU releases so maybe try something QEMU 2.9 and see if it works there? If it does, then you'll need to do a git bisect to figure out what changed.


I got -cpu host to work, sorry my last post was unclear, just adding my cpu to Openbios init.c and  /qemu/target/ppc/cpu-models.c /qemu/target/ppc/cpu-models.h got it working.

Trouble is 7447a seems incomplete, BootX hangs even when just emulation the CPU, this is the same result as the 970/fx in emulation mode. The mach_kernel never loads. With 970 emulation I was able to boot and install linux, and run it after install, but I had to point openbios to yaboot, i.e. boot hd:2,\yaboot. I gave Ubuntu Mate 16.04 a try, with -cpu host on my G4 and it hangs at loading the bootinfo.txt. With -nographic it boots yaboot from the CD, but seems to hang when creating the RAM disk.

I’m not sure the boot process of BootX, if I’m having the same trouble there, could be an issue related to the MMU?

I’ll give the Debian installer a try with -cpu host and see if that works for me, it did and the emulated 970, so if it works on the G4 with KVM that may give us some clue how to get OS X running on both KVM and emulated G5’s.


ATB,

Mark.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]