diff --git a/aaaa.sh b/aaaa.sh new file mode 100644 index 0000000..790d1d9 --- /dev/null +++ b/aaaa.sh @@ -0,0 +1,13 @@ +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 diff --git a/bap.img.gif b/bap.img.gif new file mode 100644 index 0000000..71705b7 Binary files /dev/null and b/bap.img.gif differ diff --git a/vfat.bin b/vfat.bin new file mode 100644 index 0000000..eb63e3d Binary files /dev/null and b/vfat.bin differ