Date: Sun, 29 Jul 2018 21:14:09 -0400 (EDT) From: doug <doug@fledge.watson.org> To: Grzegorz Junka <list1@gjunka.com> Cc: FreeBSD Questions Mailing List <freebsd-questions@freebsd.org> Subject: Re: How to debug ZFS boot on UEFI? Message-ID: <alpine.BSF.2.20.1807292045570.77637@fledge.watson.org> In-Reply-To: <4a382c1b-8785-c01b-b8bd-83894883c935@gjunka.com> References: <4a382c1b-8785-c01b-b8bd-83894883c935@gjunka.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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. When I was trying to do this on an HP. I followed Warren Block's script on doing this with gpart and shell commands. The script: http://www.wonkity.com/~wblock/docs/html/disksetup.html#_booting_with_uefi gives a clear definition of what the disk layout should be and what the contents of the EFI partition should be. Checking that against what you have would be a good first step. I did a dual boot on my laptop following this script: http://kev009.com/wp/2016/07/freebsd-uefi-root-on-zfs-and-windows-dual-boot/ I never got FreeBSD to boot on the laptop without using refind. If you do a windows install of refind that is the first thing invoked. That might solve your problem. For me it just worked after I finally got all the pieces in place I know this did not answer your question, if this get a response from any UEFI experts, look forward to that, the best I can do is to share my experience.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.20.1807292045570.77637>