Hello,
I am trying to use the XEN Hypervisor on a Toradex Colibri iMX8X, which features a i.MX8QXP.
My approach is to use the linux-toradex kernel from Toradex BSPs (Details below), made a new Devicetree-File (fsl-imx8qxp-colibri-eval-v3-dom0.dtb) similar to the imx8qm-mek-dom0.dtb and use the same U-Boot Boot-script colibri xenmmcboot - Pastebin.com.
Without Xen the Image boots just fine with the fsl-imx8qxp-colibri-eval-v3-dom0.dtb.
As xen-binary I tried both the imx-xen from your BSPs and the xen-colibri-imx8x from OE/meta-virtualisation and got different resulting errors.
imx-xen
(XEN) *** LOADING DOMAIN 0 ***
(XEN) Missing kernel boot module?
(XEN)
(XEN) ****************************************
(XEN) Panic on CPU 0:
(XEN) Could not set up DOM0 guest OS
(XEN) ****************************************
(XEN)
(XEN) Reboot in five seconds...
complete boot log: xen boot log - Pastebin.com
xen-colibri-imx8x
[ 0.098234] Xen: initializing cpu0
[ 0.106238] Hierarchical SRCU implementation.
[ 0.119764] Error FSL_HVC_SC -1
[ 0.122594] Cannot request PMIC0_TEMP interrupt
[ 0.127125] Error FSL_HVC_SC -1
[ 0.130206] Cannot request PMIC1_TEMP interrupt
[ 0.134759] Error FSL_HVC_SC -1
looks like Xen is running, but at some point "Error FSL_HVC_SC -1" starts appearing. Sadly I couldn't get the (XEN) outputs to show up.
complete boot log: xen-colibri-imx8x boot log - Pastebin.com
Any suggestions on how to fix/workaround either of both issues?
I would greatly appreciate your inputs!
Setup:
imx-xen
I have build Xen as described in the current https://www.nxp.com/docs/en/user-guide/IMX_YOCTO_PROJECT_USERS_GUIDE.pdf (Rev. L5.4.24_2.1.0, 06/2020)
/imx-yocto-bsp$ MACHINE=imx8qxpmek DISTRO=fsl-imx-wayland source imx-setup-release.sh -b build_imx8/
/imx-yocto-bsp/build_imx8$ bitbake xen
Dom0
To build Dom0 I use the linux-toradex kernel image provided by toradex OE repo as described here.
Added layer meta-virtualization = "zeus:1bb515609594215aaf950555211e18c6c9a8e308" to Toradex OE and these to local.conf:
DISTRO_FEATURES_append = " xen virtualization"
IMAGE_INSTALL_append = " xen-base"