From owner-freebsd-current@freebsd.org Wed Aug 21 19:23:05 2019 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0D721D1299 for ; Wed, 21 Aug 2019 19:23:05 +0000 (UTC) (envelope-from ohartmann@walstatt.org) Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46DHcl4nyYz4MwX for ; Wed, 21 Aug 2019 19:23:03 +0000 (UTC) (envelope-from ohartmann@walstatt.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1566415369; bh=4IjjeesNKskayE+AukUmev9M4uIif7yp5A5K+rTx/qc=; h=X-UI-Sender-Class:Date:From:To:Subject; b=etoSxwuDjwOMZM591bjm/2oXXLshdvni8Kv6jRTsfO95K6L37/cOEa+j5Nk5L9x93 4UsQ9R35e59m1bG5+mJyfmGhdXJvwESSKp9gtyKrPV9U134GWbUS3+m5p/ldYvKeNq Ct+gfXBQULTeqj348Iy7P/imMHL5es3x14SXK1yE= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from freyja ([46.88.81.15]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LmeGF-1ia1q60vND-00aD8M for ; Wed, 21 Aug 2019 14:52:49 +0200 Date: Wed, 21 Aug 2019 14:52:40 +0200 From: "O. Hartmann" To: freebsd-current Subject: HELP: UEFI/ZFS Boot failure: Ignoring Boot000A: Only one DP found Message-ID: <20190821145234.6fe455b4@freyja> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03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yG/cj0+aS2RUYkLxmwwgn NYtuyU6lqx77jucnxviJwWsY6uz+7tZIv069LtjKrVRs5T6Cq0JlTQ95Ptc3K4RNPwCg5neEf dgkiaU33pMvFcq7EPW6i1GLDZdyLyunuG3Svt2obaO7Z5X9lIVkPHDA055OHnI+uHwz0MgIAO Wi55T5I/0vrQw0QLhlGDJUMnZsgjVEvBa1xtoh2KrUx7Cp66ACK1fofHedWmptfZTWnHLjp8C jQrbAgKqWfKS+fUlNbn20mwj5R4d2ElZhtmDrDWYB4VJWJG7ZPcqhAaMCOSMtJznuGifouAtD Fbt+yIBzGVeyOpFVkNuKNcc/nBc0FlpuN2a4BLf5nmXgAZ5aXrCjAnRx37B8ei3FilEtUIi/C 1Ci/A= X-Rspamd-Queue-Id: 46DHcl4nyYz4MwX X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmx.net header.s=badeba3b8450 header.b=etoSxwuD; dmarc=none; spf=none (mx1.freebsd.org: domain of ohartmann@walstatt.org has no SPF policy when checking 212.227.17.21) smtp.mailfrom=ohartmann@walstatt.org X-Spamd-Result: default: False [-4.13 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[gmx.net:s=badeba3b8450]; RECEIVED_SPAMHAUS_PBL(0.00)[15.81.88.46.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; DMARC_NA(0.00)[walstatt.org]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(-1.25)[ip: (-7.13), ipnet: 212.227.0.0/16(-1.36), asn: 8560(2.23), country: DE(-0.01)]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmx.net:+]; NEURAL_HAM_SHORT(-0.97)[-0.974,0]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_SPF_NA(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[21.17.227.212.list.dnswl.org : 127.0.3.1]; FROM_EQ_ENVFROM(0.00)[]; MID_RHS_NOT_FQDN(0.50)[]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Aug 2019 19:23:05 -0000 I ran into serious trouble booting several boxes off UEFI. On modern hardware, the ESP is around 200 - 300 MB in size and usually I install /efi/freebsd/loader.efi, loader.efi taken from /boot/loader.efi. On some older hardware, specifically on a Lenovo E540 with latest available firmware (2.28), which uses 12-STABLE and a ZFS-only installation, there seems no working loader anymore! The installation of the Laptop has been performed using 12.0-PRERELEASE on an Samsung EVO 860 500GB SSD. The ESP is 200M in size and contained /efi/boot/BOOTx64.efi and /efi/boot/startup.nsh. The ESP has been destroyed by accident. Now I tried to solve the problem by installing a new ESP and the proper loader, assuming that /boot/loader.efi (taken from a FreeBSD-13-CURRENT or from 12-STABLE of the same revision and sompiled on the same platform (Intel Haswell) as the lost laptop's revison of the OS is at. But I fail doing so. Somehow Lenovo's firmware is setting up a lot of UEFI boot numbers as provided via "efibootmgr -b 000X", X some Hex numer. -b 000A is usually denoted/labeld with "ATA HDD0". Installing the proper boot/loader.efi loader file from 12-STABLE (r351108) and setting the EFI variable according the following steps: mount -t msdosfs /dev/ada0p1 /mnt (ESP is on GPT partition 1, 0p2 is zroot) Install then loader.efi either as BOOTx64.efi or loader.efi under /mnt/efi/boot/ or /mnt/efi/freebsd/ and then set the boot environment accordingly via delete 000A first: efibootmgr -B -b 000A create the new efi boot var: efibootmgr -a -b 000A -c -l /mnt/efi/{freebsd|boot}/{loader.efi|BOOTx64.efi} -L FreeBSD The result is a non booting system, the Lenovo firmware jumps immediately into the menu for selecting a proper boot media. The same happens with /boot/boot1.efi installed as loader.efi or BOOTx64.efi shown above. In case I just brute-force flash the ESP with /boot/boot1.efifat, dd if=boot1.efifat of=/dev/ada0p1 (ESP) (taken from the propper 12-STABLE system I spoeke of above), then booting fails again, but this time with an error I watch on so many boxes recently: [...] Ignoring Boot000a: Only one DP found Trying ZFS pool Setting currdev to zfs:zroot/ROOT/default: Then the console freezes at that point and only RESET or POWER OFF is capable of a revive. What is wrong here? What am I missing? Thanks in advance, oh