Name Date Size #Lines LOC

..--

0001-build-Fix-GRUB-i386-pc-build-with-Ubuntu-gcc.patchH A D05-Jun-202528.8 KiB314228

0002-yylex-Make-lexer-fatal-errors-actually-be-fatal.patchH A D05-Jun-20252.7 KiB7460

0003-safemath-Add-some-arithmetic-primitives-that-check-f.patchH A D05-Jun-20254.5 KiB129119

0004-calloc-Make-sure-we-always-have-an-overflow-checking.patchH A D05-Jun-20256.8 KiB247227

0005-calloc-Use-calloc-at-most-places.patchH A D05-Jun-202571.8 KiB1,8411,676

0006-malloc-Use-overflow-checking-primitives-where-we-do-.patchH A D05-Jun-202537.2 KiB1,3271,227

0007-iso9660-Don-t-leak-memory-on-realloc-failures.patchH A D05-Jun-20252.1 KiB7366

0008-font-Do-not-load-more-than-one-NAME-section.patchH A D05-Jun-20251.4 KiB4237

0009-gfxmenu-Fix-double-free-in-load_image.patchH A D05-Jun-20251.3 KiB4032

0010-xnu-Fix-double-free-in-grub_xnu_devprop_add_property.patchH A D05-Jun-20251.8 KiB5951

0011-lzma-Make-sure-we-don-t-dereference-past-array.patchH A D05-Jun-20252.1 KiB5648

0012-term-Fix-overflow-on-user-inputs.patchH A D05-Jun-20252.5 KiB7058

0013-udf-Fix-memory-leak.patchH A D05-Jun-20251.6 KiB6052

0014-multiboot2-Fix-memory-leak-if-grub_create_loader_cmd.patchH A D05-Jun-20251.2 KiB3933

0015-tftp-Do-not-use-priority-queue.patchH A D05-Jun-20257.9 KiB284269

0016-relocator-Protect-grub_relocator_alloc_chunk_addr-in.patchH A D05-Jun-20254.9 KiB154133

0017-relocator-Protect-grub_relocator_alloc_chunk_align-m.patchH A D05-Jun-202514 KiB342317

0018-script-Remove-unused-fields-from-grub_script_functio.patchH A D05-Jun-20251 KiB3832

0019-script-Avoid-a-use-after-free-when-redefining-a-func.patchH A D05-Jun-20253.7 KiB114100

0020-relocator-Fix-grub_relocator_alloc_chunk_align-top-m.patchH A D05-Jun-20251.5 KiB5040

0021-hfsplus-Fix-two-more-overflows.patchH A D05-Jun-20251.8 KiB6251

0022-lvm-Fix-two-more-potential-data-dependent-alloc-over.patchH A D05-Jun-20253.4 KiB117108

0023-emu-Make-grub_free-NULL-safe.patchH A D05-Jun-20251.1 KiB3933

0024-efi-Fix-some-malformed-device-path-arithmetic-errors.patchH A D05-Jun-20258.4 KiB240218

0025-efi-chainloader-Propagate-errors-from-copy_file_path.patchH A D05-Jun-20252.8 KiB7968

0026-efi-Fix-use-after-free-in-halt-reboot-path.patchH A D05-Jun-20256.5 KiB184173

0027-loader-linux-Avoid-overflow-on-initrd-size-calculati.patchH A D05-Jun-20251.1 KiB3327

0028-linux-Fix-integer-overflows-in-initrd-size-handling.patchH A D05-Jun-20255 KiB174161

0029-efi-Make-shim_lock-GUID-and-protocol-type-public.patchH A D05-Jun-20253.2 KiB9883

0030-efi-Return-grub_efi_status_t-from-grub_efi_get_varia.patchH A D05-Jun-20255.3 KiB150132

0031-efi-Add-a-function-to-read-EFI-variables-with-attrib.patchH A D05-Jun-20253.1 KiB7969

0032-efi-Add-secure-boot-detection.patchH A D05-Jun-202545.7 KiB542536

0033-verifiers-Move-verifiers-API-to-kernel-image.patchH A D05-Jun-2025154.8 KiB1,6511,632

0034-efi-Move-the-shim_lock-verifier-to-the-GRUB-core.patchH A D05-Jun-2025765.7 KiB13,22613,209

0035-kern-Add-lockdown-support.patchH A D05-Jun-202555.5 KiB764737

