Received: from eggs.gnu.org ([2001:4830:134:3::10]:33249) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8FT0-0006kq-2w for qemu-devel@nongnu.org; Tue, 28 Jan 2014 15:41:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W8FSr-0000Bw-7N for qemu-devel@nongnu.org; Tue, 28 Jan 2014 15:41:06 -0500 Received: from mail-qa0-x22d.google.com ([2607:f8b0:400d:c00::22d]:51128) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8FSr-0000Bs-2v for qemu-devel@nongnu.org; Tue, 28 Jan 2014 15:40:57 -0500 Received: by mail-qa0-f45.google.com with SMTP id ii20so1204267qab.4 for ; Tue, 28 Jan 2014 12:40:56 -0800 (PST) Date: Tue, 28 Jan 2014 15:40:24 -0500 From: "Gabriel L. Somlo" Message-ID: <20140128204023.GC29329@ERROL.INI.CMU.EDU> References: <52DE4CDC.4070501@redhat.com> <20140121110202.GA22693@redhat.com> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6FAEE645-799D-4535-B568-75AB5E4D206C@suse.de> Subject: [Qemu-devel] osx bootloader List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf Cc: "qemu-devel@nongnu.org" 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 be built on Linux (get OSX+Xcode out of > > the equation). Maybe getting the interesting bits submitted as patches > > against SeaBIOS and QEMU, wherever appropriate. > > I disagree. Eventually we want to run TianoCore and just use Apple's EFI bootloader. With that we should be a lot more future proof. Long term, I'm with you. For now though, I'd like to know how Chameleon does what it does on the inside. I'd also like to be able to build a minimal subset needed to get QEMU to load XNU on Linux, and eliminate the requirement to "do stuff on OS X with Xcode". 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 drive image directly, and there's some default bootloader placed there by the OS X installer, kinda like grub in the Linux world ? If the latter, I think understanding how Chameleon does that part would come in handy (for me at least, since I don't have a good mental map on how things work before the XNU kernel starts running). Thanks, --Gabriel