qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] osx bootloader


From: Alexander Graf
Subject: Re: [Qemu-devel] osx bootloader
Date: Wed, 29 Jan 2014 16:00:43 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130910 Thunderbird/17.0.9

On 01/29/2014 03:53 PM, Gabriel L. Somlo wrote:
On Wed, Jan 29, 2014 at 12:29:17PM +0100, BALATON Zoltan wrote:
I've also found this:
http://sourceforge.net/apps/mediawiki/tianocore/index.php?title=OvmfPkg
which might be what we need for using Apple's boot.efi but I don't
know how ready is it and if it works with OS X.
I managed to boot OVMF following their wiki; It seems to work with kvm
enabled, but not with -M q35. My current command line is:

bin/qemu-system-x86_64 -enable-kvm -m 2048 -cpu core2duo \
                        -usb -device usb-kbd -device usb-mouse \
                        -device isa-applesmc,osk="..." \
                        -hda mlion_hdd.img

after having replaced bios.bin and vgabios-cirrus.bin with the OVMF
files.

It obviously fails to boot OS X (now THAT would have been a surprise!)
but at least it detects the hard disk:

fs0   :HardDisk - Alias hd12a1 blk0
       
PciRoot(0x0)/Pci(0x1,0x1)/Ata(Primary,Master,0x0)/HD(1,GPT,BA0DB2B5-2270-4749-B794-BC005BEC1863,0x28,0x64000)

I poked around the "boot maintenance manager" a bit, and "boot from
file" looked promising -- I was hoping to navigate straight to
/System/Library/CoreServices/boot.efi and just hit "Enter", but was
only able to see an empty folder hierarchy:

EFI/
   APPLE/
     EXTENSIONS/
.Trashes/
   501/

So I guess I have a bit more RTFM ahead of me. Maybe I can find a way
to copy boot.efi over to the actual EFI partition, which I assume is
the only one I can explore with OVMF from the entire disk image...

You will need an EFI HFS+ driver (look at the refind pointer) because boot.efi will use EFI callbacks to read the kernel and kext cache.


Alex




reply via email to

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