From 13bb4199386ddfc8a6aa5946e4aeabe6ef311b6b Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Tue, 19 Jul 2022 09:40:41 +0200 Subject: [PATCH] boot/grub2: update readme.txt details For the Qemu-compatible UEFI firmware, the kraxel.org pointed to by the readme.txt file is outdated. Instead, instruct users to use EDK2. either by building it from source, or by grabbing pre-built ones, or from their distributions. While at it, drop the pci=nocrs information, as it is no longer needed. Signed-off-by: Thomas Petazzoni Signed-off-by: Yann E. MORIN --- boot/grub2/readme.txt | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/boot/grub2/readme.txt b/boot/grub2/readme.txt index 0282fbdd13..5d59fb4e22 100644 --- a/boot/grub2/readme.txt +++ b/boot/grub2/readme.txt @@ -86,17 +86,14 @@ Notes on using Grub2 for x86/x86_64 EFI-based platforms To test your i386/x86-64 EFI image in Qemu ------------------------------------------ -1. Download the EFI BIOS for Qemu - Version IA32 or X64 depending on the chosen Grub2 - platform (i386-efi vs. x86-64-efi) - https://www.kraxel.org/repos/jenkins/edk2/ - (or use one provided by your distribution as OVMF) -2. Extract, and rename OVMF.fd to bios.bin and - CirrusLogic5446.rom to vgabios-cirrus.bin. -3. qemu-system-{i386,x86-64} -L ovmf-dir/ -hda disk.img -4. Make sure to pass pci=nocrs to the kernel command line, - to workaround a bug in the EFI BIOS regarding the - EFI framebuffer. +1. Download/install the EFI BIOS for Qemu + You can get it using the edk2 package in Buildroot (installed + in BINARIES_DIR), grab prebuilt images from the unofficial nightly + builds [0], or use one provided by your distribution as OVMF. + + [0] https://github.com/retrage/edk2-nightly + +2. qemu-system-{i386,x86-64} -bios -hda disk.img Notes on using Grub2 for ARM u-boot-based platforms =================================================== @@ -177,8 +174,13 @@ using qemu and EFI firmware built for qemu. 2. make 3. Download the EFI firmware for qemu aarch64 - https://www.kraxel.org/repos/jenkins/edk2/ - (or use one provided by your distribution as OVMF-aarch64 or AAVMF) + + You can get it using the edk2 package in Buildroot (installed + in BINARIES_DIR), grab prebuilt images from the unofficial nightly + builds [1], or use one provided by your distribution as OVMF-aarch64 + or AAVMF. + + [1] https://github.com/retrage/edk2-nightly 4. Run qemu with: