summaryrefslogtreecommitdiffstats
path: root/conf
diff options
context:
space:
mode:
authorChristopher Clark <christopher.clark@starlab.io>2021-07-27 17:07:40 -0700
committerBruce Ashfield <bruce.ashfield@gmail.com>2021-07-29 10:55:56 -0400
commit19347a7c4e4cc3baf08923d6d42c086f170f1c63 (patch)
tree48f3bce1ba4e0fd3274b50ee9e643ecd6b42cee4 /conf
parent29796322c23ce6b425cd0adce380391b70f492df (diff)
downloadmeta-virtualization-19347a7c4e4cc3baf08923d6d42c086f170f1c63.tar.gz
qemuboot, xen-image-minimal: enable runqemu for qemuarm64 Xen images
The Xen hypervisor built for Arm 64-bit targets can be launched with runqemu by providing a Device Tree binary and configuration for Qemu, which enables interactive testing of Xen images. Add qemuboot-xen-dtb.bbclass to add a new bitbake task for generating the dtb file by using lopper on a device tree produced by Qemu. Add qemuboot-xen-defaults.bbclass to supply working default parameters for the qemuarm64 machine and general support for qemuboot for Xen, and adjust the defaults as needed to boot successfully in testing. Development aided by this script by Stewart Hildebrand of DornerWorks: https://gist.github.com/stewdk/110f43e0cc1d905fc6ed4c7e10d8d35e Signed-off-by: Christopher Clark <christopher.clark@starlab.io> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'conf')
-rw-r--r--conf/distro/include/meta-virt-xen.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/conf/distro/include/meta-virt-xen.inc b/conf/distro/include/meta-virt-xen.inc
index 02a78105..2becba15 100644
--- a/conf/distro/include/meta-virt-xen.inc
+++ b/conf/distro/include/meta-virt-xen.inc
@@ -10,3 +10,6 @@ XEN_RPI4_64_CONFIG_PATH ??= \
10 'dynamic-layers/raspberrypi/conf/distro/include/xen-raspberrypi4-64.inc' 10 'dynamic-layers/raspberrypi/conf/distro/include/xen-raspberrypi4-64.inc'
11include ${@bb.utils.contains('MACHINE', 'raspberrypi4-64', \ 11include ${@bb.utils.contains('MACHINE', 'raspberrypi4-64', \
12 '${XEN_RPI4_64_CONFIG_PATH}', '', d)} 12 '${XEN_RPI4_64_CONFIG_PATH}', '', d)}
13
14# Set serial for working qemuboot console
15SERIAL_CONSOLES_qemuarm64 ?= "115200;ttyAMA0"