Running examples on QEMU

Running examples on QEMU on Linux with a graphical shell

You need to run the examples in a build directory in which you have write access.

CMake is used to run an example on QEMU in Linux with a graphical shell. To run the example, go to the directory containing the example and run the following commands:

# Before running the examples, you must set the values of the environment variables.

$ source /opt/KasperskyOS-Community-Edition-<platform>-<version>/common/set_env.sh

# Run the example.

$ cmake -B build -D CMAKE_TOOLCHAIN_FILE="$KOSCEDIR/toolchain/share/toolchain-aarch64-kos.cmake"

$ cmake --build build --target sim

Running examples on QEMU on Linux without a graphical shell

To run an example on QEMU on Linux without a graphical shell, go to the directory with the example, build the example and run the following commands:

# Before running the examples, you must set the values of the environment variables.

$ source /opt/KasperskyOS-Community-Edition-<platform>-<version>/common/set_env.sh

$ cd build/einit

$ qemu-system-aarch64 -m 2048 -machine vexpress-a15,secure=on -cpu cortex-a57 -nographic -monitor none -smp 4 -nic user -serial stdio -kernel kos-qemu-image

Page top