Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Sep 2022 21:17:50 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org>
Subject:   Re: following -current on rpi4 with zfs-on-root
Message-ID:  <CANCZdfqNXp64rM6f6FJvwsHHSh7xFOC2W=60sxZGMYdPXB-S-Q@mail.gmail.com>
In-Reply-To: <YykmFkdqKKW30dM9@void.f-m.fm>
References:  <YykmFkdqKKW30dM9@void.f-m.fm>

next in thread | previous in thread | raw e-mail | index | archive | help
--0000000000009cc3a005e9134673
Content-Type: text/plain; charset="UTF-8"

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
>
>     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

<div dir=3D"auto"><div><br><br><div class=3D"gmail_quote"><div dir=3D"ltr" =
class=3D"gmail_attr">On Mon, Sep 19, 2022, 8:31 PM void &lt;<a href=3D"mail=
to:void@f-m.fm">void@f-m.fm</a>&gt; wrote:<br></div><blockquote class=3D"gm=
ail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-le=
ft:1ex">Hi,<br>
<br>
In /usr/src/UPDATING, there&#39;s this concerning<br>
zroot booting after buildworld kernel cycle:<br>
<br>
+++++<br>
2.) update the ZFS boot block on your boot drive<br>
<br>
=C2=A0 =C2=A0 The following example updates the ZFS boot block on the<br>
=C2=A0 =C2=A0 freebsd-boot partition of a GPT partitioned drive ada0:<br>
=C2=A0 =C2=A0 &quot;gpart bootcode -p /boot/gptzfsboot -i $N ada0&quot;<br>
=C2=A0 =C2=A0 The value $N will typically be 1 (if booting from BIOS) or 2 =
(if<br>
=C2=A0 =C2=A0 booting from EFI).<br></blockquote></div></div><div dir=3D"au=
to"><br></div><div dir=3D"auto">ignore everything after &#39;or&#39;.. it&#=
39;s bogus. Gptzfsboot is unused outside of BIOS booting on x86. In this ca=
se BIOS is irrelevant to EFI.</div><div dir=3D"auto"><br></div><div dir=3D"=
auto"><div class=3D"gmail_quote"><blockquote class=3D"gmail_quote" style=3D=
"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
+++++<br>
<br>
BIOS in a rpi4 context I read as u-boot. I thought it hands the boot proces=
s<br>
over to bootaa64.efi, which I thought was efi. Is this correct?<br>
Its initial boot screen shows u-boot. Is this bios or efi?<br></blockquote>=
</div></div><div dir=3D"auto"><br></div><div dir=3D"auto">It&#39;s EFI and =
you need to update the file in the ESP (MSDOS).</div><div dir=3D"auto"><br>=
</div><div dir=3D"auto">Warner</div><div dir=3D"auto"><br></div><div dir=3D=
"auto"><div class=3D"gmail_quote"><blockquote class=3D"gmail_quote" style=
=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
TIA,<br>
-- <br>
<br>
</blockquote></div></div></div>

--0000000000009cc3a005e9134673--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfqNXp64rM6f6FJvwsHHSh7xFOC2W=60sxZGMYdPXB-S-Q>