Skip to contentSkip to conversation

configs/pc_x86_64_efi_defconfig: enable kernel EFI support

PATCH New Erico Nunes 3 participants 3 messages Aug 22, 2016

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 configs/pc_x86_64_efi_defconfig: enable kernel EFI support

The pc_x86_64_efi reference defconfig is targeted towards an EFI environment but the kernel which comes with it does not enable EFI support by default.

Booting this defconfig without kernel EFI support on a qemu virtual machine with EFI firmware resulted in no output to tty1 or ttyS0. Enabling EFI support in the kernel fixed this and seems saner for an EFI reference Buildroot defconfig.

Adding CONFIG_EFI to board/pc/linux-extras.config also affects pc_x86_64_bios_defconfig which doesn't require it, however it was observed that the extra overhead is small and so this is preferred rather than having a separate config file.

This was tested with qemu 2.6.0 running with kvm enabled and firmware EFI v2.60 by EDK II. Also built and verified bios defconfig on the same setup but with BIOS firmware instead.

Cc Gustavo Zacarias <[email protected]>

---
Changes v1 -> v2:
- moved CONFIG_EFI to board/pc/linux-extras.config as the overhead is small and this is preferred rather than having a separate config file. (Suggested by Thomas Petazzoni and Gustavo Zacarias)

---
 board/pc/linux-extras.config | 3 +++
 1 file changed, 3 insertions(+)
board/pc/linux-extras.config +3 -0
index 3d8cc33..8c9c225 100644
@@ -40,3 +40,6 @@ CONFIG_RT2800USB_RT53XX=y
 CONFIG_RT2800USB_RT55XX=y
 # CONFIG_RTL_CARDS is not set
 CONFIG_RTL8XXXU=m
+
+# EFI support
+CONFIG_EFI=y
Signature · 1 line
2.9.3
#1 lore raw

PATCH v2 1/1 configs/pc_x86_64_efi_defconfig: enable kernel EFI support

Quoted 15 lines · Erico Nunes

The pc_x86_64_efi reference defconfig is targeted towards an EFI environment but the kernel which comes with it does not enable EFI support by default.

Booting this defconfig without kernel EFI support on a qemu virtual machine with EFI firmware resulted in no output to tty1 or ttyS0. Enabling EFI support in the kernel fixed this and seems saner for an EFI
reference Buildroot defconfig.

Adding CONFIG_EFI to board/pc/linux-extras.config also affects pc_x86_64_bios_defconfig which doesn't require it, however it was observed that the extra overhead is small and so this is preferred rather than having a separate config file.

Quoted 6 lines

This was tested with qemu 2.6.0 running with kvm enabled and firmware EFI v2.60 by EDK II. Also built and verified bios defconfig on the same setup but with BIOS firmware instead.

Cc Gustavo Zacarias <[email protected]>
#2 lore raw

PATCH v2 1/1 configs/pc_x86_64_efi_defconfig: enable kernel EFI support

In reply to Erico Nunes
Quoted 20 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Erico" == Erico Nunes <[email protected]> writes:

The pc_x86_64_efi reference defconfig is targeted towards an EFI environment but the kernel which comes with it does not enable EFI support by default.

Booting this defconfig without kernel EFI support on a qemu virtual machine with EFI firmware resulted in no output to tty1 or ttyS0. Enabling EFI support in the kernel fixed this and seems saner for an EFI reference Buildroot defconfig.

Adding CONFIG_EFI to board/pc/linux-extras.config also affects pc_x86_64_bios_defconfig which doesn't require it, however it was observed that the extra overhead is small and so this is preferred rather than having a separate config file.

This was tested with qemu 2.6.0 running with kvm enabled and firmware EFI v2.60 by EDK II. Also built and verified bios defconfig on the same setup but with BIOS firmware instead.

Quoted 7 lines
Cc Gustavo Zacarias <[email protected]>

---
Changes v1 -> v2:
- moved CONFIG_EFI to board/pc/linux-extras.config as the overhead is small and this is preferred rather than having a separate config file. (Suggested by Thomas Petazzoni and Gustavo Zacarias)

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard