Date: Fri, 23 Sep 2022 19:30:14 -0700 From: Mark Millard <marklmi@yahoo.com> To: void <void@f-m.fm> Cc: freebsd-arm@freebsd.org Subject: Re: following -current on rpi4 with zfs-on-root Message-ID: <EC1AD756-AC5A-4822-A6F7-039C6774C22F@yahoo.com> In-Reply-To: <Yy5CDsY8V1Enswd1@void.f-m.fm> References: <YykmFkdqKKW30dM9@void.f-m.fm> <CANCZdfq%2Bm3iFpbU%2BLu12nCvvtT5Swx=MYrC1FkOj5ZhfN%2BocmA@mail.gmail.com> <YymzEH3bUWmtvPUB@void.f-m.fm> <d30f002b-08d0-e697-55b3-49d848a2edd1@plan-b.pwste.edu.pl> <CANCZdfq-RkVTMYk5ZW-LShU6XzNTdKk0TvrNWrmC4jgaC31cUA@mail.gmail.com> <Yy5CDsY8V1Enswd1@void.f-m.fm>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2022-Sep-23, at 16:32, void <void@f-m.fm> wrote: > On Tue, Sep 20, 2022 at 02:36:02PM -0600, Warner Losh wrote: >>> > >>> >> For EFI, there are many choices. The default installation places >>> >> loader.efi into the ESP in EFI\FREEBSD\LOADER.EFI. The following >>> >> updates it (assuming the ESP is on p1, and isn't already = mounted): >>> >> mount -t msdos /dev/ada0p1 /boot/efi >>> >> cp /boot/efi/loader.efi /boot/efi/efi/freebsd I expect that should reference ( unsure for EFI vs. efi ): cp /boot/loader.efi /boot/efi/EFI/freebsd/ The point being to copy from ZFS/UFS to the ESP for environments that use EFI\FREEBSD\LOADER.EFI . -t msdos vs. -t msdosfs ? >>> >> If you have a non-standard setup, please see the EFI notes = section. >=20 > Hi Warner, >=20 > On a freshly rebuilt system after make installworld (but before = anything else), >=20 > # mount | grep msdos >=20 > /dev/da0p1 on /boot/efi (msdosfs, local) >=20 > There is no loader.efi in /boot/efi on arm64.aarch64 for raspberry pi = 4 So far as I know /boot/efi/loader.efi is never the right path for ZFS, UFS, or the ESP under the msdosfs ( given mount -t msdos /dev/ada0p1 /boot/efi ). /dev/ada0p1 would contain an EFI directory that has more substructure. > bootaa64.efi is in /boot/efi/EFI/BOOT, so I followed Marek's = instructions and copied loader_lua.efi to bootaa64.efi from > /usr/obj/usr/src/arm64.aarch64/stand/efi/loader_lua/ After the install world, cp /boot/loader.efi /boot/efi/EFI/BOOT/ should work as well. ( /boot/loader.efi having been updated in ZFS/UFS. ) =3D=3D=3D Mark Millard marklmi at yahoo.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?EC1AD756-AC5A-4822-A6F7-039C6774C22F>