1## Build
2
3```
4make qemu-virt-arm64-test
5```
6
7Note, this may fail if your system does not have `aarch64-elf-gcc` installed. To address, download from [here](https://newos.org/toolchains/aarch64-elf-14.2.0-Linux-x86_64.tar.xz), unzip, and add the extracted dir to PATH.
8
9## Run
10
11```
12qemu-system-aarch64 -cpu max -m 512 -smp 1 -machine virt,highmem=off \
13	-kernel build-qemu-virt-arm64-test/lk.elf \
14	-net none -nographic \
15	-drive if=none,file=lib/uefi/helloworld_aa64.efi,id=blk,format=raw \
16	-device virtio-blk-device,drive=blk
17```
18
19
20Once you see the main console prompt, enter `uefi_load virtio0` to load the hello world UEFI application.
21
22```
23starting app shell
24entering main console loop
25] uefi_load virtio0
26bio_read returns 4096, took 1 msecs (4096000 bytes/sec)
27PE header machine type: aa64
28Valid UEFI application found.
29Entry function located at 0xffff000780067380
30Hello World!
31```