misc/emulation: add note about u-boot on qemu

Signed-off-by: Leah Rowe <leah@libreboot.org>
master
Leah Rowe 2023-09-11 17:20:57 +01:00
parent bee4130d88
commit 34ea0e1f7e
1 changed files with 7 additions and 3 deletions

View File

@ -23,19 +23,23 @@ In order to test the resulting roms, you must have qemu installed on the host ma
Test the roms by pointing qemu to the rom in bios mode.
For example:
`qemu-system-x86_64 -bios bin/qemu_x86_12mb/grub_qemu_x86_12mb_libgfxinit_corebootfb_usqwerty.rom`
`qemu-system-x86_64 -bios bin/qemu_x86_12mb/grub_qemu_x86_12mb_libgfxinit_corebootfb_usqwerty_noblobs.rom`
`qemu-system-x86_64 -bios bin/qemu_x86_12mb/uboot_payload_qemu_x86_12mb_libgfxinit_corebootfb.rom -serial stdio`
`qemu-system-x86_64 -bios bin/qemu_x86_12mb/uboot_payload_qemu_x86_12mb_libgfxinit_corebootfb_noblobs.rom -serial stdio`
There is basic support for an arm64 virtual machine as well, although the payloads are not as developed as the x86 one:
./build boot roms qemu_arm64_12mb
```
qemu-system-aarch64 -bios bin/qemu_arm64_12mb/uboot_payload_qemu_arm64_12mb_libgfxinit_corebootfb.rom \
qemu-system-aarch64 -bios bin/qemu_arm64_12mb/uboot_payload_qemu_arm64_12mb_libgfxinit_corebootfb_noblobs.rom \
-M virt,secure=on,virtualization=on,acpi=on -cpu cortex-a53 -m 768M -serial stdio -vga none -display none
```
NOTE: After the 20230625 release, U-Boot support was removed from x86 Qemu; it's
also problematic on ARM-based Qemu. Only x86 qemu, with other payloads, is to
be considered reliable for now.
Use Cases
=========