mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-01 21:23:51 -09:00
This defconfig enables EDK2 UEFI firmware and grub2 x86_64-efi boot of a Linux Kernel in QEMU virt machine. Signed-off-by: Scott Fan <fancp2007@gmail.com> [Julien: - add .in suffix to genimage.cfg and grub.cfg template file names - change UUID_TMP template variable to %PARTUUID% - use human readable partition-type-uuid in genimage.cfg.in - break long qemu-system-x86_64 command line in readme.txt - add "-serial stdio" in readme.txt qemu command line for CI ] Signed-off-by: Julien Olivain <ju.o@free.fr>
Intro
=====
This is a x86_64 UEFI Linux boot demo in QEMU virt machine.
Build
=====
make qemu_x86_64_efi_defconfig
make
Emulation
=========
Run the emulation with:
qemu-system-x86_64 \
-M pc \
-m 1024 \
-serial stdio \
-bios output/images/OVMF.fd \
-drive file=output/images/disk.img,format=raw \
-netdev user,id=net0 \
-device virtio-net-pci,netdev=net0 # qemu_x86_64_efi_defconfig
Optionally add -smp N to emulate a SMP system with N CPUs.
The login prompt will appear in the graphical window.