-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
25e50d3
commit 390c302
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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=<BOARD> SEL4CP_SDK=/path/to/sel4cp-sdk-1.2.6 | ||
``` | ||
|
||
Where `<BOARD>` 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 | ||
``` |