From owner-freebsd-current@freebsd.org Wed Aug 21 20:54:01 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 0EB93D3E18 for ; Wed, 21 Aug 2019 20:54:01 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qt1-x82b.google.com (mail-qt1-x82b.google.com [IPv6:2607:f8b0:4864:20::82b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46DKdh1V7dz4XKx for ; Wed, 21 Aug 2019 20:53:59 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qt1-x82b.google.com with SMTP id y26so4827871qto.4 for ; Wed, 21 Aug 2019 13:53:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=VOhbCRrzh49PO55Ew0I8k/uy5zhB1MWsaQCIBRfcpig=; b=RwMqk4Pq+k4lcqvE8rpyqCgc9q5MRz8bE28xz55wmAITRL6m2Jo77p55Q76Q3SXuts 7oHrH+SJ0fuhUcT8CL65DPbXCwiKRGnT/B1eAHr+k4PUDXVtbB/6FMiQS5dd2kCPuVC6 PX6PrcewAFfXB49oNaXw2z93IXFQp7yGY+70oTUbD5nIDiRJf/JOl2Y/ho16tweBQkLn uKIio7LD5p9tt5hOMHN9VzNJ55eiy3S9VWVyN3ILjU08GOoGye1aQKzcw2AnJFUquvrD s1jzESH2tkLXHKrd8nUSLcDFi7VoxchXPDi9eM7U8XBEXuNrF0mMPC/pXZjEzEIewxwA PsoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=VOhbCRrzh49PO55Ew0I8k/uy5zhB1MWsaQCIBRfcpig=; b=aAjqTd1EmvU7OFbqleebcaQogLMNHpLr267W9zraMWo57Ug9h5SMCY+Oa8es3hGIdY pxdWRIE2/zZUmAK9E9pi37lrimlXe+RoHLO4tUD2dZAQCAL+jSbt+SbKGw7zKdhvUBd3 S1XF+V6x9sOW6cmICDIO+Zt6GaEbKGk8wM0YmLZKFRAO2xtjoF+B7PYpTopHWKegsHgr Pzj2uVHmYPl4NxqrRXaQ501mGNPs7dKpkPaPym7oGkEYTj65pItPPezDFS/4WI/sAxqt jhUpVGu9dey7g8p+yfpensRxUy+vMeuj7XpvR350t8wHMtcbxqRLM9SMi33KwhV8I3wj 3I4g== X-Gm-Message-State: APjAAAVklxEiqhjOfkZ5fufP0BioxC5mwxX+KVZUnErUmxvDeBUKuhRV iJCMejz04HxyExQYZTOmEnGvY1ls6QPj/czrWaslnQ== X-Google-Smtp-Source: APXvYqyAlbdDrYoanF+c3hDbwRAAgCf0JUmpYj9mkUzL5IvOafwTREpbLLZawomHKi7B4SsUTuQkae/HZYrRRr35144= X-Received: by 2002:ac8:4602:: with SMTP id p2mr33280508qtn.291.1566420838850; Wed, 21 Aug 2019 13:53:58 -0700 (PDT) MIME-Version: 1.0 References: <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> <20190821224450.270b67e2@thor.intern.walstatt.dynvpn.de> In-Reply-To: <20190821224450.270b67e2@thor.intern.walstatt.dynvpn.de> From: Warner Losh Date: Wed, 21 Aug 2019 14:53:48 -0600 Message-ID: Subject: Re: HELP: UEFI/ZFS Boot failure: Ignoring Boot000A: Only one DP found To: "O. Hartmann" Cc: Toomas Soome , freebsd-current X-Rspamd-Queue-Id: 46DKdh1V7dz4XKx X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20150623.gappssmtp.com header.s=20150623 header.b=RwMqk4Pq; dmarc=none; spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2607:f8b0:4864:20::82b) smtp.mailfrom=wlosh@bsdimp.com X-Spamd-Result: default: False [-4.94 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20150623.gappssmtp.com:s=20150623]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; RCVD_COUNT_TWO(0.00)[2]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; DMARC_NA(0.00)[bsdimp.com]; URI_COUNT_ODD(1.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20150623.gappssmtp.com:+]; NEURAL_HAM_SHORT(-0.99)[-0.992,0]; RCVD_IN_DNSWL_NONE(0.00)[b.2.8.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; MIME_TRACE(0.00)[0:+,1:+,2:~]; IP_SCORE(-2.94)[ip: (-9.41), ipnet: 2607:f8b0::/32(-2.90), asn: 15169(-2.35), country: US(-0.05)]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; RCVD_TLS_ALL(0.00)[]; FREEMAIL_CC(0.00)[me.com] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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 20:54:01 -0000 On Wed, Aug 21, 2019 at 2:50 PM O. Hartmann wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 > > Am Wed, 21 Aug 2019 22:34:21 +0300 > Toomas Soome schrieb: > > > > On 21 Aug 2019, at 22:30, O. Hartmann wrote: > > > > > > -----BEGIN PGP SIGNED MESSAGE----- > > > Hash: SHA256 > > > > > > Am Wed, 21 Aug 2019 22:14:46 +0300 > > > Toomas Soome > schrieb: > > > > > >> If you drop into efi shell, can you start efi/boot/bootx64.efi > manually? you should have > > >> fs0: or like for ESP. > > >> > > >> rgds, > > >> toomas > > > > > > Hello, > > > > > > I can't even stop to gain access to the shell; there is no timeframe > to hit any key to > > > stop by and access the efi shell. > > > > > > Kind regards, > > > oh > > > > > > hm? efi shell should be available from boot device menu, so you mean, > you can not even get > > into firmware setup? > > > > rgds, > > toomas > > > > > > > >> > > >>> On 21 Aug 2019, at 20:58, O. Hartmann > wrote: > > >>> > > >>> -----BEGIN PGP SIGNED MESSAGE----- > > >>> Hash: SHA256 > > >>> > > >>> I ran into serious trouble booting several boxes off UEFI. On moder= n > 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 i= s > 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 environme= nt > > >>> 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, d= d > > >>> if=3Dboot1.efifat of=3D/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, > > >>> > [...] > > What does the message: > > Only one DP found > > mean? Obviously, "Trying ZFS pool - Setting currdev to > zfs"zroot/ROOT/default:" indicates that > the loader has already found its partition to bbot from, but why is it > freezing/crashing then? > No Ctrl-Alt-Del helps, only hard reset or power cycle brings the box back= . > It means there was no explicit kernel specified and so the system is going to guess which kernel (and which root) to use. The fact that you don't see a kernel booting suggests it's unable to do so properly. Warner > oh > - -- > O. Hartmann > > Ich widerspreche der Nutzung oder =C3=9Cbermittlung meiner Daten f=C3=BCr > Werbezwecke oder f=C3=BCr die Markt- oder Meinungsforschung (=C2=A7 28 Ab= s. 4 BDSG). > -----BEGIN PGP SIGNATURE----- > > iHUEARYIAB0WIQSy8IBxAPDkqVBaTJ44N1ZZPba5RwUCXV2tQgAKCRA4N1ZZPba5 > R8PmAQCysRllIHaShJZOAQHy6YY2THQwRruzziJUY+zer/i/7QEAi/C68BgEJtuW > mD2oPCsXJR8AO10XFDvO+uI8ugCV/wE=3D > =3DILkO > -----END PGP SIGNATURE----- > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org= " >