Opened 20 months ago

Closed 20 months ago

Last modified 19 months ago

#17085 closed enhancement (worksforme)

Refine kernel requirements for UEFI boot

Reported by: David Bryant Owned by: blfs-book
Priority: normal Milestone: 11.3
Component: BOOK Version: git
Severity: minor Keywords: GRUB EFI
Cc:

Description

The current instructions in BLFS chapter 5 (Using GRUB to Set Up the Boot Process with UEFI) contend that some unnecessary kernel configuration options are actually needed. Specifically:

CONFIG_PARTITION_ADVANCED is not necessary CONFIG_SYSFB_SIMPLEFB is not necessary CONFIG_EFI_RUNTIME_MAP no longer exists (kernel 5.19.8) CONFIG_SIMPLEDRM no longer exists, either

I can't find a new name for CONFIG_EFI_RUNTIME_MAP. I do see "CONFIG_EFI_RUNTIME_WRAPPERS=y" in my .config file. But I can't find it in the menu, to try to turn it off. Not certain what's up with that.

I do have CONFIG_EFI_FB=y which, I think, has supplanted CONFIG_SIMPLEDRM. This option appears under "Support for framebuffer devices --->". I also have CONFIG_MS_DOS=y and CONFIG_VFAT_FS=y (under File Systems --->), but I don't think those are relevant ... the EFI firmware understands VFAT well enough to load grubx64.efi from the hard disk.

I have made the changes in "grub-setup.xml", and I have verified that it renders nicely. The full path to the attached file in the BLFS repo is postlfs/filesystems/uefi-bootloaders/grub.setup.xml.

Attachments (1)

grub-setup.xml (19.1 KB ) - added by David Bryant 20 months ago.
Modified grub-setup.xml

Download all attachments as: .zip

Change History (9)

by David Bryant, 20 months ago

Attachment: grub-setup.xml added

Modified grub-setup.xml

comment:1 by Xi Ruoyao, 20 months ago

CONFIG_SIMPLEDRM is a typo, it should be CONFIG_DRM_SIMPLEDRM and I'll fix it.

$ grep CONFIG_EFI_RUNTIME_MAP /boot/config-5.19.8
CONFIG_EFI_RUNTIME_MAP=y

We deliberately use CONFIG_SYSFB_SIMPLEFB and CONFIG_DRM_SIMPLEDRM instead of CONFIG_EFI_FB. The kernel developers consider CONFIG_EFI_FB (and everything under CONFIG_FB but not itself) legacy.

If you don't select CONFIG_PARTITION_ADVANCED, then CONFIG_EFI_PARTITION is enabled by default. But we can't tell everyone not to select CONFIG_PARTITION_ADVANCED, as somebody may need it. So we explicitly selects CONFIG_EFI_PARTITION here.

comment:2 by Xi Ruoyao, 20 months ago

Resolution: worksforme
Status: newclosed

Typo fixed at r11.2-142-g9c44927210. Closing.

Last edited 20 months ago by Xi Ruoyao (previous) (diff)

comment:3 by Xi Ruoyao, 20 months ago

Perhaps CONFIG_EFI_RUNTIME_MAP is not needed because it looks like a debug option. And I just copied it from the old grub-efi hint.

I'll test to remove it.

in reply to:  description comment:4 by Xi Ruoyao, 20 months ago

Replying to 17085:

I also have CONFIG_MS_DOS=y and CONFIG_VFAT_FS=y (under File Systems --->), but I don't think those are relevant ... the EFI firmware understands VFAT well enough to load grubx64.efi from the hard disk.

It's not possible to mount /boot/efi without CONFIG_VFAT_FS. It can be y/M, but not n.

comment:5 by Xi Ruoyao, 20 months ago

CONFIG_EFI_RUNTIME_MAP removed at r11.2-143-g27329c077d, and CONFIG_VFAT_FS added at r11.2-144-g7027897a70.

comment:6 by David Bryant, 19 months ago

Thank you for clarifying the kernel configuraton options. But what about all the corrections to grammar, idiom, and punctuation?

in reply to:  6 comment:7 by pierre, 19 months ago

Replying to David Bryant:

Thank you for clarifying the kernel configuraton options. But what about all the corrections to grammar, idiom, and punctuation?

Reading this ticket and its comments, I cannot figure out where you mentioned them. I guess the reason is you sent the full file grub-setup.xml, so it is not evident to see that there are also grammar, idiom, and punctuation fixes. It's much better to send a patch (using git diff), so that it is easy to see what is changed.

I'll try to update the book with your changes.

comment:8 by pierre, 19 months ago

Done at c8391c3d85. This may need reviewing again...

Last edited 19 months ago by pierre (previous) (diff)
Note: See TracTickets for help on using tickets.