Install QEMU
This document describes how to run TRS for the QEMU target. It is assumed
that you have completed the procedures outlined on the Getting started
page and at least built the firmware for the tsqemuarm64-secureboot
target
and the trs
image. If not, begin there before proceeding.
Run
After the build is complete, you will be able to run it on your host system using QEMU.
$ make run
U-Boot is already set to boot the current kernel, initramfs, and rootfs upon initial startup.
Note
To quit QEMU, press Ctrl-A x
(alternatively kill the qemu-system-aarch64 process)
If everything goes as planned, you will be greeted with a login message and a
login prompt. The login name is ewaol
as depicted below.
ledge-secure-qemuarm64 login: ewaol
ewaol@ledge-secure-qemuarm64:~$
Alternatively if you want to launch QEMU manually follow the instructions Run on QEMU arm64
Test
Once the build has been completed, you can run automatic tests with QEMU. These
boot QEMU using the compiled images and run test commands via SSH on the running
system. While the QEMU image is running, SSH access to it works via localhost IP
address 127.0.0.1
and TCP port 2222
. TEST_SUITES
variable in
trs-image.bb
recipe define which tests are executed.
$ cd <workspace root>
$ make test
See Yocto runtime testing documentation for details about the test environment and instructions for writing new tests.