From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60010) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8W0b-0002tP-QF for qemu-devel@nongnu.org; Wed, 29 Jan 2014 09:20:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W8W0V-0006Wt-Po for qemu-devel@nongnu.org; Wed, 29 Jan 2014 09:20:53 -0500 Received: from cantor2.suse.de ([195.135.220.15]:35320 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8W0V-0006Wk-HW for qemu-devel@nongnu.org; Wed, 29 Jan 2014 09:20:47 -0500 Message-ID: <52E90E3C.2000906@suse.de> Date: Wed, 29 Jan 2014 15:20:44 +0100 From: Alexander Graf MIME-Version: 1.0 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> <20140129030736.GA23361@crash.ini.cmu.edu> In-Reply-To: <20140129030736.GA23361@crash.ini.cmu.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] osx bootloader List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Gabriel L. Somlo" Cc: "qemu-devel@nongnu.org" 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://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). It's even better than that. The "boot.efi" is part of the installation meda as well, so we wouldn't have to rely on _any_ external code at all :). Alex