Skip to content

Running under FVP

TuxRun allows to run linux kernel under FVP for Morello.

Supported devices

See the architecture matrix for the supported devices.

Preparing the environment

In order to use TuxRun with FVP, you have to build container images:

  • tuxrun fvp image (only for podman)
  • morello fvp model

Start by cloning the git repository:

git clone https://gitlab.com/Linaro/tuxrun
cd tuxrun

TuxRun fvp image

Build the TuxRun image

cd share/fvp
podman build --tag tuxrun:fvp .

Runtime

When using docker runtime, this container is not needed.

Morello fvp model

Build the container containing the Morello FVP model:

cd share/fvp/morello
podman build --tag fvp:morello-0.11.19 .
cd share/fvp/morello
docker build --tag fvp:morello-0.11.19 .

Container tag

The container should be named fvp:morello-0.11.19 in order for TuxRun to work.

Boot testing

In order to run a simple boot test on fvp-morello-busybox:

tuxrun --image tuxrun:fvp \
       --device fvp-morello-buxybox \
       --mcp-fw https://example.com/fvp/morello/mcp_fw.bin \
       --mcp-romfw https://example.com/fvp/morello/mcp_romfw.bin \
       --rootfs https://example.com/fvp/morello/rootfs.img.xz \
       --scp-fw https://example.com/fvp/morello/scp_fw.bin \
       --scp-romfw https://example.com/fvp/morello/scp_romfw.bin \
       --uefi https://example.com/fvp/morello/uefi.bin
tuxrun --runtime docker \
       --device fvp-morello-buxybox \
       --mcp-fw https://example.com/fvp/morello/mcp_fw.bin \
       --mcp-romfw https://example.com/fvp/morello/mcp_romfw.bin \
       --rootfs https://example.com/fvp/morello/rootfs.img.xz \
       --scp-fw https://example.com/fvp/morello/scp_fw.bin \
       --scp-romfw https://example.com/fvp/morello/scp_romfw.bin \
       --uefi https://example.com/fvp/morello/uefi.bin

Testing on Android

In order to run an Android test on fvp-morello-android:

tuxrun --image tuxrun:fvp \
       --device fvp-morello-android \
       --mcp-fw https://example.com/fvp/morello/mcp_fw.bin \
       --mcp-romfw https://example.com/fvp/morello/mcp_romfw.bin \
       --rootfs https://example.com/fvp/morello/rootfs.img.xz \
       --scp-fw https://example.com/fvp/morello/scp_fw.bin \
       --scp-romfw https://example.com/fvp/morello/scp_romfw.bin \
       --uefi https://example.com/fvp/morello/uefi.bin \
       --parameters USERDATA=https://example.com/fvp/morello/userdata.tar.xz \
       --tests binder
tuxrun --runtime docker \
       --device fvp-morello-android \
       --mcp-fw https://example.com/fvp/morello/mcp_fw.bin \
       --mcp-romfw https://example.com/fvp/morello/mcp_romfw.bin \
       --rootfs https://example.com/fvp/morello/rootfs.img.xz \
       --scp-fw https://example.com/fvp/morello/scp_fw.bin \
       --scp-romfw https://example.com/fvp/morello/scp_romfw.bin \
       --uefi https://example.com/fvp/morello/uefi.bin \
       --parameters USERDATA=https://example.com/fvp/morello/userdata.tar.xz \
       --tests binder

Android boot test

When running an Android boot test, --parameters USERDATA=https:// is not needed (and won't be used).