Skip to contentSkip to conversation

board/pc/readme.txt: fix output image name

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

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 board/pc/readme.txt: fix output image name

The instructions listed sdcard.img as output image name but board/pc/genimage-*.cfg generate it named as disk.img instead.

---
 board/pc/readme.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
board/pc/readme.txt +1 -1
index 33b479d..68ca211 100644
@@ -24,7 +24,7 @@ Bare PC sample config
 
   Write the image to a pendrive:
 
-  $ dd if=output/images/sdcard.img of=/dev/sdc; sync
+  $ dd if=output/images/disk.img of=/dev/sdc; sync
 
   Once it's done insert it into the target PC and boot.
 
Signature · 1 line
2.9.3
#1 lore raw

PATCH 2/2 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.

CONFIG_EFI was enabled in a separate kernel config fragment so that it doesn't affect pc_x86_64_bios_defconfig needlessly.

This was tested with qemu 2.6.0 running with kvm enabled and firmware EFI v2.60 by EDK II.

---
 board/pc/linux-efi.config       | 1 +
 configs/pc_x86_64_efi_defconfig | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
 create mode 100644 board/pc/linux-efi.config
board/pc/linux-efi.config new file +1 -0
new file mode 100644
index 0000000..7dcf296
@@ -0,0 +1 @@
+CONFIG_EFI=y
configs/pc_x86_64_efi_defconfig +1 -1
index 13194881..234f1d1 100644
@@ -32,7 +32,7 @@ BR2_LINUX_KERNEL_CUSTOM_VERSION=y
 BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.7"
 BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
 BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/qemu/x86_64/linux-4.7.config"
-BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="board/pc/linux-extras.config"
+BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="board/pc/linux-extras.config board/pc/linux-efi.config"
 BR2_LINUX_KERNEL_INSTALL_TARGET=y
 
 # Firmware
Signature · 1 line
2.9.3
#2 lore raw

PATCH 2/2 configs/pc_x86_64_efi_defconfig: enable kernel EFI support

Hello,

Added Gustavo in Cc, since he is the original author of this defconfig.

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.

CONFIG_EFI was enabled in a separate kernel config fragment so that it doesn't affect pc_x86_64_bios_defconfig needlessly.

This was tested with qemu 2.6.0 running with kvm enabled and firmware EFI v2.60 by EDK II.

Quoted 6 lines
---
 board/pc/linux-efi.config       | 1 +
 configs/pc_x86_64_efi_defconfig | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
 create mode 100644 board/pc/linux-efi.config

Is a separate linux configuration fragment really needed? Why not just enable CONFIG_EFI in the linux-extras.config?

Yes, it's technically not needed for a BIOS-based configuration, but the added size is probably not very significant, and I'm not sure it's worth having a separate linux config fragment for that.

Gustavo?

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
#3 lore raw

PATCH 2/2 configs/pc_x86_64_efi_defconfig: enable kernel EFI support

Quoted 7 lines · Thomas Petazzoni

Is a separate linux configuration fragment really needed? Why not just enable CONFIG_EFI in the linux-extras.config?

Yes, it's technically not needed for a BIOS-based configuration, but the added size is probably not very significant, and I'm not sure it's worth having a separate linux config fragment for that.

Quoted 5 lines

Gustavo?

Thanks!

Thomas

Hi.
Indeed, it won't hurt a bit, the main difference between the bios and efi defconfigs is the bootloader strategy, so on the kernel side "just give it the feature".
Regards.

#4 lore raw

PATCH 2/2 configs/pc_x86_64_efi_defconfig: enable kernel EFI support

Hello,

Quoted 3 lines · Gustavo Zacarias

Indeed, it won't hurt a bit, the main difference between the bios and efi defconfigs is the bootloader strategy, so on the kernel side "just give it the feature".

Thanks for the feedback. Erico, could you adjust your patch accordingly?

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
#5 lore raw

PATCH 2/2 configs/pc_x86_64_efi_defconfig: enable kernel EFI support

Hello,

Quoted 9 lines · Thomas Petazzoni

Hello,

Quoted 3 lines · Gustavo Zacarias

Indeed, it won't hurt a bit, the main difference between the bios and efi defconfigs is the bootloader strategy, so on the kernel side "just give it the feature".

Thanks for the feedback. Erico, could you adjust your patch accordingly?

Thanks for the review.
I was in doubt about that too and decided to go with separate at first, but no problem with me about adding it in linux-extras.config. I'll change it and re-submit.

Erico

#6 lore raw

PATCH 1/2 board/pc/readme.txt: fix output image name

In reply to Erico Nunes

Hello,

Quoted 7 lines · Erico Nunes

The instructions listed sdcard.img as output image name but board/pc/genimage-*.cfg generate it named as disk.img instead.

---
 board/pc/readme.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com