From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58835) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8LVF-0005rr-He for qemu-devel@nongnu.org; Tue, 28 Jan 2014 22:07:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W8LVA-0001gn-5L for qemu-devel@nongnu.org; Tue, 28 Jan 2014 22:07:49 -0500 Received: from mail-qa0-x22b.google.com ([2607:f8b0:400d:c00::22b]:63037) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8LVA-0001gZ-1V for qemu-devel@nongnu.org; Tue, 28 Jan 2014 22:07:44 -0500 Received: by mail-qa0-f43.google.com with SMTP id o15so1706608qap.2 for ; Tue, 28 Jan 2014 19:07:43 -0800 (PST) Date: Tue, 28 Jan 2014 22:07:37 -0500 From: "Gabriel L. Somlo" Message-ID: <20140129030736.GA23361@crash.ini.cmu.edu> References: <52DE5471.5090901@redhat.com> <20140121114454.GC22693@redhat.com> <20140121181101.GB1323@ERROL.INI.CMU.EDU> <20140121183851.GA26382@redhat.com> <20140124164608.GB1293@ERROL.INI.CMU.EDU> <20140125000945.GA10357@crash.ini.cmu.edu> <6FAEE645-799D-4535-B568-75AB5E4D206C@suse.de> <20140128204023.GC29329@ERROL.INI.CMU.EDU> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] osx bootloader List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: BALATON Zoltan Cc: Alexander Graf , "qemu-devel@nongnu.org" 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.deboynepollard/FGA/efi-boot-process.html#Apple > http://developer.apple.com./mac/library/DOCUMENTATION/Darwin/References/ManPages/man8/bless.8.html So, basically, every well-behaved OS will drop a (set of) files somewhere under /EFI//, except for OS X which expects the BIOS/firmware to bypass all that mundane stuff and go straight for /System/Library/CoreServices/boot.efi on a the selected boot partition, and only fall back to /EFI/* if that doesn't pan out :) 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 which I think is what Alex was talking about (i.e., eventually getting TianoCore to pick up and run "boot.efi" as left behind by the vanilla OS X installer). Thanks again for the helpful links !!! --Gabriel