Date: Fri, 23 Sep 2022 20:31:56 -0600 From: Warner Losh <imp@bsdimp.com> To: Mark Millard <marklmi@yahoo.com> Cc: void <void@f-m.fm>, "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org> Subject: Re: following -current on rpi4 with zfs-on-root Message-ID: <CANCZdfpKWEEJ0dhKQ67xpWau3LfLV%2BjVNopvCBQ%2BXqs7=uNggQ@mail.gmail.com> In-Reply-To: <EC1AD756-AC5A-4822-A6F7-039C6774C22F@yahoo.com> 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> <EC1AD756-AC5A-4822-A6F7-039C6774C22F@yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000c79fb705e96319d5 Content-Type: text/plain; charset="UTF-8" On Fri, Sep 23, 2022 at 8:30 PM Mark Millard <marklmi@yahoo.com> wrote: > 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/ > Yes. > The point being to copy from ZFS/UFS to the ESP > for environments that use EFI\FREEBSD\LOADER.EFI . > > -t msdos vs. -t msdosfs ? > Both are valid. There was an unwise attempt to convert everybody over to using the latter, but too many people stubbornly used the old style that we left it as an alias and deleted the warning... :) Warner > >>> >> If you have a non-standard setup, please see the EFI notes section. > > > > Hi Warner, > > > > On a freshly rebuilt system after make installworld (but before anything > else), > > > > # mount | grep msdos > > > > /dev/da0p1 on /boot/efi (msdosfs, local) > > > > 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. ) > > > === > Mark Millard > marklmi at yahoo.com > > > --000000000000c79fb705e96319d5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote">= <div dir=3D"ltr" class=3D"gmail_attr">On Fri, Sep 23, 2022 at 8:30 PM Mark = Millard <<a href=3D"mailto:marklmi@yahoo.com">marklmi@yahoo.com</a>> = wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0= px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 2022-S= ep-23, at 16:32, void <<a href=3D"mailto:void@f-m.fm" target=3D"_blank">= void@f-m.fm</a>> wrote:<br> <br> > On Tue, Sep 20, 2022 at 02:36:02PM -0600, Warner Losh wrote:<br> >>> ><br> >>> >> For EFI, there are many choices. The default installa= tion places<br> >>> >> loader.efi into the ESP in EFI\FREEBSD\LOADER.EFI. Th= e following<br> >>> >> updates it (assuming the ESP is on p1, and isn't = already mounted):<br> >>> >> mount -t msdos /dev/ada0p1 /boot/efi<br> >>> >> cp /boot/efi/loader.efi /boot/efi/efi/freebsd<br> <br> I expect that should reference ( unsure for EFI vs. efi ):<br> <br> cp /boot/loader.efi /boot/efi/EFI/freebsd/<br></blockquote><div><br></div><= div>Yes.</div><div>=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"m= argin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left= :1ex"> The point being to copy from ZFS/UFS to the ESP<br> for environments that use EFI\FREEBSD\LOADER.EFI .<br> <br> -t msdos vs. -t msdosfs ?<br></blockquote><div><br></div><div>Both are vali= d. There was an unwise attempt to convert everybody over to</div><div>using= the latter, but too many people stubbornly=C2=A0used the old style that we= </div><div>left it as an alias and deleted the warning... :)</div><div><br>= </div><div>Warner</div><div>=C2=A0</div><blockquote class=3D"gmail_quote" s= tyle=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);pad= ding-left:1ex"> >>> >> If you have a non-standard setup, please see the EFI = notes section.<br> > <br> > Hi Warner,<br> > <br> > On a freshly rebuilt system after make installworld (but before anythi= ng else),<br> > <br> > # mount | grep msdos<br> > <br> > /dev/da0p1 on /boot/efi (msdosfs, local)<br> > <br> > There is no loader.efi in /boot/efi on arm64.aarch64 for raspberry pi = 4<br> <br> So far as I know /boot/efi/loader.efi is never the right<br> path for ZFS, UFS, or the ESP under the msdosfs ( given<br> mount -t msdos /dev/ada0p1 /boot/efi ). /dev/ada0p1 would<br> contain an EFI directory that has more substructure.<br> <br> > bootaa64.efi is in /boot/efi/EFI/BOOT, so I followed Marek's instr= uctions and copied loader_lua.efi to bootaa64.efi from<br> > /usr/obj/usr/src/arm64.aarch64/stand/efi/loader_lua/<br> <br> After the install world, cp /boot/loader.efi /boot/efi/EFI/BOOT/<br> should work as well. ( /boot/loader.efi having been updated in<br> ZFS/UFS. )<br> <br> <br> =3D=3D=3D<br> Mark Millard<br> marklmi at <a href=3D"http://yahoo.com" rel=3D"noreferrer" target=3D"_blank= ">yahoo.com</a><br> <br> <br> </blockquote></div></div> --000000000000c79fb705e96319d5--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfpKWEEJ0dhKQ67xpWau3LfLV%2BjVNopvCBQ%2BXqs7=uNggQ>