From owner-freebsd-questions@freebsd.org Mon Jul 30 18:33:49 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 87069105DC6C for ; Mon, 30 Jul 2018 18:33:49 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from msa1.earth.yoonka.com (yoonka.com [88.98.225.149]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "msa1.earth.yoonka.com", Issuer "msa1.earth.yoonka.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 1C31B7F0CB for ; Mon, 30 Jul 2018 18:33:48 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from ultrabook.yoonka.com (x52716320.dyn.telefonica.de [82.113.99.32]) (authenticated bits=0) by msa1.earth.yoonka.com (8.15.2/8.15.2) with ESMTPSA id w6UIXevW020988 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Mon, 30 Jul 2018 18:33:40 GMT (envelope-from list1@gjunka.com) X-Authentication-Warning: msa1.earth.yoonka.com: Host x52716320.dyn.telefonica.de [82.113.99.32] claimed to be ultrabook.yoonka.com Subject: Re: How to debug ZFS boot on UEFI? To: doug@safeport.com Cc: FreeBSD Questions Mailing List References: <4a382c1b-8785-c01b-b8bd-83894883c935@gjunka.com> From: Grzegorz Junka Message-ID: Date: Mon, 30 Jul 2018 18:33:35 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-GB-large X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jul 2018 18:33:49 -0000 On 30/07/2018 01:14, doug wrote: > > > On Sun, 29 Jul 2018, Grzegorz Junka wrote: > >> Hi, >> >> I've followed (more or less) this thread: >> >> http://daemonforums.org/showthread.php?t=10444 >> >> I have two disks nvd0 and nvd1 with three partitions on each: efi, >> freebsd-swap and freebsd-zfs. I've created the ZFS pool and installed >> FreeBSD manually (because on nvd1 I have also a few partitions used >> by Windows). On nvd1p1 I've created the hierarchy of files as >> outlined in the post: >> >> efi/boot/BOOTx64.efi (copied from /boot/boot1.efi >> boot/loader.rc (with the content as outlined in the post) >> >> In UEFI boot menu I can see all partitions (Windows, UEFI shell, UEFI >> USB stick for 11.2, and the one I created). Booting from any >> partition works apart from the one I created - when that partition is >> selected UEFI shows a black screen for a second and then goes back to >> the boot menu. >> >> How can I debug what's wrong? >> >> Thanks >> GrzegorzJ > > Did you try verbose boot? If you get nothing from that as far as I can > tell that means the code in the firmware did not find any thing to > transfer control to. I could never get beyond that point. Thanks for your prompt response. I will try the rest of your advice when I get back to my computer, but in the meantime can you please tell me how to verbose boot? As a side note, when I initially installed FreeBSD using mirror ZFS and guided installation the zdb label ended up on /dev/nvd0 device. When I installed the pool manually from shell it ended up on the /dev/nvd1p3 device. I actually had problem with recognizing the correct pool in the installer until I force-cleared zfs label from nvd0. I would like to try to move the zdb label from nvd1p3 to nvd0 to see if that makes any difference. Could be that the ZFS efi loader doesn't see ZFS properly until it's labelled on the main device rather than on a partition (I don't know much about ZFS labels). Is that possible?