From owner-freebsd-hackers@freebsd.org Sun Jun 28 05:39:28 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B2A1898EFE9 for ; Sun, 28 Jun 2015 05:39:28 +0000 (UTC) (envelope-from f0andrey@gmail.com) Received: from mail-wi0-x22b.google.com (mail-wi0-x22b.google.com [IPv6:2a00:1450:400c:c05::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DC631F2E for ; Sun, 28 Jun 2015 05:39:28 +0000 (UTC) (envelope-from f0andrey@gmail.com) Received: by wiga1 with SMTP id a1so46070832wig.0 for ; Sat, 27 Jun 2015 22:39:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=PmyM6JZVzH+s76+CzEQ0SW7CZAUqMa42eGBOF+yaixo=; b=XE3l/zqen9j6tWMphjLYBZPeJmbVetNv/tI9h941Gz+29frvOZ2brrMLWR+JsrdnSh Gcmb8E5RtaV75c2xQvWjUeoNeGtnVNlMeE9NBNvVoCpm6Zj/6QbjSZd+Vq/D0SPg0Yqd FBurhI80r7jzywKRkS4W1Fq2vYHHDZI/Du5LmIdWdb+DlOKazFz3QrMaL+hlfPAs71BD plQHOytvRikrDpZ2TAo6B4c0XuEal/IK1bI3rd6aMVP2VYGGASTq1Ls/zBEm1e9iXfeP tXtj/55aZLpZ27JBs50Jvo8T72CfXex6DPVnI1U2+zrjHa/mK/r3NG8GACGrx9ZJMKEL onpQ== MIME-Version: 1.0 X-Received: by 10.180.89.231 with SMTP id br7mr11124343wib.60.1435469965687; Sat, 27 Jun 2015 22:39:25 -0700 (PDT) Received: by 10.194.64.102 with HTTP; Sat, 27 Jun 2015 22:39:25 -0700 (PDT) In-Reply-To: <55761E58.6040704@metricspace.net> References: <5560F4FE.4030502@metricspace.net> <5560F743.9000507@metricspace.net> <7CD9D028-8BCE-4361-966B-140642BAE341@metricspace.net> <98598C0A-D09A-4BC7-A15C-5422BBA2EE4C@gmail.com> <55761E58.6040704@metricspace.net> Date: Sun, 28 Jun 2015 08:39:25 +0300 Message-ID: Subject: Re: EFI ZFS loader successful load and boot From: Andrey Fesenko To: Eric McCorkle Cc: "freebsd-hackers@freebsd.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Jun 2015 05:39:28 -0000 On Tue, Jun 9, 2015 at 1:59 AM, Eric McCorkle wrote: > OK, finally got time to turn the knobs. This patch should make it > through a buildworld. > > I will at some point add functionality to boot1 to actually check the > partition type GUIDs. > > That aside, this is ready for testing, and I've been EFI-booting a ZFS > partition from GRUB using this patch for a while now. > > On 05/26/2015 10:22 AM, Garrett Cooper wrote: >> >>> On May 26, 2015, at 05:34, Eric McCorkle wrote: >>> >>> Updates: with a new kernel, and the vt terminal, this works fine. >>> >>> Unfortunately, the patch doesn't seem to work with a buildworld build (= I was doing make from within the directories). This is related to a hack I = do of copying zfs.c into the efi loader directory so it can be built with f= PIC. The build system seems to get tripped up in mkdep as a result. >>> >>> Could someone with more knowledge of the build system give me some poin= ters here? Otherwise, is all set for testing. >> >> DPSRCS/CLEANFILES are probably the knobs you're looking for... Hello, Can you describe in more detail the procedure for the use of a new boot loader, how to partition and what files where you want to record? Until I got here the results link to screenshots: http://f-andrey.tumblr.com/post/122566594208/freebsd-uefi-zfs Unable to load the kernel, i'm make simple gpart structure GPT efi part <- write /boot/loader.efi as efi/boot/bootx64.efi ZFS root pool