From owner-freebsd-current@freebsd.org Fri Mar 27 23:28:01 2020 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 97602264AAF for ; Fri, 27 Mar 2020 23:28:01 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qv1-xf36.google.com (mail-qv1-xf36.google.com [IPv6:2607:f8b0:4864:20::f36]) (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 48pyh42MC7z4R5l for ; Fri, 27 Mar 2020 23:27:47 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qv1-xf36.google.com with SMTP id c28so5803767qvb.10 for ; Fri, 27 Mar 2020 16:27:47 -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=IVv6ieGkgqWejEtSgI/C4I6MDSVoMr2nK/RcbXZcbo0=; b=Iv8w4uA/wiC3fFFVU32qxLrgF0Wpw1Gq18msLguJQVyjS8pTNXX1oXCh/OoJvp7PBj qYu5KIfjNk1/Chd2tOkQXzZAS7Irq9zokiwPxzZpNZr1DLPGm9Y03xhRqYAXf3vOzmJU 5aH1YWYehQZIBcEVeDkcTtSoU72kvEpnyAfptR1HScbKs7xJx/DpAF1OJkOfrtpexYCQ EelQzJbMF5B0fSxVTSDW547ojBZUPdq03PaosRwLMLParQgQXl1CwGy6XsuFPYk66msH LD8cjaqFEg4r9dZF8T4iwM4rrYWFZ/VaSrOGPO6vOvs9fkI5nCodCE9k5mjVt6P26+Vr B6gg== 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=IVv6ieGkgqWejEtSgI/C4I6MDSVoMr2nK/RcbXZcbo0=; b=aDFZjqjN4xG5V0ulKBB917lVDYkJqXtLGDPiJz4MYFVntO9eskUrxUpkRwzwjaJ+2m hgTnBmghriJHGYVeymKbbYvVpb1L44ztRiMsbuc28y7Bu9odTpa2FEDpsHxRRa1cHW/G GCVOa8wr9g3Jm1gz3aL8j5ufLJjh4+VDjqOizaQk2vsO/Tjq9GFJJWFHKUVoIQ6C7NEm Ygoz13IyKu3tSsxJ/1BxSz/lsAAMfcWW11nMSy+NaXyPtjmSHDTR5X1Pip8EZQtfxUNk aIQovpWFVWIemx5DjWhjx558uEMjsir33IVw5yWqeoBzShI8f2dePT1VGWMrPVRcIqSn SLBA== X-Gm-Message-State: ANhLgQ3d6vkfjr8ilyT8ji44Q6Qb2tCBsZKiodRG8TJD1Rydmp7CYqd7 GR/a12BSgSKnvtmuhP8q0U5/J+yKNqNH92FbfIkfp6Rn X-Google-Smtp-Source: ADFU+vt+oCDtTRUAB1yOv+mPNJgDN2LfVi/eBlb2eQY8Czz9tvLP4eCxQ/4dtKjyP9UoIZxfW1EZfZjphy60O18/OFs= X-Received: by 2002:a0c:a8e2:: with SMTP id h34mr1711734qvc.22.1585351658420; Fri, 27 Mar 2020 16:27:38 -0700 (PDT) MIME-Version: 1.0 References: <79dcf9ff2e4a233552bb1dff28c723ac@udns.ultimatedns.net> In-Reply-To: <79dcf9ff2e4a233552bb1dff28c723ac@udns.ultimatedns.net> From: Warner Losh Date: Fri, 27 Mar 2020 17:27:27 -0600 Message-ID: Subject: Re: When will the FreeBSD (u)EFI work? To: Chris H Cc: Andrey Fesenko , freebsd-current X-Rspamd-Queue-Id: 48pyh42MC7z4R5l X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20150623.gappssmtp.com header.s=20150623 header.b=Iv8w4uA/; dmarc=none; spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2607:f8b0:4864:20::f36) smtp.mailfrom=wlosh@bsdimp.com X-Spamd-Result: default: False [-2.35 / 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]; IP_SCORE(-1.35)[ip: (-5.87), ipnet: 2607:f8b0::/32(-0.37), asn: 15169(-0.47), country: US(-0.05)]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; DMARC_NA(0.00)[bsdimp.com]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20150623.gappssmtp.com:+]; RCVD_IN_DNSWL_NONE(0.00)[6.3.f.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]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; 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)[gmail.com] Content-Type: text/plain; charset="UTF-8" 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: Fri, 27 Mar 2020 23:28:01 -0000 On Fri, Mar 27, 2020 at 4:54 PM Chris wrote: > On Sat, 28 Mar 2020 01:10:37 +0300 Andrey Fesenko f0andrey@gmail.com said > > > On Sat, Mar 28, 2020 at 12:53 AM Chris wrote: > > > > > > On an experiment of the FreeBSD EFI implementation. I installed > > > a copy of releng/12 from install media. Which left me with: > > > # gpart show ada0 > > > => 40 312581728 ada0 GPT (149G) > > > 40 409600 1 efi (200M) > > > 409640 31047680 2 freebsd-ufs (15G) > > > 31457320 7680000 3 freebsd-swap (3.7G) > > > 74788904 237792864 - free - (141G) > > > > > > On this Intel based system, I can stab the F12 key to pick > > > my UEFI bootable OS, or let it boot according to the order > > > I setup in the BIOS. So far, so good. > > > I needed a copy of releng/13 to also work with. Installed a copy > > > from install media. Which left me with: > > > # gpart show ada0 > > > => 40 312581728 ada0 GPT (149G) > > > 40 409600 1 efi (200M) > > > 409640 31047680 2 freebsd-ufs (15G) > > > 31457320 7680000 3 freebsd-swap (3.7G) > > > 39137320 532480 4 efi (260M) > > > 39669800 35119104 5 freebsd-ufs (17G) > > > 74788904 237792864 - free - (113G) > > > I *assumed* that the install would activate the new install, and I > > > would boot straight into it. But no. I am still on the previous > > > install, and worse, I can't get into the new install -- even if > > > picking it via stabbing the F12 key. I *still* end up in the previous > > > install. So looking at what might be causing it. I found the following: > > > # releng/12 > > > # mount -t msdosfs /dev/ada0p1 /mnt/ > > > > > > # ls /mnt/efi/boot/ > > > BOOTx64.efi > > > startup.nsh > > > > > > # cat /mnt/efi/boot/startup.nsh > > > BOOTx64.efi > > > > > > # umount /mnt/ > > > > > > releng/13 > > > # mount -t msdosfs /dev/ada0p4 /mnt/ > > > > > > # ls /mnt/EFI/freebsd/ > > > loader.efi > > > > > > Why the difference? When will FreeBSD (u)EFI work as expected? > > > > > > Thanks in advance for any insights! > > > > > > > Require only single efi part > > > > See > > > https://forums.freebsd.org/threads/two-freebsd-installations-and-efi.73968/ > Thanks for they reply, and link, Andrey! > Well that confirms it. FreeBSD, unlike other OS implementations, will not > permit booting your chosen "version" via EFI. It does today. If you use efibootmgr, you can boot exactly what you want. I do it all the time... Though your BIOS may overwrite the EFI vars if you set too many (I'm looking at you supermicro). When you use the efi BootXXXX variables, it's possible to boot one of many different things on the system... Though I've not done 11, just 12 and current. > That is; not without dropping > to the loader prompt, or changing the status of slices, or boot entries > prior to > reboot. :( > Not needed. > Looks like I'll need to install a third party OS, or bootmanager to use > FreeBSD. > Sigh... > Again, not needed. Though there may be a few things that need to be MFC'd if you want 11 on that list... > There *may* be hope in the future ( > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207940) > This would require you to stop to select on the way up... Or am I not understanding what you want? We should add that functionality to loader.efi, since boot1.efi is in the process of being deprecated... It should be a simple LUA script there... > Thanks again, Andrey. Greatly appreciated! :) >