qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] osx bootloader


From: Gabriel L. Somlo
Subject: Re: [Qemu-devel] osx bootloader
Date: Wed, 29 Jan 2014 09:53:44 -0500
User-agent: Mutt/1.5.21 (2010-09-15)

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...

Thanks again,
--Gabriel



reply via email to

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