0036-kern-lockdown-Set-a-variable-if-the-GRUB-is-locked-d.patchH A D05-Jun-20251.8 KiB5848

0037-efi-Lockdown-the-GRUB-when-the-UEFI-Secure-Boot-is-e.patchH A D05-Jun-20251.6 KiB5043

0038-efi-Use-grub_is_lockdown-instead-of-hardcoding-a-dis.patchH A D05-Jun-20258.8 KiB233212

0039-acpi-Don-t-register-the-acpi-command-when-locked-dow.patchH A D05-Jun-20252.8 KiB7766

0040-mmap-Don-t-register-cutmem-and-badram-commands-when-.patchH A D05-Jun-20252.6 KiB7160

0041-commands-Restrict-commands-that-can-load-BIOS-or-DT-.patchH A D05-Jun-20254.1 KiB10694

0042-commands-setpci-Restrict-setpci-command-when-locked-.patchH A D05-Jun-20251.3 KiB3831

0043-commands-hdparm-Restrict-hdparm-command-when-locked-.patchH A D05-Jun-20251.2 KiB3629

0044-gdb-Restrict-GDB-access-when-locked-down.patchH A D05-Jun-20252.3 KiB6357

0045-loader-xnu-Don-t-allow-loading-extension-and-package.patchH A D05-Jun-20252.6 KiB6257

0046-docs-Document-the-cutmem-command.patchH A D05-Jun-20252.6 KiB6658

0047-dl-Only-allow-unloading-modules-that-are-not-depende.patchH A D05-Jun-20252.9 KiB8876

0048-usb-Avoid-possible-out-of-bound-accesses-caused-by-m.patchH A D05-Jun-20253.7 KiB11798

0049-mmap-Fix-memory-leak-when-iterating-over-mapped-memo.patchH A D05-Jun-20251.1 KiB4132

0050-net-net-Fix-possible-dereference-to-of-a-NULL-pointe.patchH A D05-Jun-20251.4 KiB4134

0051-net-tftp-Fix-dangling-memory-pointer.patchH A D05-Jun-20251.1 KiB3528

0052-kern-parser-Fix-resource-leak-if-argc-0.patchH A D05-Jun-20251.5 KiB5242

0053-kern-efi-Fix-memory-leak-on-failure.patchH A D05-Jun-2025941 3225

0054-kern-efi-mm-Fix-possible-NULL-pointer-dereference.patchH A D05-Jun-20252.1 KiB6757

0055-gnulib-regexec-Resolve-unused-variable.patchH A D05-Jun-20253.4 KiB9181

0056-gnulib-regcomp-Fix-uninitialized-token-structure.patchH A D05-Jun-20253.2 KiB8374

0057-gnulib-argp-help-Fix-dereference-of-a-possibly-NULL-.patchH A D05-Jun-20253.8 KiB8376

0058-gnulib-regexec-Fix-possible-null-dereference.patchH A D05-Jun-20253.4 KiB8476

0059-gnulib-regcomp-Fix-uninitialized-re_token.patchH A D05-Jun-20253.4 KiB8981

0060-io-lzopio-Resolve-unnecessary-self-assignment-errors.patchH A D05-Jun-20251.2 KiB4335

0061-zstd-Initialize-seq_t-structure-fully.patchH A D05-Jun-20251.4 KiB3630

0062-kern-partition-Check-for-NULL-before-dereferencing-i.patchH A D05-Jun-20251.3 KiB4536

0063-disk-ldm-Make-sure-comp-data-is-freed-before-exiting.patchH A D05-Jun-20253.6 KiB130121

0064-disk-ldm-If-failed-then-free-vg-variable-too.patchH A D05-Jun-2025870 3025

0065-disk-ldm-Fix-memory-leak-on-uninserted-lv-references.patchH A D05-Jun-20251.6 KiB5245

0066-disk-cryptodisk-Fix-potential-integer-overflow.patchH A D05-Jun-20251.9 KiB5246

0067-hfsplus-Check-that-the-volume-name-length-is-valid.patchH A D05-Jun-20251.4 KiB4537

0068-zfs-Fix-possible-negative-shift-operation.patchH A D05-Jun-20251.5 KiB4436

0069-zfs-Fix-resource-leaks-while-constructing-path.patchH A D05-Jun-20254.1 KiB123108

0070-zfs-Fix-possible-integer-overflows.patchH A D05-Jun-20251.9 KiB5848

