A clock that displays time having booted from EFI.
- It is x86_64 code built with FASM.
- Needs qemu and ovfm.
- It uses UEFI spec 2.8.
- Create a directory called
drive - Assemble like
fasm clock_fasm.asm drive/clock - Run qemu like
qemu-system-x86_64 -bios /usr/share/qemu/OVMF.fd -net none -drive format=raw,file=fat:rw:drive/ -monitor stdio - Once you have the EFI console on qemu, run it like this
FS0:\clock. - If you want it to run automatically, replace
retwithjmp $inmain, assemble & place the binary at this location/namedrive/EFI/BOOT/BOOTx64.EFI.