View previous topic :: View next topic |
Author |
Message |
Progman3K l33t


Joined: 03 Jan 2004 Posts: 796
|
Posted: Fri Nov 07, 2008 1:09 am Post subject: QEMU 0.9.0 on PPC iMac, trying to install OSX [SOLVED] |
|
|
Hi,
I've installed Linux and QEMU on a Mac Mini.
Linux mac_mini 2.6.24-gentoo-r3 ppc 7447A, altivec supported PowerMac10,1 GNU/Linux
I am trying to install OS/X into a virtual machine but for some reason, when starting QEMU
qemu -hda osx.cow -boot d -cdrom /dev/cdrom
I get the following output Code: | Plex86/Bochs VGABios current-cvs 14 Jun 2006
This VGA/VBE Bios is released under the GNU LGPL
Please visit :
. http://bochs.sourceforge.net
. http://www.nongnu.org/vgabios
Bochs VBE Display Adapter enabled
QEMU BIOS - build: 11/01/06
$Revision: 1.174 $ $Date: 2006/10/17 16:48:05 $
Options: apmbios pcibios eltorito rombios32
ata0 master: QEMU HARDDISK ATA-7 Hard-Disk (16384 MBytes)
ata1 master QEMU CD-ROM ATAPI-4 CD-Rom/DVD-Rom
CDROM boot failure code : 0005
Boot from CD-Rom failed
FATAL: Could not read the boot disk |
I've tried making an .iso image from my OS/X install disk and using that as the CD-ROM:
qemu -hda osx.cow -boot d -cdrom OS_X_Install.iso
But it also fails with the same error.
What am I doing wrong?
Thanks in advance
Last edited by Progman3K on Tue Nov 11, 2008 6:09 pm; edited 1 time in total |
|
Back to top |
|
 |
nurachi Tux's lil' helper

Joined: 16 May 2008 Posts: 92 Location: Paris
|
|
Back to top |
|
 |
Progman3K l33t


Joined: 03 Jan 2004 Posts: 796
|
Posted: Fri Nov 07, 2008 3:55 am Post subject: |
|
|
Thanks for all the interesting leads, nurachi!
Yes! Thanks for pointing out my error! I was running the x86 QEMU!
Running the command
qemu-system-ppc -hda osx.cow -boot d -cdrom OS_X_Install.iso Code: | Could not configure '/dev/rtc' to have a 1024 Hz timer. This is not a fatal
error, but for better emulation accuracy either use a 2.6 host Linux kernel or
type 'echo 1024 > /proc/sys/dev/rtc/max-user-freq' as root.
Segmentation fault |
I see QEMU's window appear for a brief moment, there is lots of text in it, but it disappears too quickly for me to be able to read even one word.
From the article link you posted, I expected it to work slightly better than that: The author said "it doesn't completely work yet." but what I am experiencing is that it works almost not at all... I wonder if the segmentation fault I am getting is caused by something else... If I remove the CDROM option it still segfaults, if it behaved like the x86 version I would expect it to tell me that the hard-disk I have given it is not-bootable, but instead it segfaults...
The x86 version of QEMU didn't segfault. It couldn't boot the CD, but it didn't crash...
I cannot use it: It appears to be intel-only.
I have a PPC iMac, and a PPC OS/X license and CD-ROM.
I tried emerging mol but it will not build its kernel module with the kernel headers I have (2.6.24-r3). It gives this error: Code: | * Preparing mol module
LD /var/tmp/portage/app-emulation/mol-0.9.72.1/work/mol-0.9.72.1/obj-ppc/build/src/kmod/built-in.o
CC [M] /var/tmp/portage/app-emulation/mol-0.9.72.1/work/mol-0.9.72.1/obj-ppc/build/src/kmod/_kuname.o
CC [M] /var/tmp/portage/app-emulation/mol-0.9.72.1/work/mol-0.9.72.1/obj-ppc/build/src/kmod/_fault.o
In file included from /var/tmp/portage/app-emulation/mol-0.9.72.1/work/mol-0.9.72.1/obj-ppc/build/src/kmod/kernel_vars.h:22,
from /var/tmp/portage/app-emulation/mol-0.9.72.1/work/mol-0.9.72.1/obj-ppc/build/src/kmod/_fault.c:19:
/var/tmp/portage/app-emulation/mol-0.9.72.1/work/mol-0.9.72.1/obj-ppc/build/src/kmod/mac_registers.h:114:1: warning: "BIT" redefined
In file included from include/linux/kernel.h:15,
from /var/tmp/portage/app-emulation/mol-0.9.72.1/work/mol-0.9.72.1/obj-ppc/build/src/kmod/archinclude.h:44,
from /var/tmp/portage/app-emulation/mol-0.9.72.1/work/mol-0.9.72.1/obj-ppc/build/src/kmod/_fault.c:17:
include/linux/bitops.h:6:1: warning: this is the location of the previous definition
CC [M] /var/tmp/portage/app-emulation/mol-0.9.72.1/work/mol-0.9.72.1/obj-ppc/build/src/kmod/_dev.o
In file included from /var/tmp/portage/app-emulation/mol-0.9.72.1/work/mol-0.9.72.1/obj-ppc/build/src/kmod/kernel_vars.h:22,
from /var/tmp/portage/app-emulation/mol-0.9.72.1/work/mol-0.9.72.1/obj-ppc/build/src/kmod/_dev.c:28:
/var/tmp/portage/app-emulation/mol-0.9.72.1/work/mol-0.9.72.1/obj-ppc/build/src/kmod/mac_registers.h:114:1: warning: "BIT" redefined
In file included from include/linux/kernel.h:15,
from /var/tmp/portage/app-emulation/mol-0.9.72.1/work/mol-0.9.72.1/obj-ppc/build/src/kmod/archinclude.h:44,
from /var/tmp/portage/app-emulation/mol-0.9.72.1/work/mol-0.9.72.1/obj-ppc/build/src/kmod/_dev.c:17:
include/linux/bitops.h:6:1: warning: this is the location of the previous definition
/var/tmp/portage/app-emulation/mol-0.9.72.1/work/mol-0.9.72.1/obj-ppc/build/src/kmod/_dev.c: In function 'find_physical_rom':
/var/tmp/portage/app-emulation/mol-0.9.72.1/work/mol-0.9.72.1/obj-ppc/build/src/kmod/_dev.c:88: error: implicit declaration of function 'get_property' |
Maybe if I switched kernel versions for one that mol is known to work with... Does anyone know which version that is?
Any ideas are welcome.
Thank you. |
|
Back to top |
|
 |