0071-zfsinfo-Correct-a-check-for-error-allocating-memory.patchH A D05-Jun-20251.3 KiB3729

0072-affs-Fix-memory-leaks.patchH A D05-Jun-20252.4 KiB8471

0073-libgcrypt-mpi-Fix-possible-unintended-sign-extension.patchH A D05-Jun-20252 KiB5143

0074-libgcrypt-mpi-Fix-possible-NULL-dereference.patchH A D05-Jun-20251.7 KiB5042

0075-syslinux-Fix-memory-leak-while-parsing.patchH A D05-Jun-20251.2 KiB4537

0076-normal-completion-Fix-leaking-of-memory-when-process.patchH A D05-Jun-20251.5 KiB5444

0077-commands-hashsum-Fix-a-memory-leak.patchH A D05-Jun-20251.9 KiB5851

0079-video-efi_gop-Remove-unnecessary-return-value-of-gru.patchH A D05-Jun-20253.2 KiB9682

0080-video-fb-fbfill-Fix-potential-integer-overflow.patchH A D05-Jun-20253.2 KiB8066

0081-video-fb-video_fb-Fix-multiple-integer-overflows.patchH A D05-Jun-20253.9 KiB10696

0082-video-fb-video_fb-Fix-possible-integer-overflow.patchH A D05-Jun-20251.3 KiB4134

0083-video-readers-jpeg-Test-for-an-invalid-next-marker-r.patchH A D05-Jun-20251.4 KiB4033

0084-gfxmenu-gui_list-Remove-code-that-coverity-is-flaggi.patchH A D05-Jun-20251.3 KiB3630

0085-loader-bsd-Check-for-NULL-arg-up-front.patchH A D05-Jun-20251.8 KiB4939

0086-loader-xnu-Fix-memory-leak.patchH A D05-Jun-20251.1 KiB4031

0087-loader-xnu-Free-driverkey-data-when-an-error-is-dete.patchH A D05-Jun-20252.3 KiB7969

0088-loader-xnu-Check-if-pointer-is-NULL-before-using-it.patchH A D05-Jun-20251.4 KiB4436

0089-util-grub-install-Fix-NULL-pointer-dereferences.patchH A D05-Jun-20251.3 KiB4332

0090-util-grub-editenv-Fix-incorrect-casting-of-a-signed-.patchH A D05-Jun-20251.4 KiB4839

0091-util-glue-efi-Fix-incorrect-use-of-a-possibly-negati.patchH A D05-Jun-20251.6 KiB5244

0092-script-execute-Fix-NULL-dereference-in-grub_script_e.patchH A D05-Jun-20251 KiB3024

0093-commands-ls-Require-device_name-is-not-NULL-before-p.patchH A D05-Jun-20251 KiB3528

0094-script-execute-Avoid-crash-when-using-outside-a-func.patchH A D05-Jun-20251.4 KiB3932

0095-lib-arg-Block-repeated-short-options-that-require-an.patchH A D05-Jun-20251.7 KiB5748

0096-script-execute-Don-t-crash-on-a-for-loop-with-no-ite.patchH A D05-Jun-20251.2 KiB4132

0097-commands-menuentry-Fix-quoting-in-setparams_prefix.patchH A D05-Jun-20251.6 KiB4938

0098-kern-misc-Always-set-end-in-grub_strtoull.patchH A D05-Jun-20251.3 KiB4840

0099-video-readers-jpeg-Catch-files-with-unsupported-quan.patchH A D05-Jun-20252 KiB5445

0100-video-readers-jpeg-Catch-OOB-reads-writes-in-grub_jp.patchH A D05-Jun-20251.5 KiB4940

0101-video-readers-jpeg-Don-t-decode-data-before-start-of.patchH A D05-Jun-20251.6 KiB4133

0102-term-gfxterm-Don-t-set-up-a-font-with-glyphs-that-ar.patchH A D05-Jun-20252.2 KiB5345

0103-fs-fshelp-Catch-impermissibly-large-block-sizes-in-r.patchH A D05-Jun-20251.6 KiB4841

0104-fs-hfsplus-Don-t-fetch-a-key-beyond-the-end-of-the-n.patchH A D05-Jun-20251.1 KiB3429

0105-fs-hfsplus-Don-t-use-uninitialized-data-on-corrupt-f.patchH A D05-Jun-20254.4 KiB10995

