Page MenuHomeFreeBSD

uefi.8: mention boot1.efi
ClosedPublic

Authored by kevlo on Dec 27 2020, 3:21 PM.
Tags
None
Referenced Files
F82080776: D27782.id.diff
Thu, Apr 25, 8:06 AM
Unknown Object (File)
Sun, Apr 21, 7:34 PM
Unknown Object (File)
Jan 21 2024, 9:06 AM
Unknown Object (File)
Dec 14 2023, 8:25 PM
Unknown Object (File)
Nov 30 2023, 2:22 PM
Unknown Object (File)
Nov 23 2023, 11:48 AM
Unknown Object (File)
Nov 22 2023, 3:36 PM
Unknown Object (File)
Nov 22 2023, 3:23 PM
Subscribers
None

Details

Summary

Mention boot1.efi since it is an image of 800KB FAT filesystem stored as
/EFI/BOOT/BOOTX64.EFI and it's capable of boot FreeBSD.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kevlo requested review of this revision.Dec 27 2020, 3:21 PM
kevlo created this revision.
This revision is now accepted and ready to land.Dec 27 2020, 3:45 PM
ygy added inline comments.
share/man/man8/uefi.8
127

Would it be better to rephrase

and the bootcode argument to gpart

to ->

and gpart bootcode argument / and the bootcode argument of gpart

?

129

For consistency, please remove the "." in the list.

ygy requested changes to this revision.Dec 28 2020, 1:54 AM
ygy added inline comments.
share/man/man8/uefi.8
27

This should be "December 27"

This revision now requires changes to proceed.Dec 28 2020, 1:54 AM
This revision was not accepted when it landed; it landed in state Needs Revision.Dec 28 2020, 2:32 AM
This revision was automatically updated to reflect the committed changes.

/boot/boot1.efifat is the 800 KB filesystem image. /boot/boot1.efi is the EFI bootloader application.

Also, /boot/boot1.efifat is no longer included in -CURRENT.

Also, boot1.efi is obsolete. We retain it only for special needs users: those with the bogus tiny ESP partitions and some really weird edge cases that loader.efi doesn't work for.

In D27782#621399, @imp wrote:

Also, boot1.efi is obsolete. We retain it only for special needs users: those with the bogus tiny ESP partitions and some really weird edge cases that loader.efi doesn't work for.

I have Ubuntu 20.10 and FreeBSD -current installed on my thinkpad laptop.
Linux's Grub2 is unable to boot FreeBSD directly from UEFI, I have to copy
the FreeBSD UEFI loader (/boot/boot.efi) into EFI partition.

In D27782#621399, @imp wrote:

Also, boot1.efi is obsolete. We retain it only for special needs users: those with the bogus tiny ESP partitions and some really weird edge cases that loader.efi doesn't work for.

I have Ubuntu 20.10 and FreeBSD -current installed on my thinkpad laptop.
Linux's Grub2 is unable to boot FreeBSD directly from UEFI, I have to copy
the FreeBSD UEFI loader (/boot/boot.efi) into EFI partition.

You should copy loader.efi instead of boot1.efi since boot1 use is deprecated is what I meant. We should teach grub about UFS and maybe ZFS...

share/man/man8/uefi.8
127

Neither of these things are true. Bsdinstall has been updated, and gpart bootcode isn't used with EFI because these things aren't boot blocks but a program that needs to be installed in a special place

In D27782#621560, @imp wrote:
In D27782#621399, @imp wrote:

Also, boot1.efi is obsolete. We retain it only for special needs users: those with the bogus tiny ESP partitions and some really weird edge cases that loader.efi doesn't work for.

I have Ubuntu 20.10 and FreeBSD -current installed on my thinkpad laptop.
Linux's Grub2 is unable to boot FreeBSD directly from UEFI, I have to copy
the FreeBSD UEFI loader (/boot/boot.efi) into EFI partition.

You should copy loader.efi instead of boot1.efi since boot1 use is deprecated is what I meant. We should teach grub about UFS and maybe ZFS...

I did try copying loader.efi into efi partition, but it didn't work.