From nobody Tue Sep 20 03:17:50 2022 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MWmvb4jMwz4cr1M for ; Tue, 20 Sep 2022 03:18:03 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-vs1-xe36.google.com (mail-vs1-xe36.google.com [IPv6:2607:f8b0:4864:20::e36]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MWmvZ6P7Rz3LM3 for ; Tue, 20 Sep 2022 03:18:02 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-vs1-xe36.google.com with SMTP id m66so1647205vsm.12 for ; Mon, 19 Sep 2022 20:18:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20210112.gappssmtp.com; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date; bh=bfgO2I0sYgs2Uh8PdvN3ar6OmHaGYHd43tgcAcJEB+E=; b=YS0ZB9KBOngD/yclxgWkCOPylKWs7otVKhZpqno6FUUSmTSNI0EyWgwo5yTCTLMu2+ mG59uUhpfzJQEMt2AUUTM952z7S/wCnaRgICZM3qGpTtigMuWXD8tBHMJKXrh6x8qs78 4kK5YbFWWpBogIAZ8ZPXhxqILwUbqycFsMef4JhlInA3kYsIV0HAnirspIC6nOiP8XLd Gto+pgtDVFxU2eQMFteOhMZvqOShCxQSg7IhXFBHg34396s/NMuZwJWFPN6ggzSfsASW 70YFZyHziDreYjPvsAJZ0p11GCIu0Qo8VHOVgMUA7bhOalh+gawVse50ArBELCDv1eoz 8ktw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date; bh=bfgO2I0sYgs2Uh8PdvN3ar6OmHaGYHd43tgcAcJEB+E=; b=yWCLy92MwzwmXjAstrInsN6skYMAlBLyOZEgkz0hDCt1i4P3WoeX35y8Q0jGHfHM3f 8c//KdUB3A3WPWeTA1uhV421rKu3LQvP5PAEw2iCKidwEtAsOXimF0TdQKU8e3BylsB/ mfdHhwXyPu5vE+K6OpxtyTvYhpmdUQn9wVkvk+NLd/p9SEUP2jr3ysfLcXGfv3Hh2oAv Be9mg8mWYY4rrVmRA1Wg0ogKfCTrPYAs988QQHY8RXE5FJvNESAiHCmEFbMxFRfDuRbm 5K9WdsqvAR4mWJEhk39c/CvZli3eqg2VhHXfxyRW/gwTiULMuw47OXHzcTyc7EJjvfwM X6ww== X-Gm-Message-State: ACrzQf1rN0KMsdCCjZd++5aKV0DXhKN8+Mn5M1ltRVeloq76wB9OYMqd n/38vbH+LrCxTtPwEJHmc6blJ0m4qFarZM6DxXn8X/9FbT0= X-Google-Smtp-Source: AMsMyM4Y3i0d1kSM4lRMMr6aIScPBdhEWUILxANydy5ZkQz8ZKjcYPQZ7NLCDM4Lf1HiGD/dz2o3Py459dHQyHTnclk= X-Received: by 2002:a67:d28e:0:b0:398:2d88:65ef with SMTP id z14-20020a67d28e000000b003982d8865efmr6702689vsi.11.1663643881876; Mon, 19 Sep 2022 20:18:01 -0700 (PDT) List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: Warner Losh Date: Mon, 19 Sep 2022 21:17:50 -0600 Message-ID: Subject: Re: following -current on rpi4 with zfs-on-root To: "freebsd-arm@freebsd.org" Content-Type: multipart/alternative; boundary="0000000000009cc3a005e9134673" X-Rspamd-Queue-Id: 4MWmvZ6P7Rz3LM3 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20210112.gappssmtp.com header.s=20210112 header.b=YS0ZB9KB; dmarc=none; spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2607:f8b0:4864:20::e36) smtp.mailfrom=wlosh@bsdimp.com X-Spamd-Result: default: False [-2.89 / 15.00]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_LONG(-0.95)[-0.947]; NEURAL_HAM_MEDIUM(-0.95)[-0.946]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20210112.gappssmtp.com:s=20210112]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; R_SPF_NA(0.00)[no SPF record]; ARC_NA(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TO_DN_EQ_ADDR_ALL(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20210112.gappssmtp.com:+]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::e36:from]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; DMARC_NA(0.00)[bsdimp.com]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N --0000000000009cc3a005e9134673 Content-Type: text/plain; charset="UTF-8" On Mon, Sep 19, 2022, 8:31 PM void wrote: > Hi, > > In /usr/src/UPDATING, there's this concerning > zroot booting after buildworld kernel cycle: > > +++++ > 2.) update the ZFS boot block on your boot drive > > The following example updates the ZFS boot block on the > freebsd-boot partition of a GPT partitioned drive ada0: > "gpart bootcode -p /boot/gptzfsboot -i $N ada0" > The value $N will typically be 1 (if booting from BIOS) or 2 (if > booting from EFI). > ignore everything after 'or'.. it's bogus. Gptzfsboot is unused outside of BIOS booting on x86. In this case BIOS is irrelevant to EFI. +++++ > > BIOS in a rpi4 context I read as u-boot. I thought it hands the boot > process > over to bootaa64.efi, which I thought was efi. Is this correct? > Its initial boot screen shows u-boot. Is this bios or efi? > It's EFI and you need to update the file in the ESP (MSDOS). Warner TIA, > -- > > --0000000000009cc3a005e9134673 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Mon, Sep 19, 2022, 8:31 PM void <void@f-m.fm> wrote:
Hi,

In /usr/src/UPDATING, there's this concerning
zroot booting after buildworld kernel cycle:

+++++
2.) update the ZFS boot block on your boot drive

=C2=A0 =C2=A0 The following example updates the ZFS boot block on the
=C2=A0 =C2=A0 freebsd-boot partition of a GPT partitioned drive ada0:
=C2=A0 =C2=A0 "gpart bootcode -p /boot/gptzfsboot -i $N ada0"
=C2=A0 =C2=A0 The value $N will typically be 1 (if booting from BIOS) or 2 = (if
=C2=A0 =C2=A0 booting from EFI).

ignore everything after 'or'.. it&#= 39;s bogus. Gptzfsboot is unused outside of BIOS booting on x86. In this ca= se BIOS is irrelevant to EFI.

+++++

BIOS in a rpi4 context I read as u-boot. I thought it hands the boot proces= s
over to bootaa64.efi, which I thought was efi. Is this correct?
Its initial boot screen shows u-boot. Is this bios or efi?
=

It's EFI and = you need to update the file in the ESP (MSDOS).

=
Warner

TIA,
--

--0000000000009cc3a005e9134673--