From owner-freebsd-arch@freebsd.org Sun Mar 3 14:26:43 2019 Return-Path: Delivered-To: freebsd-arch@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 984D4150C46F; Sun, 3 Mar 2019 14:26:43 +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 C61A886B90; Sun, 3 Mar 2019 14:26:42 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from crayon2.yoonka.com (crayon2.yoonka.com [10.70.7.20]) (authenticated bits=0) by msa1.earth.yoonka.com (8.15.2/8.15.2) with ESMTPSA id x23EQeP9083735 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Sun, 3 Mar 2019 14:26:40 GMT (envelope-from list1@gjunka.com) To: FreeBSD Questions Mailing List , freebsd-arch@freebsd.org From: Grzegorz Junka Subject: Failed to load '/boot/loader.efi' Message-ID: Date: Sun, 3 Mar 2019 14:26:40 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.3.2 MIME-Version: 1.0 Content-Language: en-GB-large X-Rspamd-Queue-Id: C61A886B90 X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of list1@gjunka.com designates 88.98.225.149 as permitted sender) smtp.mailfrom=list1@gjunka.com X-Spamd-Result: default: False [-5.98 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:88.98.225.149]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; DMARC_NA(0.00)[gjunka.com]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; IP_SCORE(-3.64)[ip: (-9.53), ipnet: 88.98.192.0/18(-4.77), asn: 56478(-3.81), country: GB(-0.09)]; MX_GOOD(-0.01)[cached: gjunka.com]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.02)[-0.025,0]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; ASN(0.00)[asn:56478, ipnet:88.98.192.0/18, country:GB]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Mar 2019 14:26:43 -0000 Hello, I am trying to configure UEFI loader to boot FreeBSD 12. The UEFI shell prints the following: >> FreeBSD EFI boot block   Loader path: /boot/loader.efi Initializing modules: ZFS UFS   Load Path: \efi\boot\BOOTx64.efi   Load Device: PciRoot(0x0)/Pci(0x1,0x3)/Pci(0x0,0x2)/Pci(0x4,0x0)/Pci(0x0,0x0)/NVMe(0x1,8D-7F-B1-71-55-38-25-00)/HD(1,GPT,F4EC62C3-B000-4A60-AAA6-7079751A497D,0x800,0x64000)   BootCurrent: 0003   BootOrder: 0000 0005 0006 0003[*]   Probing 12 block devices......+...*.... done     ZFS found the following pools: tank7     UFS found no partitions Failed to load '/boot/loader.efi' panic: No bootable partions found! I can import the ZFS pool fine when booting a memstick livefs. Why loader.efi isn't importing it? efibootmgr -v gives the following BootCurrent: 0005 Timeout : 5 seconds. BootOrder: 0000, 0005, 0006, 0003   Boot0* Windows Boot Manager HD(5,GPT,5804e565-b8f6-4f47-9314-9eb4cfb79697,0x1d55e000,0x32000)/File(\EFI\MICROSOFT\BOOT\BOOTMGFW.EFI) nvd1p5:/EFI/MICROSOFT/BOOT/BOOTMGFW.EFI (null) * Boot5* UEFI OS HD(1,GPT,f4ec62c3-b000-4a60-aaa6-7079751a497d,0x800,0x64000)/File(\EFI\BOOT\BOOTX64.EFI) nvd1p1:/EFI/BOOT/BOOTX64.EFI (null)   Boot6* Hard Drive BBS(HD,,0x0)   Boot3 UEFI: Built-in EFI Shell VenMedia(5023b95c-db26-429b-a648-bd47664c8012) I've manually created /EFI/BOOT/BOOTx64.EFI by copying /boot/boot1.efi from the livefs. The content of /EFI is just one file: EFI/Boot/bootx64.efi Can I somehow install the /boot/boot1.efifat manually to try to make it working? I am installing FreeBSD 12 by partitioning disk manually so bsdsysinstall doesn't run, and it seems there were some changes around the EFI partition recently, e.g. support for /efi/freebsd/loader.efi. Thanks GrzegorzJ P.S. Sorry for cross-post. I sent this question yesterday but it hasn't been posted to the group for some reason, so now resending and including another one to test. From owner-freebsd-arch@freebsd.org Sun Mar 3 21:36:19 2019 Return-Path: Delivered-To: freebsd-arch@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 14EC4151CE6F for ; Sun, 3 Mar 2019 21:36:19 +0000 (UTC) (envelope-from zeising@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id A18E46E65F for ; Sun, 3 Mar 2019 21:36:18 +0000 (UTC) (envelope-from zeising@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 64A43151CDF9; Sun, 3 Mar 2019 21:36:18 +0000 (UTC) Delivered-To: arch@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 524CA151CDE5; Sun, 3 Mar 2019 21:36:18 +0000 (UTC) (envelope-from zeising@freebsd.org) Received: from mail.daemonic.se (mail.daemonic.se [176.58.89.161]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D7AD36E655; Sun, 3 Mar 2019 21:36:17 +0000 (UTC) (envelope-from zeising@freebsd.org) Received: from cid.daemonic.se (localhost [IPv6:::1]) by mail.daemonic.se (Postfix) with ESMTP id 44CGgG2pMbzDjby; Sun, 3 Mar 2019 21:36:10 +0000 (UTC) X-Virus-Scanned: amavisd-new at daemonic.se Received: from mail.daemonic.se ([127.0.0.1]) (using TLS with cipher ECDHE-RSA-AES128-GCM-SHA256) by cid.daemonic.se (mailscanner.daemonic.se [127.0.0.1]) (amavisd-new, port 10587) with ESMTPS id L9qbe2V_OI_C; Sun, 3 Mar 2019 21:36:09 +0000 (UTC) Received: from garnet.daemonic.se (unknown [IPv6:2001:470:dca9:201:3446:dea4:cf1d:dd84]) by mail.daemonic.se (Postfix) with ESMTPSA id 44CGgF0LX9zDjZ9; Sun, 3 Mar 2019 21:36:08 +0000 (UTC) Subject: Re: DRM removal soon To: Justin Hibbits , John Baldwin Cc: FreeBSD X11 mailing list , Yoshihiro Ota , "freebsd-arch@freebsd.org" , sgk@troutmask.apl.washington.edu, greg@unrelenting.technology References: <20190228194929.GA18747@troutmask.apl.washington.edu> <201902282034.x1SKYWMi006337@slippy.cwsent.com> <20190228210635.GA31257@troutmask.apl.washington.edu> <4f374050-6ae2-1d39-f148-a4e588838f8d@FreeBSD.org> <20190228161524.1449770b@titan.knownspace> From: Niclas Zeising Message-ID: Date: Sun, 3 Mar 2019 22:36:08 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <20190228161524.1449770b@titan.knownspace> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: D7AD36E655 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.97 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.97)[-0.973,0]; ASN(0.00)[asn:36236, ipnet:176.58.89.0/24, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Mar 2019 21:36:19 -0000 On 2/28/19 11:15 PM, Justin Hibbits wrote: > > tl;dr: More than i386 is impacted by drm-legacy-kmod, and I'm sure > everybody wants to get off the legacy kmod to ease the load on the > graphics team, but it will take work by the interested parties to make > this happen. > [Picking a mail in the thread] Hi! There is currently no plans to deprecate and remove drm-legacy-kmod. While most of our efforts go to the new drm drivers, we try our best to keep drm-legacy-kmod running. As always, this is a volunteer effort, with less resources than desired, so patches and help to improve drm-legacy-kmod are most welocme. Regards -- Niclas Zeising FreeBSD Graphics Team From owner-freebsd-arch@freebsd.org Mon Mar 4 06:28:09 2019 Return-Path: Delivered-To: freebsd-arch@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 E16DE1504C50; Mon, 4 Mar 2019 06:28:09 +0000 (UTC) (envelope-from rebecca@bluestop.org) Received: from muon.bluestop.org (muon.bluestop.org [96.73.9.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4DE9689766; Mon, 4 Mar 2019 06:28:08 +0000 (UTC) (envelope-from rebecca@bluestop.org) Received: from muon.bluestop.org (localhost [127.0.0.1]) by muon.bluestop.org (Postfix) with ESMTP id 6AAAE78BCA; Sun, 3 Mar 2019 23:29:05 -0700 (MST) Received: from muon.bluestop.org ([127.0.0.1]) by muon.bluestop.org (muon.bluestop.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id s1U-xMxKGSNI; Sun, 3 Mar 2019 23:29:05 -0700 (MST) Received: from macbex.local (gw.bluestop.org [96.73.9.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by muon.bluestop.org (Postfix) with ESMTPSA; Sun, 3 Mar 2019 23:29:04 -0700 (MST) Subject: Re: Failed to load '/boot/loader.efi' To: Grzegorz Junka , FreeBSD Questions Mailing List , freebsd-arch@freebsd.org References: From: Rebecca Cran Message-ID: <1f72fea3-b2d5-ca8b-3011-ab1689db8bff@bluestop.org> Date: Sun, 3 Mar 2019 23:27:59 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Rspamd-Queue-Id: 4DE9689766 X-Spamd-Bar: ------ X-Spamd-Result: default: False [-6.86 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[bluestop.org:s=mail]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(-2.94)[ip: (-9.75), ipnet: 96.64.0.0/11(-4.29), asn: 7922(-0.57), country: US(-0.07)]; TO_DN_SOME(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[bluestop.org:+]; DMARC_POLICY_ALLOW(-0.50)[bluestop.org,quarantine]; MX_GOOD(-0.01)[mail.bluestop.org]; NEURAL_HAM_SHORT(-0.91)[-0.913,0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:7922, ipnet:96.64.0.0/11, country:US]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Mar 2019 06:28:10 -0000 On 3/3/19 7:26 AM, Grzegorz Junka wrote: > > > Can I somehow install the /boot/boot1.efifat manually to try to make > it working? I am installing FreeBSD 12 by partitioning disk manually > so bsdsysinstall doesn't run, and it seems there were some changes > around the EFI partition recently, e.g. support for > /efi/freebsd/loader.efi. Can you try copying /boot/loader.efi into /mnt/efi/freebsd/loader.efi (after mounting the ESP on /mnt with e.g. `mount_msdosfs /dev/ada0p1 /mnt`) and run the following command to set up the UEFI boot entry: efibootmgr -c -a -L FreeBSD -l /mnt/efi/freebsd/loader.efi Then, reboot and bring up the BIOS boot selection menu (often F8, or sometimes F11) and select the FreeBSD entry. -- Rebecca Cran From owner-freebsd-arch@freebsd.org Mon Mar 4 20:49:18 2019 Return-Path: Delivered-To: freebsd-arch@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 11D30152269A for ; Mon, 4 Mar 2019 20:49:18 +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 E3FA7872A4 for ; Mon, 4 Mar 2019 20:49:16 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from crayon2.yoonka.com (crayon2.yoonka.com [10.70.7.20]) (authenticated bits=0) by msa1.earth.yoonka.com (8.15.2/8.15.2) with ESMTPSA id x24Kn8lD012419 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Mon, 4 Mar 2019 20:49:09 GMT (envelope-from list1@gjunka.com) Subject: Re: Failed to load '/boot/loader.efi' To: freebsd-arch@freebsd.org References: <1f72fea3-b2d5-ca8b-3011-ab1689db8bff@bluestop.org> From: Grzegorz Junka Message-ID: <60cc21b0-88ce-b08c-3f33-b6675c525612@gjunka.com> Date: Mon, 4 Mar 2019 20:49:08 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.3.2 MIME-Version: 1.0 In-Reply-To: <1f72fea3-b2d5-ca8b-3011-ab1689db8bff@bluestop.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-GB-large X-Rspamd-Queue-Id: E3FA7872A4 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of list1@gjunka.com designates 88.98.225.149 as permitted sender) smtp.mailfrom=list1@gjunka.com X-Spamd-Result: default: False [-6.54 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:88.98.225.149]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arch@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; DMARC_NA(0.00)[gjunka.com]; MX_GOOD(-0.01)[gjunka.com]; NEURAL_HAM_SHORT(-0.59)[-0.588,0]; IP_SCORE(-3.64)[ip: (-9.53), ipnet: 88.98.192.0/18(-4.77), asn: 56478(-3.81), country: GB(-0.09)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:56478, ipnet:88.98.192.0/18, country:GB]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Mar 2019 20:49:18 -0000 On 04/03/2019 06:27, Rebecca Cran via freebsd-arch wrote: > On 3/3/19 7:26 AM, Grzegorz Junka wrote: > >> >> >> Can I somehow install the /boot/boot1.efifat manually to try to make >> it working? I am installing FreeBSD 12 by partitioning disk manually >> so bsdsysinstall doesn't run, and it seems there were some changes >> around the EFI partition recently, e.g. support for >> /efi/freebsd/loader.efi. > > > Can you try copying /boot/loader.efi into /mnt/efi/freebsd/loader.efi > (after mounting the ESP on /mnt with e.g. `mount_msdosfs /dev/ada0p1 > /mnt`) and run the following command to set up the UEFI boot entry: > > > efibootmgr -c -a -L FreeBSD -l /mnt/efi/freebsd/loader.efi > > Then, reboot and bring up the BIOS boot selection menu (often F8, or > sometimes F11) and select the FreeBSD entry. > > Hi Rebecca, Thank you for your quick response. With your entry the booting behaves exactly the same as with the previous entry. But I solved the problem thanks to a response from Emrion on the forum. The issue was that the bootfs wasn't setup (I used bsdsysinstall to install FreeBSD but had to partition by hand due to other partitions being present on the disk - and so the script skipped any bootstrapping setup). So after zpool set bootfs=tank7/ROOT/default tank7 the system now boots correctly (with either UEFI boot entry).