nurachi Tux's lil' helper

Joined: 16 May 2008 Posts: 92 Location: Paris
|
Posted: Fri Nov 07, 2008 4:39 am Post subject: |
|
|
Progman3K wrote: | Thanks for all the interesting leads, nurachi!
Yes! Thanks for pointing out my error! I was running the x86 QEMU!
Running the command
qemu-system-ppc -hda osx.cow -boot d -cdrom OS_X_Install.iso Code: | Could not configure '/dev/rtc' to have a 1024 Hz timer. This is not a fatal
error, but for better emulation accuracy either use a 2.6 host Linux kernel or
type 'echo 1024 > /proc/sys/dev/rtc/max-user-freq' as root.
Segmentation fault |
|
Did you try the suggested command?
Code: | echo 1024 > /proc/sys/dev/rtc/max-user-freq #as root. |
|
|
Back to top |
|
 |
Progman3K l33t


Joined: 03 Jan 2004 Posts: 796
|
Posted: Fri Nov 07, 2008 1:07 pm Post subject: |
|
|
nurachi wrote: | Did you try the suggested command?
Code: | echo 1024 > /proc/sys/dev/rtc/max-user-freq #as root. |
|
Hmmm... I don't have an rtc directory under /proc/sys/dev/
Could that really be the problem? The warning says it is non-fatal. |
|
Back to top |
|
 |
loftwyr l33t


Joined: 29 Dec 2004 Posts: 970 Location: 43°38'23.62"N 79°27'8.60"W
|
Posted: Fri Nov 07, 2008 4:31 pm Post subject: |
|
|
Do you have a /dev/rtc? You may have only a /dev/rtc0 and then you need to make adjustments in your kernel. If you ahve neither, you defnitely need to turn Real Time Clock in your kernel. _________________ My emerge --info
Have you run revdep-rebuild lately? It's in gentoolkit and it's worth a shot if things don't work well.
Celebrating 5 years of Gentoo-ing. |
|
Back to top |
|
 |
Progman3K l33t


Joined: 03 Jan 2004 Posts: 796
|
Posted: Tue Nov 11, 2008 6:09 pm Post subject: |
|
|
Progman3K wrote: | Maybe if I switched kernel versions for one that mol is known to work with... Does anyone know which version that is? |
Looks like that is 2.6.20-r10.
Disclaimer: I have NOT tried every version of the kernel. I did try 2.6.24-r7 and 2.6.27-r2, both of those were no-go; the mol kernel module would never compile because of some undefined symbol or another.
Also, no matter what kernel options I tried for qemu-system-ppc, it would always segfault at start-up, so in the end I had to go with mol
Thanks for everyone's help. |
|
Back to top |
|
 |
|