0106-fs-hfs-Disable-under-lockdown.patchH A D05-Jun-20251.2 KiB4839

0107-fs-sfs-Fix-over-read-of-root-object-name.patchH A D05-Jun-20251.8 KiB5143

0108-fs-jfs-Do-not-move-to-leaf-level-if-name-length-is-n.patchH A D05-Jun-20251.1 KiB3528

0109-fs-jfs-Limit-the-extents-that-getblk-can-consider.patchH A D05-Jun-20252.1 KiB6354

0110-fs-jfs-Catch-infinite-recursion.patchH A D05-Jun-20251.6 KiB4740

0111-fs-nilfs2-Reject-too-large-keys.patchH A D05-Jun-20251.5 KiB4740

0112-fs-nilfs2-Don-t-search-children-if-provided-number-i.patchH A D05-Jun-20253.4 KiB10189

0113-fs-nilfs2-Properly-bail-on-errors-in-grub_nilfs2_btr.patchH A D05-Jun-20252.1 KiB6958

0114-io-gzio-Bail-if-gzio-tl-td-is-NULL.patchH A D05-Jun-20251.9 KiB6861

0115-io-gzio-Add-init_dynamic_block-clean-up-if-unpacking.patchH A D05-Jun-20251.9 KiB6860

0116-io-gzio-Catch-missing-values-in-huft_build-and-bail.patchH A D05-Jun-20251.9 KiB5850

0117-io-gzio-Zero-gzio-tl-td-in-init_dynamic_block-if-huf.patchH A D05-Jun-20251.3 KiB4337

0118-disk-lvm-Don-t-go-beyond-the-end-of-the-data-we-read.patchH A D05-Jun-20251.5 KiB5041

0119-disk-lvm-Don-t-blast-past-the-end-of-the-circular-me.patchH A D05-Jun-20251.5 KiB4438

0120-disk-lvm-Bail-on-missing-PV-list.patchH A D05-Jun-20251 KiB3629

0121-disk-lvm-Do-not-crash-if-an-expected-string-is-not-f.patchH A D05-Jun-20252.3 KiB8474

0122-disk-lvm-Do-not-overread-metadata.patchH A D05-Jun-20252.7 KiB11295

0123-disk-lvm-Sanitize-rlocn-offset-to-prevent-wild-read.patchH A D05-Jun-20251.3 KiB4235

0124-disk-lvm-Do-not-allow-a-LV-to-be-it-s-own-segment-s-.patchH A D05-Jun-20251.2 KiB4034

0125-fs-btrfs-Validate-the-number-of-stripes-parities-in-.patchH A D05-Jun-20251.2 KiB3428

0126-fs-btrfs-Squash-some-uninitialized-reads.patchH A D05-Jun-20251.5 KiB4437

0127-kern-parser-Fix-a-memory-leak.patchH A D05-Jun-20252.2 KiB7869

0128-kern-parser-Introduce-process_char-helper.patchH A D05-Jun-20253.5 KiB121114

0129-kern-parser-Introduce-terminate_arg-helper.patchH A D05-Jun-20251.9 KiB6759

0130-kern-parser-Refactor-grub_parser_split_cmdline-clean.patchH A D05-Jun-20252.4 KiB9380

0131-kern-buffer-Add-variable-sized-heap-buffer.patchH A D05-Jun-2025126.4 KiB1,2381,231

0132-kern-parser-Fix-a-stack-buffer-overflow.patchH A D05-Jun-20256.9 KiB249221

0133-kern-efi-Add-initial-stack-protector-implementation.patchH A D05-Jun-202516.6 KiB467444

0134-util-mkimage-Remove-unused-code-to-add-BSS-section.patchH A D05-Jun-20252.4 KiB6254

0135-util-mkimage-Use-grub_host_to_target32-instead-of-gr.patchH A D05-Jun-20256.3 KiB114104

0136-util-mkimage-Always-use-grub_host_to_target32-to-ini.patchH A D05-Jun-20251.6 KiB4033

0137-util-mkimage-Unify-more-of-the-PE32-and-PE32-header-.patchH A D05-Jun-20257.5 KiB170158

0138-util-mkimage-Reorder-PE-optional-header-fields-set-u.patchH A D05-Jun-20253.5 KiB7463

0139-util-mkimage-Improve-data_size-value-calculation.patchH A D05-Jun-20251.9 KiB5142

