Skip to contentSkip to conversation

Small powerpc system emulation problem with linux

Qemu-devel [email protected] 2 participants 3 messages Jan 14, 2009

lore
Share & tools
lore
#0 lore raw

[...]

Quoted 3 lines

Debian tried to isntall the quik boot loader for oldworld mac's since that is what /proc/cpuinfo in linux claims to see, even though powermac g3 blue&white boxes (I have one here) is newworld, as are all powermac's

qemu emulates now by default a G3 beige (Silk), which is oldworld.

Quoted 5 lines

using openfirmware 3. newworld systems should use yaboot, but of course the installer had not setup the partitions for yaboot since it didn't see a newworld machine, and yaboot's installer refused to run since it wasn't a newworld machine. quik boot's installer also refused to run since it wasn't a supported oldworld machine either.

In last openbios, I've managed to be able to boot with quik. But debian-installer doesn't create a correct quik.conf.

[...]

Quoted 4 lines

So the main problems seem to be that the openbios firmware doesn't include an entry for 'interrupt-controller' which is the entry the linux kernel looks for to device a machine is newworld rather than oldworld in the powermac setup. The other is that debian's yaboot is out of date.

As qemu emulates a newworld machine, openbios doesn't create an entry for interrupt-controller.

Quoted 6 lines

The yaboot problem is being worked on.

So now I am wondering what has to be done to make qemu appear as a newworld mac, since that is what the machine it claims to emulate is. Is this simply a mistake in openbios for qemu or does qemu actually emulate oldworld to some extent?

use qemu with "-M mac99". But for the moment it doesn't support openbios.

Quoted 3 lines

I tried adding an entry for 'interrupt-controller' following the pearpc code in openbios, but that just resulted in a failure to boot the linux

Bad Idea...

Quoted 4 lines

kernel, probably because it tried to access the machine as a newworld box, and couldn't find something it needed. I wish I knew how to dump the openfirmware tree on the real powermac g3 to see what it has compared to what qemu with openbios currently sees.

lsprop /proc/device-tree

Regards,
Laurent

#1 lore raw
Quoted 1 line · On Wed, Jan 14, 2009 at 05:41:19PM +0100, [email protected] wrote:

qemu emulates now by default a G3 beige (Silk), which is oldworld.

Hmm, I guess I got confused because the linux 2.6.26 kernel detects it as type 66 (Blue&White G3). ANd of course I read somewhere that openfirmware 3 was only ever used on newworld Macs, and that seems to be what openbios implements.

Quoted 1 line

In last openbios, I've managed to be able to boot with quik. But debian-installer doesn't create a correct quik.conf.

I can't get quik to work, but yaboot works. Well after convincing it that it was a newworld machine.

Quoted 1 line

As qemu emulates a newworld machine, openbios doesn't create an entry for interrupt-controller.

According to the powermac setup in the linux kernel, only newworld machines have the entry for 'interrupt-controller' so you must mean qemu emulates oldworld, which is what you said at the top.

Quoted 1 line

use qemu with "-M mac99". But for the moment it doesn't support openbios.

Yeah I noticed. So far mac99 didn't seem functional to me.

Quoted 1 line

Bad Idea...

So it seemed.

Quoted 1 line

lsprop /proc/device-tree

Hmm, OK. I will try that.

So for some reason I have it working with yaboot (which is supposedly only for newworld machines) along with openbios. Hmm.

Signature · 1 line
Len Sorensen
#2 lore raw
Quoted 5 lines · Lennart Sorensen

[...]

Quoted 1 line

lsprop /proc/device-tree

Hmm, OK. I will try that.

Look at this:

http://penguinppc.org/historical/dev-trees-html/

Quoted 2 lines

So for some reason I have it working with yaboot (which is supposedly only for newworld machines) along with openbios. Hmm.

In fact oldworld machines have buggy openfirmware but linux detects them by looking if there is an interrupt-controller. Better way should to look at the openprom model property.

We have chosen to emulate an oldworld machine first, because hardware is simpler, but we are using openbios which is a v3 openfirmware. So we have an oldworld hardware with v3 openfirmware. To be able to boot we add in the openbios device tree some "AAPL," properties linux uses on oldworld machines.

Regards,
Laurent

-------------------- [email protected] --------------------
"Tout ce qui est impossible reste à accomplir" Jules Verne
"Things are only impossible until they're not" Jean-Luc Picard