Using QEMU 8.2.2 qemu-system-x86_64 -m 1024 -serial stdio -drive format=raw,file=.img qemu-system-x86_64 -m 1024 -serial stdio --bios OVMF.fd -drive format=raw,file=.img boot-efi.img has x86_64-amd64efi-hello.exe as /boot/kernel/kernel boot-broken.img has x86_64-amd64-hello.exe as /boot/kernel/kernel boot-fixed has amd64hello.exe as /boot/kernel/kernel This boot loader contains this patch: https://lists.rtems.org/pipermail/devel/2024-April/077579.html mdconfig -u md0 -f FreeBSD-14.0-RELEASE-amd64-mini-memstick.img mount /dev/md0s2a /mnt/img cp x86_64-amd64-hello.exe /mnt/img/boot/kernel/kernel umount /mnt/img mdconfig -du 0