Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MwJRB-0000LU-Ts for mharc-grub-devel@gnu.org; Fri, 09 Oct 2009 13:39:29 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MwJR9-0000If-On for grub-devel@gnu.org; Fri, 09 Oct 2009 13:39:27 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MwJR8-0000HU-RB for grub-devel@gnu.org; Fri, 09 Oct 2009 13:39:27 -0400 Received: from [199.232.76.173] (port=55398 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MwJR8-0000HI-Mp for grub-devel@gnu.org; Fri, 09 Oct 2009 13:39:26 -0400 Received: from fg-out-1718.google.com ([72.14.220.155]:44129) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MwJR8-0007Bm-7Z for grub-devel@gnu.org; Fri, 09 Oct 2009 13:39:26 -0400 Received: by fg-out-1718.google.com with SMTP id e21so368877fga.12 for ; Fri, 09 Oct 2009 10:39:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type:content-transfer-encoding; bh=VgPVFZPPsvo5QDSAxyzzJvuqAa7rP9N67YW9C33icN0=; b=eQcz/soOkSwq6OpY3Vei641nR7vX5L/yHC1bZ3npJ/0HIC0J4HZNM7mzLu2rTKNKJU 88mSVi+B/IX7PmvVIvcavxBA3isdwEP6WC/SKnqShGNO8WIv1An29ntX09xc0mY0rACI xXIXqXnw8o0KIIgVCSgh1UreEQg6vHOu0HWUA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=Hz4M6IOI+feQnT0pKhY5Tf7u2hrGxbhZVRgXRGceQ0G8Y+MQ0doVwq0CM0lDQYDHnx YV5DZfddJkm/6bYlsTAHhSDjEH7PRPFDv2DJjLcXegJalqNBA809vfZeYuUmXum1EK2n GdABdUZ2NwIFKDFAJ9GOmhuQCcT9lJbKwzCsg= MIME-Version: 1.0 Sender: hramrach@gmail.com Received: by 10.86.254.17 with SMTP id b17mr2656535fgi.65.1255109965151; Fri, 09 Oct 2009 10:39:25 -0700 (PDT) In-Reply-To: <48f46e890910012219p532d62c5j76639080867e72de@mail.gmail.com> References: <48f46e890910012219p532d62c5j76639080867e72de@mail.gmail.com> Date: Fri, 9 Oct 2009 19:39:25 +0200 X-Google-Sender-Auth: a9ea89b65e214076 Message-ID: From: Michal Suchanek To: The development of GRUB 2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: Creating an (Apple) EFI bootable media X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Oct 2009 17:39:28 -0000 2009/10/2 Peter Cros : > OSX bless works for me with grub.efi in any hfsplus partition using the f= orm > =C2=A0 bless --folder /xyz=C2=A0 --file /xyz/grub/grub.efi > (if the file paths are correct - I use GUI and drag the file icon onto a > terminal commandline) > > However it is not always necessary to bless. On Apple Mac, the UEFI spec > will boot *.efi=C2=A0 without needing to be blessed, and without refit, i= f it > fits the naming convention in the UEFI spec. So a simple bootable package > can be built. > > http://www.uefi.org/specs/ - > =C2=A0EFI System Partition Subdirectory Registry > =C2=A0UEFI Specification Version 2.3 > =C2=A03.4.1.1 Removable Media Boot Behavior - Table 9. UEFI Image Types > > If grub.efi is renamed to bootx64.efi or bootia32.efi and placed in fat32= or > hfsplus tree /efi/boot, it will then be shown on the restart with Optiion > key. > > However to get an automatic default boot, probably requires the bless for= m > with the --setBoot option. > > For Apple Mac with 64 bit EFI - > =C2=A0pxw@im:~/test$ tree efi > =C2=A0efi > =C2=A0`-- boot > =C2=A0=C2=A0=C2=A0=C2=A0 |-- bootx64.efi > =C2=A0=C2=A0=C2=A0=C2=A0 |-- bootx64.icns > =C2=A0=C2=A0=C2=A0=C2=A0 `-- grub.cfg > This works nicely for me. The steps are: 1) build grub for efi 32bit a efi 64bit 2) use mkimage to add all modules (except kernel) to grub.efi 3) format a fat32/mbr flash disk 3) copy the appropriate .efi images to the directory structure as above 4) create a grub.cfg and remember to include a font if needed Now the plug the flash disk into a mac and start/restart it while holding ALT. The boot menu welcomes you with a EFI boot option even before it finds the OS X boot options ;-) Thanks Michal