0140-util-mkimage-Refactor-section-setup-to-use-a-helper.patchH A D05-Jun-20259.1 KiB222206

0141-util-mkimage-Add-an-option-to-import-SBAT-metadata-i.patchH A D05-Jun-202510.3 KiB265246

0142-grub-install-common-Add-sbat-option.patchH A D05-Jun-20252.8 KiB8676

0143-shim_lock-Only-skip-loading-shim_lock-verifier-with-.patchH A D05-Jun-20259.6 KiB271248

0144-kern-misc-Split-parse_printf_args-into-format-parsin.patchH A D05-Jun-20251.5 KiB5144

0145-kern-misc-Add-STRING-type-for-internal-printf-format.patchH A D05-Jun-20252.2 KiB6962

0146-kern-misc-Add-function-to-check-printf-format-agains.patchH A D05-Jun-20257.5 KiB220200

0147-gfxmenu-gui-Check-printf-format-in-the-gui_progress_.patchH A D05-Jun-20252.3 KiB6354

0148-templates-Disable-the-os-prober-by-default.patchH A D05-Jun-20254 KiB8874

0149-kern-mm-Fix-grub_debug_calloc-compilation-error.patchH A D05-Jun-20251.1 KiB3427

0150-Makefile-Make-libgrub.pp-depend-on-config-util.h.patchH A D05-Jun-20257 KiB6757

Config.inH A D05-Jun-20255 KiB165135

grub.cfgH A D05-Jun-2025117 75

grub2.hashH A D05-Jun-2025189 43

grub2.mkH A D05-Jun-20257.8 KiB213164

readme.txtH A D05-Jun-20255.8 KiB191148

readme.txt

