gifsicle bad-apple-orig-o3.gif --comment "This is an example of Speex, an audio compression codec specifically tuned for the reproduction of human speech. This is an example of Speex, an audio compression codec specifically tuned for the reproduction of human speech. This is an example of Speex, an audio compression codec specifically tuned for the reproduction of human speech. This is an example of Speex, an audio compression codec specifically tuned for the reproduction of human speech." > bap.img # TODO: round up to next 512 dynamically? truncate -s 23293440 bap.img mkfs.vfat -F12 -s1 -f2 -r16 vfat.bin dd if=/dev/zero of=vfat.bin bs=512 count=80 sudo mount -o loop vfat.bin /mnt/tmp sudo mkdir -p /mnt/tmp/EFI/BOOT sudo cp target/aarch64-unknown-uefi/efigife.efi /mnt/tmp/EFI/BOOT/BOOTAA64.EFI sudo umount /mnt/tmp cat vfat.bin >> bap.img # TODO: fdisk and then put the first 446 bytes back true qemu-system-aarch64 -drive if=none,id=code,format=raw,file=/usr/share/qemu/edk2-aarch64-code.fd,readonly=on -M virt,pflash0=code,accel=kvm,gic-version=3 -cpu host -m 512 -device virtio-gpu-pci