From owner-freebsd-current@freebsd.org Wed Aug 21 19:34:28 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 6F2A6D1D8D for ; Wed, 21 Aug 2019 19:34:28 +0000 (UTC) (envelope-from tsoome@me.com) Received: from pv50p00im-ztdg10021201.me.com (pv50p00im-ztdg10021201.me.com [17.58.6.45]) (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 46DHsv5hhhz4QS4 for ; Wed, 21 Aug 2019 19:34:27 +0000 (UTC) (envelope-from tsoome@me.com) Received: from nazgul.lan (148-52-235-80.sta.estpak.ee [80.235.52.148]) by pv50p00im-ztdg10021201.me.com (Postfix) with ESMTPSA id 7B932A40D9A; Wed, 21 Aug 2019 19:34:24 +0000 (UTC) From: Toomas Soome Message-Id: <480F8DE0-A38F-4BCA-9F36-0D812CDB7DD8@me.com> Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: HELP: UEFI/ZFS Boot failure: Ignoring Boot000A: Only one DP found Date: Wed, 21 Aug 2019 22:34:21 +0300 In-Reply-To: <20190821213052.25d61cb4@thor.intern.walstatt.dynvpn.de> Cc: freebsd-current To: "O. Hartmann" References: <20190821195847.577a165b@thor.intern.walstatt.dynvpn.de> <48D9A1D1-5A54-4FED-8DC8-40C9A5C9BE3A@me.com> <20190821213052.25d61cb4@thor.intern.walstatt.dynvpn.de> X-Mailer: Apple Mail (2.3445.104.11) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-08-21_06:, , signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1812120000 definitions=main-1908210188 X-Rspamd-Queue-Id: 46DHsv5hhhz4QS4 X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.17 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:17.58.0.0/16:c]; FREEMAIL_FROM(0.00)[me.com]; MV_CASE(0.50)[]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; URI_COUNT_ODD(1.00)[7]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[me.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[me.com,quarantine]; RCVD_IN_DNSWL_MED(-0.20)[45.6.58.17.list.dnswl.org : 127.0.5.2]; NEURAL_HAM_SHORT(-0.97)[-0.972,0]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(0.00)[ip: (-4.93), ipnet: 17.58.0.0/20(-2.97), asn: 714(-2.77), country: US(-0.05)]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[me.com]; ASN(0.00)[asn:714, ipnet:17.58.0.0/20, country:US]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; R_DKIM_ALLOW(-0.20)[me.com:s=1a1hai]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; IP_SCORE_FREEMAIL(0.00)[]; DWL_DNSWL_LOW(-1.00)[me.com.dwl.dnswl.org : 127.0.5.1]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] 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 19:34:28 -0000 > On 21 Aug 2019, at 22:30, O. Hartmann wrote: >=20 > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 >=20 > Am Wed, 21 Aug 2019 22:14:46 +0300 > Toomas Soome > schrieb: >=20 >> If you drop into efi shell, can you start efi/boot/bootx64.efi = manually? you should have >> fs0: or like for ESP. >>=20 >> rgds, >> toomas >=20 > Hello, >=20 > 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.=20 >=20 > 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 >=20 >>=20 >>> On 21 Aug 2019, at 20:58, O. Hartmann = wrote: >>>=20 >>> -----BEGIN PGP SIGNED MESSAGE----- >>> Hash: SHA256 >>>=20 >>> 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. >>>=20 >>> 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". >>>=20 >>> Installing the proper boot/loader.efi loader file from 12-STABLE = (r351108) and >>> setting the EFI variable according the following steps: >>>=20 >>> 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 >>>=20 >>> delete 000A first: >>> efibootmgr -B -b 000A >>>=20 >>> create the new efi boot var: >>> efibootmgr -a -b 000A -c -l = /mnt/efi/{freebsd|boot}/{loader.efi|BOOTx64.efi} -L >>> FreeBSD >>>=20 >>> The result is a non booting system, the Lenovo firmware jumps = immediately into >>> the menu for selecting a proper boot media. >>>=20 >>> The same happens with /boot/boot1.efi installed as loader.efi or = BOOTx64.efi >>> shown above. >>>=20 >>> In case I just brute-force flash the ESP with /boot/boot1.efifat, dd >>> 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: >>>=20 >>> [...] >>> Ignoring Boot000a: Only one DP found >>> Trying ZFS pool >>> Setting currdev to zfs:zroot/ROOT/default: >>>=20 >>> Then the console freezes at that point and only RESET or POWER OFF = is capable >>> of a revive. >>>=20 >>> What is wrong here? What am I missing? >>>=20 >>> Thanks in advance, >>>=20 >>> oh >>>=20 >>>=20 >>> - --=20 >>> O. Hartmann >>>=20 >>> Ich widerspreche der Nutzung oder =C3=9Cbermittlung meiner Daten = f=C3=BCr >>> Werbezwecke oder f=C3=BCr die Markt- oder Meinungsforschung (=C2=A7 = 28 Abs. 4 BDSG). >>> -----BEGIN PGP SIGNATURE----- >>>=20 >>> iHUEARYIAB0WIQSy8IBxAPDkqVBaTJ44N1ZZPba5RwUCXV2GbQAKCRA4N1ZZPba5 >>> R8nBAP9GBNJGQV+Q6BD2BlMYDX1Toxu9ybQZc2uahniHNER6cAEA5TmHBDTu94eE >>> fX+hTk4vDUkf8ga4EsrUDZflage6LAk=3D >>> =3D3img >>> -----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" =20 >>=20 >> _______________________________________________ >> 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 = " >=20 >=20 >=20 > - --=20 > O. Hartmann >=20 > Ich widerspreche der Nutzung oder =C3=9Cbermittlung meiner Daten f=C3=BC= r > Werbezwecke oder f=C3=BCr die Markt- oder Meinungsforschung (=C2=A7 28 = Abs. 4 BDSG). > -----BEGIN PGP SIGNATURE----- >=20 > iHQEARYIAB0WIQSy8IBxAPDkqVBaTJ44N1ZZPba5RwUCXV2b/AAKCRA4N1ZZPba5 > R+DDAP9LN8SDMDm/0ybGw+TBqczvS+m51n0DMYEqMZxTsikIFgD46rrBkm4zpKH5 > BDk3pkVT+h7MH8ghESa7XfhFGg3pCg=3D=3D > =3D/Hm2 > -----END PGP SIGNATURE-----