Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Jan 2019 12:19:20 -0700
From:      Warner Losh <imp@bsdimp.com>
To:        Jonathan Chen <jonc@chen.org.nz>
Cc:        Stefan Bethke <stb@lassitu.de>, Kyle Evans <kevans@freebsd.org>,  freebsd-stable stable <freebsd-stable@freebsd.org>
Subject:   Re: Trouble booting from EFI with 12-stable
Message-ID:  <CANCZdfro7o0=6oQ7x3=x8rrSBZgqBUfMDm%2BHY8Lsrqqp%2BW5BUw@mail.gmail.com>
In-Reply-To: <CAJuc1zMQC6bmpM_gJV3GK6ZSbF_OuJ6Z3S6VTYKD9snKiDwsXg@mail.gmail.com>
References:  <2E0A45C1-1E0A-42FB-A403-04EF611DB812@lassitu.de> <CACNAnaHc_wus-t=J7eH8Uwsiq=svUrJTX2jS0Tp=hkuxJcwyGg@mail.gmail.com> <97B2B194-D1B6-4CC0-BAC2-8167ECDB3182@lassitu.de> <1B65638D-C68B-4995-9170-DB34D8051B21@lassitu.de> <CAJuc1zMQC6bmpM_gJV3GK6ZSbF_OuJ6Z3S6VTYKD9snKiDwsXg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jan 11, 2019 at 12:17 PM Jonathan Chen <jonc@chen.org.nz> wrote:

> On Sat, 12 Jan 2019 at 07:55, Stefan Bethke <stb@lassitu.de> wrote:
> [...]
> > The UEFI man page has a good explanation of which files are involved in
> booting:
> >
> https://www.freebsd.org/cgi/man.cgi?query=uefi&sektion=8&manpath=freebsd-release-ports
> >
> > I mounted the ESP and copied /boot/boot1.efi to
> /boot/efi/EFI/BOOT/BOOTX64.EFI. Surprisingly, the new boot1.efi is much
> smaller than what I had before (according to the timestamp from November),
> but using that, booting seems to be restored.
> >
> > # grep efi /etc/fstab
> > /dev/ada0p2             /boot/efi       msdos   rw,noauto       0       0
> > # mount /boot/efi
> > # ls -l /boot/efi/EFI/BOOT/BOOTX64.EFI /boot/efi/EFI/BOOT/bak/BOOTX64.EFI
> > -rwxr-xr-x  1 root  wheel   81920 Jan 11 18:43
> /boot/efi/EFI/BOOT/BOOTX64.EFI*
> > -rwxr-xr-x  1 root  wheel  410112 Nov 25 16:27
> /boot/efi/EFI/BOOT/bak/BOOTX64.EFI*
>
> While the uefi(8) man page suggests that boot1.efi should be used,
> loader.efi can also substituted. I believe the release images use
> loader.efi instead of boot1.efi, as it's slightly more efficient.
>

We should change that... boot1.efi has transitioned to 'legacy applications
only' and we should recommend loader.efi only.

Warner



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfro7o0=6oQ7x3=x8rrSBZgqBUfMDm%2BHY8Lsrqqp%2BW5BUw>