1Notes on using Grub2 for BIOS-based platforms
2=============================================
3
41. Create a disk image
5   dd if=/dev/zero of=disk.img bs=1M count=32
62. Partition it (either legacy or GPT style partitions work)
7   cfdisk disk.img
8    - Create one partition, type Linux, for the root
9      filesystem. The only constraint is to make sure there
10      is enough free space *before* the first partition to
11      store Grub2. Leaving 1 MB of free space is safe.
123. Setup loop device and loop partitions
13   sudo losetup -f disk.img
14   sudo partx -a /dev/loop0
154. Prepare the root partition
16   sudo mkfs.ext3 -L root /dev/loop0p1
17   sudo mount /dev/loop0p1 /mnt
18   sudo tar -C /mnt -xf output/images/rootfs.tar
19   sudo umount /mnt
205. Install Grub2
21   sudo ./output/host/sbin/grub-bios-setup \
22        -b ./output/host/lib/grub/i386-pc/boot.img \
23        -c ./output/images/grub.img -d . /dev/loop0
246. Cleanup loop device
25   sudo partx -d /dev/loop0
26   sudo losetup -d /dev/loop0
277. Your disk.img is ready!
28
29Using genimage
30--------------
31
32If you use genimage to generate your complete image,
33installing Grub can be tricky. Here is how to achieve Grub's
34installation with genimage:
35
36partition boot {
37    in-partition-table = "no"
38    image = "path_to_boot.img"
39    offset = 0
40    size = 512
41}
42partition grub {
43    in-partition-table = "no"
44    image = "path_to_grub.img"
45    offset = 512
46}
47
48The result is not byte to byte identical to what
49grub-bios-setup does but it works anyway.
50
51To test your BIOS image in Qemu
52-------------------------------
53
54qemu-system-{i386,x86-64} -hda disk.img
55
56Notes on using Grub2 for x86/x86_64 EFI-based platforms
57=======================================================
58
591. Create a disk image
60   dd if=/dev/zero of=disk.img bs=1M count=32
612. Partition it with GPT partitions
62   cgdisk disk.img
63    - Create a first partition, type EF00, for the
64      bootloader and kernel image
65    - Create a second partition, type 8300, for the root
66      filesystem.
673. Setup loop device and loop partitions
68   sudo losetup -f disk.img
69   sudo partx -a /dev/loop0
704. Prepare the boot partition
71   sudo mkfs.vfat -n boot /dev/loop0p1
72   sudo mount /dev/loop0p1 /mnt
73   sudo cp -a output/images/efi-part/* /mnt/
74   sudo cp output/images/bzImage /mnt/
75   sudo umount /mnt
765. Prepare the root partition
77   sudo mkfs.ext3 -L root /dev/loop0p2
78   sudo mount /dev/loop0p2 /mnt
79   sudo tar -C /mnt -xf output/images/rootfs.tar
80   sudo umount /mnt
816  Cleanup loop device
82   sudo partx -d /dev/loop0
83   sudo losetup -d /dev/loop0
847. Your disk.img is ready!
85
86To test your i386/x86-64 EFI image in Qemu
87------------------------------------------
88
891. Download the EFI BIOS for Qemu
90   Version IA32 or X64 depending on the chosen Grub2
91   platform (i386-efi vs. x86-64-efi)
92   https://www.kraxel.org/repos/jenkins/edk2/
93   (or use one provided by your distribution as OVMF)
942. Extract, and rename OVMF.fd to bios.bin and
95   CirrusLogic5446.rom to vgabios-cirrus.bin.
963. qemu-system-{i386,x86-64} -L ovmf-dir/ -hda disk.img
974. Make sure to pass pci=nocrs to the kernel command line,
98   to workaround a bug in the EFI BIOS regarding the
99   EFI framebuffer.
100
101Notes on using Grub2 for ARM u-boot-based platforms
102===================================================
103
104The following steps show how to use the Grub2 arm-uboot platform
105support in the simplest way possible and with a single
106buildroot-generated filesystem.
107
108 1. Load qemu_arm_vexpress_defconfig
109
110 2. Enable u-boot with the vexpress_ca9x4 board name and with
111    u-boot.elf image format.
112
113 3. Enable grub2 for the arm-uboot platform.
114
115 4. Enable "Install kernel image to /boot in target" in the kernel
116    menu to populate a /boot directory with zImage in it.
117
118 5. The upstream u-boot vexpress_ca9x4 doesn't have CONFIG_API enabled
119    by default, which is required.
120
121    Before building, patch u-boot (for example, make u-boot-extract to
122    edit the source before building) file
123    include/configs/vexpress_common.h to define:
124
125    #define CONFIG_API
126    #define CONFIG_SYS_MMC_MAX_DEVICE   1
127
128 6. Create a custom grub2 config file with the following contents and
129    set its path in BR2_TARGET_GRUB2_CFG:
130
131    set default="0"
132    set timeout="5"
133
134    menuentry "Buildroot" {
135        set root='(hd0)'
136        linux /boot/zImage root=/dev/mmcblk0 console=ttyAMA0
137        devicetree /boot/vexpress-v2p-ca9.dtb
138    }
139
140 7. Create a custom builtin config file with the following contents
141    and set its path in BR2_TARGET_GRUB2_BUILTIN_CONFIG:
142
143    set root=(hd0)
144    set prefix=/boot/grub
145
146 8. Create a custom post-build script which copies files from
147    ${BINARIES_DIR}/boot-part to $(TARGET_DIR)/boot (set its path in
148    BR2_ROOTFS_POST_BUILD_SCRIPT):
149
150    #!/bin/sh
151    cp -r ${BINARIES_DIR}/boot-part/* ${TARGET_DIR}/boot/
152
153 9. make
154
15510. Run qemu with:
156
157    qemu-system-arm -M vexpress-a9 -kernel output/images/u-boot -m 1024 \
158    -nographic -sd output/images/rootfs.ext2
159
16011. In u-boot, stop at the prompt and run grub2 with:
161
162  => ext2load mmc 0:0 ${loadaddr} /boot/grub/grub.img
163  => bootm
164
16512. This should bring the grub2 menu, upon which selecting the "Buildroot"
166    entry should boot Linux.
167
168
169Notes on using Grub2 for Aarch64 EFI-based platforms
170====================================================
171
172The following steps show how to use the Grub2 arm64-efi platform,
173using qemu and EFI firmware built for qemu.
174
175 1. Load aarch64_efi_defconfig
176
177 2. make
178
179 3. Download the EFI firmware for qemu aarch64
180    https://www.kraxel.org/repos/jenkins/edk2/
181    (or use one provided by your distribution as OVMF-aarch64 or AAVMF)
182
183 4. Run qemu with:
184
185    qemu-system-aarch64 -M virt -cpu cortex-a57 -m 512 -nographic \
186    -bios <path/to/EDK2>/QEMU_EFI.fd -hda output/images/disk.img \
187    -netdev user,id=eth0 -device virtio-net-device,netdev=eth0
188
189 5. This should bring the grub2 menu, upon which selecting the
190    "Buildroot" entry should boot Linux.
191