shenanigans pt.1

This commit is contained in:
lifning 2024-05-04 22:39:11 -07:00
parent ce3cd36e75
commit bcc9704e4b
3 changed files with 13 additions and 0 deletions

13
aaaa.sh Normal file
View file

@ -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

BIN
bap.img.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 MiB

BIN
vfat.bin Normal file

Binary file not shown.