From: Dick Olsson <hi@senzilla.io> To: buildroot@busybox.net Subject: [Buildroot] [PATCH v3 06/11] configs/pc_x86_64_defconfig: build the EDK2 firmware from source Date: Fri, 18 Dec 2020 20:27:38 +0000 [thread overview] Message-ID: <20201218202646.1060123-7-hi@senzilla.io> (raw) In-Reply-To: <20201218202646.1060123-1-hi@senzilla.io> Prior to this, you had to manually download a pre-built EDK2 flash device image (OVMF_CODE.fd) in order to boot this configuration with QEMU. Now, the configuration is building EDK2 from source. Signed-off-by: Dick Olsson <hi@senzilla.io> --- board/pc/readme.txt | 9 ++++----- configs/pc_x86_64_efi_defconfig | 2 ++ 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/board/pc/readme.txt b/board/pc/readme.txt index 41aec50d36..c06ffb0a51 100644 --- a/board/pc/readme.txt +++ b/board/pc/readme.txt @@ -61,12 +61,11 @@ Run the emulation with: qemu-system-x86_64 \ -M pc \ - -bios </path/to/OVMF_CODE.fd> \ + -drive file=output/images/OVMF_CODE.fd,if=pflash,format=raw \ + -drive file=output/images/OVMF_VARS.fd,if=pflash,format=raw \ -drive file=output/images/disk.img,if=virtio,format=raw \ -net nic,model=virtio \ -net user -Note that </path/to/OVMF.fd> needs to point to a valid x86_64 UEFI -firmware image for qemu. It may be provided by your distribution as a -edk2 or OVMF package, in path such as -/usr/share/edk2/ovmf/OVMF_CODE.fd . +Note that output/images/OVMF_*.fd are the flash device files built by +the EDK2 package. diff --git a/configs/pc_x86_64_efi_defconfig b/configs/pc_x86_64_efi_defconfig index 984fc8f92f..1680cda9bb 100644 --- a/configs/pc_x86_64_efi_defconfig +++ b/configs/pc_x86_64_efi_defconfig @@ -14,6 +14,8 @@ BR2_PACKAGE_HOST_GENIMAGE=y BR2_PACKAGE_HOST_MTOOLS=y # Bootloader +BR2_TARGET_EDK2=y +BR2_TARGET_EDK2_PLATFORM_OVMF_X64=y BR2_TARGET_GRUB2=y BR2_TARGET_GRUB2_X86_64_EFI=y -- 2.25.1
next prev parent reply other threads:[~2020-12-18 20:27 UTC|newest] Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-12-18 20:27 [Buildroot] [PATCH v3 00/11] Introduce EDK2 firmware package Dick Olsson 2020-12-18 20:27 ` [Buildroot] [PATCH v3 01/11] boot/arm-trusted-firmware: Bump to version 2.4 Dick Olsson 2020-12-30 9:30 ` Yann E. MORIN 2020-12-18 20:27 ` [Buildroot] [PATCH v3 02/11] boot/mv-ddr-marvell: Bump to HEAD as of 20201207 Dick Olsson 2020-12-30 9:30 ` Yann E. MORIN 2021-01-09 13:32 ` Sergey Matyukevich 2021-01-10 9:37 ` D. Olsson 2021-01-10 9:47 ` Baruch Siach 2021-01-10 10:09 ` Sergey Matyukevich 2020-12-18 20:27 ` [Buildroot] [PATCH v3 03/11] package/edk2-platforms: new package Dick Olsson 2020-12-30 13:39 ` Yann E. MORIN 2020-12-18 20:27 ` [Buildroot] [PATCH v3 04/11] boot/edk2: " Dick Olsson 2020-12-30 10:51 ` Yann E. MORIN 2020-12-30 20:22 ` D. Olsson 2020-12-30 21:30 ` Yann E. MORIN 2020-12-18 20:27 ` [Buildroot] [PATCH v3 05/11] configs/aarch64_efi_defconfig: build the EDK2 firmware from source Dick Olsson 2020-12-30 12:54 ` Yann E. MORIN 2020-12-18 20:27 ` Dick Olsson [this message] 2020-12-18 20:27 ` [Buildroot] [PATCH v3 07/11] boot/arm-trusted-firmware: add EDK2 as BL33 option Dick Olsson 2020-12-30 13:00 ` Yann E. MORIN 2020-12-18 20:27 ` [Buildroot] [PATCH v3 08/11] configs/qemu_aarch64_sbsa_defconfig: new config for QEMU sbsa-ref Dick Olsson 2020-12-30 13:11 ` Yann E. MORIN 2020-12-18 20:27 ` [Buildroot] [PATCH v3 09/11] configs/qemu_aarch64_virt_efi_defconfig: new config for QEMU Virt EFI Dick Olsson 2020-12-30 13:30 ` Yann E. MORIN 2021-01-05 9:09 ` D. Olsson 2020-12-18 20:28 ` [Buildroot] [PATCH v3 10/11] configs/socionext_developerbox_defconfig: new config for Developerbox Dick Olsson 2020-12-18 20:28 ` [Buildroot] [PATCH v3 11/11] configs/solidrun_macchiatobin_efi_defconfig: EFI config for MacchiatoBin Dick Olsson 2020-12-19 18:08 ` Baruch Siach 2020-12-30 13:41 ` [Buildroot] [PATCH v3 00/11] Introduce EDK2 firmware package Yann E. MORIN
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20201218202646.1060123-7-hi@senzilla.io \ --to=hi@senzilla.io \ --cc=buildroot@busybox.net \ --subject='Re: [Buildroot] [PATCH v3 06/11] configs/pc_x86_64_defconfig: build the EDK2 firmware from source' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.