Re: [Qemu-devel] osx bootloader

2014-02-01 Thread BALATON Zoltan
On Sat, 1 Feb 2014, Paolo Bonzini wrote: The firmware has to be ported to each new chipset. OVMF was never ported to anything but PIIX. Looks like this is the case. Now I can see that OvmfPkg/Library/PlatformBdsLib/BdsPlatform.c has hardcoded pci paths in it corresponding to the pc machine t

Re: [Qemu-devel] osx bootloader

2014-02-01 Thread Paolo Bonzini
Il 01/02/2014 01:38, BALATON Zoltan ha scritto: 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: I've tried with the version compiled from the edk2 HEAD and that also fails with -M q35. I've managed to get some de

Re: [Qemu-devel] osx bootloader

2014-02-01 Thread BALATON Zoltan
On Wed, 29 Jan 2014, Alexander Graf wrote: 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. Probably we will need more than that. I've copied boot.efi to the EFI partition and tried to start it from OMVF (w

Re: [Qemu-devel] osx bootloader

2014-02-01 Thread Alexander Graf
> Am 01.02.2014 um 01:38 schrieb BALATON Zoltan : > >> On Wed, 29 Jan 2014, Gabriel L. Somlo wrote: >> 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: > > I've tried with the version compiled from the edk2 HEAD

Re: [Qemu-devel] osx bootloader

2014-01-31 Thread BALATON Zoltan
On Wed, 29 Jan 2014, Gabriel L. Somlo wrote: 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: I've tried with the version compiled from the edk2 HEAD and that also fails with -M q35. I've managed to get some debug

Re: [Qemu-devel] osx bootloader

2014-01-29 Thread BALATON Zoltan
On Wed, 29 Jan 2014, Alexander Graf wrote: On 01/29/2014 03:53 PM, Gabriel L. Somlo wrote: 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: Did you use the snapshots on the wiki or compiled the latest version from

Re: [Qemu-devel] osx bootloader

2014-01-29 Thread Alexander Graf
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 an

Re: [Qemu-devel] osx bootloader

2014-01-29 Thread Gabriel L. Somlo
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

Re: [Qemu-devel] osx bootloader

2014-01-29 Thread Alexander Graf
On 01/29/2014 04:07 AM, Gabriel L. Somlo wrote: On Tue, Jan 28, 2014 at 11:51:25PM +0100, BALATON Zoltan wrote: Here are some pages that might help enlightening the boot process: https://developer.apple.com/library/mac/documentation/Darwin/Conceptual/KernelProgramming/booting/booting.html http:

Re: [Qemu-devel] osx bootloader

2014-01-29 Thread BALATON Zoltan
On Tue, 28 Jan 2014, Gabriel L. Somlo wrote: Thanks again for the helpful links !!! Here are some more that can be helpful: http://www.rodsbooks.com/refind/drivers.html about some EFI drivers that can make an EFI implementation able to read an HFS+ volume (rEFInd is a boot manager for EFI tha

Re: [Qemu-devel] osx bootloader

2014-01-29 Thread BALATON Zoltan
On Tue, 28 Jan 2014, Gabriel L. Somlo wrote: But now I think it's starting to make sense. Chameleon's stage2 loader, named "boot" (which we're starting via "-kernel boot", and which is the only piece of Chameleon we need) is apparently equivalent to Apple's "boot.efi", which it bypasses, and whic

Re: [Qemu-devel] osx bootloader

2014-01-28 Thread Gabriel L. Somlo
On Tue, Jan 28, 2014 at 11:51:25PM +0100, BALATON Zoltan wrote: > Here are some pages that might help enlightening the boot process: > > https://developer.apple.com/library/mac/documentation/Darwin/Conceptual/KernelProgramming/booting/booting.html > http://homepage.ntlworld.com/jonathan.deboynepol

Re: [Qemu-devel] osx bootloader

2014-01-28 Thread BALATON Zoltan
On Tue, 28 Jan 2014, Gabriel L. Somlo wrote: BTW, when you say "use Apple's EFI bootloader" what do you mean ? Is that some piece of software we'd have to download and build, like Chameleon? Or would TianoCore in theory be capable of doing what the Apple EFI Bios does and load XNU from the hard

[Qemu-devel] osx bootloader

2014-01-28 Thread Gabriel L. Somlo
On Sat, Jan 25, 2014 at 10:08:37AM +0100, Alexander Graf wrote: > > Once I finish trying all versions of OSX against all combinations > > of piix vs. q35 and up vs. smp, I'll give the Chameleon source a > > closer look: ultimately, it would be nice if we had something > > Chameleon-like that could