[SRU][O:raspi/N:raspi][PATCH 0/2] CONFIG_EFI_STUB support disabled since 6.5.0-1002.2 (LP: #2053147)

Juerg Haefliger juerg.haefliger at canonical.com
Mon Feb 24 14:11:35 UTC 2025


BugLink: https://bugs.launchpad.net/bugs/2053147

[Impact]

Looks like since commmit 0d02ca7853f4e487ff8b912b0d1d43ceb31a528b
(https://git.launchpad.net/ubuntu/+source/linux-raspi/commit/?h=applied/ubuntu/d
evel&id=0d02ca7853f4e487ff8b912b0d1d43ceb31a528b) The support for EFI in the
kernel config was disabled with no mention of why:

"""
- [Config] raspi: Set EFI=n
"""

This disables support for CONFIG_EFI_STUB which means that the kernel cannot be
loaded via EFI directly.

Any reasons for this? We are booting RPI by setting u-boot to launch in EFI
mode, which runs grub.efi and then we load our entries from there, but this
totally breaks support for that.

This worked until the previous kernel version with no issues that we could find.
Is there anything we can do to revert this and re-enable this option int he
kernel?

[Fix]

Re-enable CONFIG_EFI.

[Test Case]

Boot kernel via EFI.

[Where Problems Could Occur]

Boot issues with the official non-EFI Raspberry Pi firmware/bootloader.
Additional interference due to new and/or changed config options.

[Notes]

Booting via EFI is not officially supported by Canonical. We're re-enabling this
option as a courtesy to our users. We will turn it back off if it introduces
problems.



More information about the kernel-team mailing list