From 390c302f42c96c9d5b1841dae72b02e3f8dd8949 Mon Sep 17 00:00:00 2001 From: Ivan-Velickovic Date: Thu, 3 Aug 2023 14:27:06 +1000 Subject: [PATCH] examples/simple: initial README --- examples/simple/README.md | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 examples/simple/README.md diff --git a/examples/simple/README.md b/examples/simple/README.md new file mode 100644 index 00000000..38b12f3f --- /dev/null +++ b/examples/simple/README.md @@ -0,0 +1,37 @@ +# A simple VMM for running Linux guests + +This example is a minimal VMM that supports Linux guests and a basic +buildroot/BusyBox root file system. This gives a basic command-line with some +utilities. + +## Building with Make + +```sh +make BOARD= SEL4CP_SDK=/path/to/sel4cp-sdk-1.2.6 +``` + +Where `` is one of: +* `qemu_arm_virt_hyp` +* `odroidc4_hyp` + +Other configuration options can be passed to the Makefile such as `CONFIG` +and `BUILD_DIR`, see the Makefile for details. + +If you would like to simulate the QEMU board you can run the following command: +```sh +make BOARD=qemu_arm_virt_hyp SEL4CP_SDK=/path/to/sel4cp-sdk-1.2.6 simulate +``` + +This will build the example code as well as run the QEMU command to simulate a +system running the whole system. + +## Building with Zig + +For educational purposes, you can also build and run this example using the +[Zig](https://ziglang.org/) build system. + +You will first need Zig version 0.11.0, which can be downloaded here: [TODO](). + +```sh +zig build -Dtarget="aarch64-freestanding" -Doptimize=ReleaseFast simualte +```