From owner-freebsd-current@freebsd.org Mon Aug 26 11:47:31 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 3398FD8B67 for ; Mon, 26 Aug 2019 11:47:31 +0000 (UTC) (envelope-from ohartmann@walstatt.org) Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) (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 46H9Gp0XLYz4HpJ for ; Mon, 26 Aug 2019 11:47:29 +0000 (UTC) (envelope-from ohartmann@walstatt.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1566820041; bh=NqbWNHP7sYBNabCmyhXFqSSqgIq5xhiogu4G5QVumiY=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject:In-Reply-To:References; b=Ppt+6UUWxSf4XPxrB1SVUT9TWa3u8NYYoVwiC7gdrAsE4mOGQmO7DMxurq4meD1Zu J7vEdxmHlERlz9fz0uuCCjDzYphQxL4WAxNCsnNM2emKSHI0hSbyGu0ARBzF9lSbZN u8GgqFFJn6j/vQf0Cxi03K7kLYwdyHwgfVpB4JdY= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from freyja ([46.88.81.15]) by mail.gmx.com (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MPogF-1ho8ZX1519-00MwMC; Mon, 26 Aug 2019 13:22:16 +0200 Date: Mon, 26 Aug 2019 13:22:07 +0200 From: "O. Hartmann" To: Toomas Soome Cc: greg@unrelenting.technology, "O. Hartmann" , Karl Denninger , freebsd-current@freebsd.org, Warner Losh Subject: Re: HELP: UEFI/ZFS Boot failure: Ignoring Boot000A: Only one DP found Message-ID: <20190826132150.6f748419@freyja> In-Reply-To: <12E83654-1104-408E-9A1E-BE79308B9A92@me.com> References: <20190821232334.433d285c@thor.intern.walstatt.dynvpn.de> <20190821195847.577a165b@thor.intern.walstatt.dynvpn.de> <48D9A1D1-5A54-4FED-8DC8-40C9A5C9BE3A@me.com> <20190821213052.25d61cb4@thor.intern.walstatt.dynvpn.de> <480F8DE0-A38F-4BCA-9F36-0D812CDB7DD8@me.com> <20190821223140.643f6c63@thor.intern.walstatt.dynvpn.de> <483d59b24a636d0214555610350b8d73@unrelenting.technology> <20190822050509.64c88a51@thor.intern.walstatt.dynvpn.de> <12E83654-1104-408E-9A1E-BE79308B9A92@me.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:HOjqF+/LxdYVUQgk0fmoM4gMZ/3PILwFcUEnEeIDj+MegwI8IkU UJozwVmYkjEdaVpQpUJKazFKPThVF0cnHLlJMJ2BOn3dVD1adwuXJ3dQ+WHXw330rh5rJfy j4YAuQytNetS3d6qrRD8u9PugtpAic1RnwcanenTsyLguv72ZsayJgo4hfv6m86iFB2us1J OQ5Xs936kVQREkkHyxqTQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:Lt8RW3dNnS8=:iugJhGJjT9wN9PTO7Ad9OG TD4HqyfJwUTTeab7okZScz8JWWGWp36r/widEMiEhfGEb4fz33u/poNlEBgBQlybqnFbeqBtf EF4CGeaWG06Z+H2jeeMQ4OZ8bFvc1XGBWihzbsYX9nj6z63vy7yQYhLUhNfsDX9ASIVJ/T19c WolLIilZmYBgpwuWFzXSoOqWOQpZnjX6xoJKA2YcbdguF+lnprW4N0mkkAi5aaoXONjpD55ON pQrfv/ANSJva9LRX+BN9oae3Yri6WhYy2CMcn0cp6hz6AD71EZ8TLuZgpbauDXe41aSzOOtJN ZzKqi+wwgY54xKWXXD7KQEEl1/HUd8lIgYOlLa13JComHmofj8WwEtki4w/KcwpeIA1FGxSoD 8tBioN5DOOS844PyvlmWlYWdOzB8VfIlQOGWFla2tXdIJpnHRI9IBmaiR1F7nLbKFx8CXa8wB 2K4RTYewAnyW/TMGt5s38hDBAiSwawhD57PFR3i/Sb1EwgZN7suDeL7IbvHzo7oma7KFvmhuk 90Qs9er9X2hToI1ghVbAW20D6m/zeTSZFykMOq3fuyFAsb865ipoif3UnPC9IDf29D7I3yOkB Lh6amDRaPUFAxslzUnSZ2ZHXKiMLXY6g4Lt77TT48OZChmVoE154gCzlpgOCfRkD9MCtqb3Gj dANUJxzB6J8J4RXd5ssQGsvkZd3CHpQGGQimv3ig7bEKt2ciWS3t08Ys+JDgGPPC5vAJIO2w5 wDHVCTzac5kQa3Xsf+//8F6WyGa7x8g24z7rIlkBn/5/D9JjVa0NB6cW3j6w9zegeQqVN+uF8 QSJxbncOcNmJuwREaCe32dbNiVfhHwyrDI8YI3vA/7l0cLbiANo/8R0ZfsYKYqP/tsFDn0h16 fWxT4CQmvlt9xxBZd8baD5GupJo+AwtIqNosQ8E14NMpV3nsAlprvjDEU9MxZPM9uCmwZniJZ 08LBrv69i3liwG6JTwFo3F7Izr5CeukAw4zaQvX51HIh+ANV8xEBJ3K2q+8uRYKv0WS8bK56w WjeY/jqUpUC+BTvc5Cf9cv7caRhpLy6wv6FLR4yGDlhbcWJlOrjzz3PccToaDXDs3K4KqmBNH 60HO7eMpDAVY3TEHT8PeXb22R9ykU6TiRYFj88HQ5jMQdJELCno1W9RaO9FkmZ7gG+idax9YG dLkUPIfwrw+3iDO6NndFQbkexg7UYfQP/Akii3vLbDFMhz6g== X-Rspamd-Queue-Id: 46H9Gp0XLYz4HpJ X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmx.net header.s=badeba3b8450 header.b=Ppt+6UUW; dmarc=none; spf=none (mx1.freebsd.org: domain of ohartmann@walstatt.org has no SPF policy when checking 212.227.17.20) smtp.mailfrom=ohartmann@walstatt.org X-Spamd-Result: default: False [-3.98 / 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_DN_SOME(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; IP_SCORE(-1.11)[ip: (-6.38), ipnet: 212.227.0.0/16(-1.38), asn: 8560(2.20), country: DE(-0.01)]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[walstatt.org]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCPT_COUNT_FIVE(0.00)[6]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[gmx.net:+]; NEURAL_HAM_SHORT(-0.96)[-0.963,0]; R_SPF_NA(0.00)[]; FREEMAIL_TO(0.00)[me.com]; RCVD_IN_DNSWL_LOW(-0.10)[20.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: Mon, 26 Aug 2019 11:47:31 -0000 On Thu, 22 Aug 2019 08:58:55 +0300 Toomas Soome wrote: > > On 22 Aug 2019, at 06:04, O. Hartmann wrote: > >=20 > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA256 > >=20 > > Am Wed, 21 Aug 2019 22:29:29 +0000 > > greg@unrelenting.technology schrieb: > > =20 > >> August 22, 2019 12:23 AM, "O. Hartmann" wrote: > >> =20 > >>> Am Wed, 21 Aug 2019 15:58:24 -0500 > >>> Karl Denninger schrieb: > >>> =20 > >>>> I would see if you can get REFIND loaded and use that. I have a Len= ovo > >>>> X1 Carbon Gen 6 and that's the answer I used, as it allows multi-boot > >>>> (e.g. Win10 and FreeBSD) easily. =20 > >>>=20 > >>> mmmhhh, Linux software to make FreeBSD boot? ;-) =20 > >>=20 > >> rEFInd is not "Linux software", I use it to get a nice menu to choose > >> between FreeBSD and Windows on my desktop. No Linux in sight. If anyth= ing, > >> rEFInd has its roots in Macs :) =20 > >=20 > > My apologizes; when searching the net, the first "logo" I see is this s= illy > > penguine face. I'm sorry about making such simple implications. > > =20 > >> =20 > >>> This Lenovo firmware seems very reluctant or the efibootmgr doesn't > >>> operate properly on setting variables: when trying to label the boot > >>> number (e.g. Boot000A) with "-L FreeBSD", it is always set back to > >>> "Boot000A ATA HDD0". On other platforms, like Fujitsu servers or even= the > >>> cheap crap from ASRock a label once set is permenent until deleted. = =20 > >>=20 > >> Many laptops just ignore the boot variables outright. My X240 is the s= ame. > >> I never switched to a proper efibootmgr setup on mine, I just have > >> loader.efi as bootx64.efi and that's it. =20 > >=20 > > I tried copying loader.efi as bootx64.efi - but didn't help. > > =20 > >>>> If there's a way to get into the EFI shell on Lenovo's laptops from = the > >>>> BIOS during the boot I've not found it yet. There's supposed to be = on > >>>> all EFI devices, but you know how "supposed to" works in many cases, > >>>> right? =20 > >>=20 > >> You can just download the EFI Shell from the internet, it's a normal .= efi > >> executable you can "boot". Put it as efi/boot/bootx64.efi onto a USB f= lash > >> drive and enjoy. =20 > >=20 > > I'll give this a chance as soon I have hands on the workitem again. > > =20 >=20 > The reason to try rEFInd and/or EFI shell is to see if we get extra error > messages otherwise hidden by GUI. >=20 > In any case, to get to the root cause, we would need to start to insert m= ore > debug printouts and see what we will find. Once you are ready to go with = it, > you can poke me directly and then we can start=E2=80=A6 >=20 > rgds, > toomas >=20 Hello. I spent the weekend fiddling around with the settings and I found out two things: the most important: my brain is leaking "emory", means: I had the same issue with an APU from PCengines because of enabling "WITH_BEARSSL" in /etc/src.c= onf on the machines where we built the main OS. I did so on the laptop we spoke= of in this thread - and forgot about that fact. the other thing is the weird Lenovo handling of the UEFI vars. The only way= to boot the E540 (after(!) disabling _BEARSSL in src.conf and rebuilding everything) was to set the loader's name to EFI/BOOT/BOOTx64.efi. Setting t= he variable to contain EFI/BOOT/loader.efi failed as well as setting EFI/FreeBSD/loader.efi.=20 I also had to delete the Boot000A variable - it seems Lenovo's UEFI implementation uses fixed variable sets (as I realized when not being able = to name label of the variable Boot000A by something I've choosen). Boot000A is always labeled "ATA HDD0", no matter what I've tried to set it to via option "-L" of efibootmgr. Kind regards, oh=20