Hi! tdx-info
output below.
I have a Verdin iMX8M-Plus running on a Dahlia board and an HDMI monitor connected to the native port.
If I run the tdx-reference-multimedia-image
the HDMI output works as expected, but when running my image weston
fails to start.
My image definition is:
DESCRIPTION = "My image"
LICENSE = "MIT"
inherit core-image features_check populate_sdk_qt6
CONFLICT_DISTRO_FEATURES = "directfb"
IMAGE_FEATURES += " \
splash \
package-management \
ssh-server-openssh \
hwcodecs \
${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'weston', \
bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11-base x11-sato', \
'', d), d)} \
"
CORE_IMAGE_EXTRA_INSTALL += " \
packagegroup-core-full-cmdline \
${@bb.utils.contains('DISTRO_FEATURES', 'x11 wayland', 'weston-xwayland', '', d)} \
fbgrab \
libgpiod \
libgpiod-tools \
rsync \
"
CORE_IMAGE_EXTRA_INSTALL:mx8-generic-bsp += " \
packagegroup-fsl-gstreamer1.0 \
packagegroup-fsl-gstreamer1.0-full \
"
systemd_disable_vt () {
rm ${IMAGE_ROOTFS}${sysconfdir}/systemd/system/getty.target.wants/getty@tty*.service
}
# Install fonts
QT6_FONTS = " \
ttf-dejavu-mathtexgyre \
ttf-dejavu-sans \
ttf-dejavu-sans-condensed \
ttf-dejavu-sans-mono \
ttf-dejavu-serif \
ttf-dejavu-serif-condensed \
"
QT6_IMAGE_INSTALL = " \
${QT6_FONTS} \
${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'qtwayland qtwayland-plugins', '', d)} \
"
IMAGE_INSTALL += " \
${QT6_IMAGE_INSTALL} \
packagegroup-tdx-cli \
packagegroup-tdx-graphical \
chrony \
aqt6app \
"
IMAGE_PREPROCESS_COMMAND:append = " ${@ 'systemd_disable_vt;' if bb.utils.contains('DISTRO_FEATURES', 'systemd', True, False, d) and bb.utils.contains('USE_VT', '0', True, False, d) else ''} "
Now Weston fails with:
root@verdin-imx8mp-15379869:~# journalctl -u weston
Apr 28 17:42:31 verdin-imx8mp-15379869 systemd[1]: Starting Weston, a Wayland compositor, as a system service...
Apr 28 17:42:33 verdin-imx8mp-15379869 systemd[1]: Started Weston, a Wayland compositor, as a system service.
Apr 28 17:42:33 verdin-imx8mp-15379869 systemd[1]: weston.service: Main process exited, code=killed, status=11/SEGV
Apr 28 17:42:33 verdin-imx8mp-15379869 systemd[1]: weston.service: Failed with result 'signal'.
If I try to run it from the console I get:
root@verdin-imx8mp-15379869:~# /usr/bin/weston --modules=systemd-notify.so
Date: 2022-04-28 UTC
[17:56:09.881] weston 10.0.1
https://wayland.freedesktop.org
Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/
Build: lf-5.15.52-2.1.0+
[17:56:09.881] Command line: /usr/bin/weston --modules=systemd-notify.so
[17:56:09.881] OS: Linux, 5.15.148-6.8.0-devel+git.284966e8d6ee, #1 SMP PREEMPT Wed Jun 26 17:51:19 UTC 2024, aarch64
[17:56:09.881] Flight recorder: enabled
[17:56:09.881] Using config file '/etc/xdg/weston/weston.ini'
[17:56:09.881] Output repaint window is 16 ms maximum.
[17:56:09.881] Loading module '/usr/lib/libweston-10/wayland-backend.so'
[17:56:09.881] Failed to load module: /usr/lib/libweston-10/wayland-backend.so: cannot open shared object file: No such file or directory
[17:56:09.882] fatal: failed to create compositor backend
I also checked the the overlays are being applied:
## Executing script at 50280000
Loading DeviceTree: imx8mp-verdin-wifi-dev.dtb
90278 bytes read in 2 ms (43 MiB/s)
118 bytes read in 0 ms
Applying Overlay: verdin-imx8mp_hdmi_overlay.dtbo
2219 bytes read in 1 ms (2.1 MiB/s)
Applying Overlay: verdin-imx8mp_dsi-to-hdmi_overlay.dtbo
3652 bytes read in 1 ms (3.5 MiB/s)
Applying Overlay: verdin-imx8mp_spidev_overlay.dtbo
561 bytes read in 1 ms (547.9 KiB/s)
11682674 bytes read in 43 ms (259.1 MiB/s)
Bootargs: root=PARTUUID=97cefb1e-02 ro rootwait console=tty1 console=ttymxc2,115200 consoleblank=0 earlycon
So… what am I missing here?
root@verdin-imx8mp-15379869:~# tdx-info
Software summary
------------------------------------------------------------
Bootloader: U-Boot
Kernel version: 5.15.148-6.8.0-devel+git.284966e8d6ee #1 SMP PREEMPT Wed Jun 26 17:51:19 UTC 2024
Kernel command line: root=PARTUUID=97cefb1e-02 ro rootwait console=tty1 console=ttymxc2,115200 consoleblank=0 earlycon
Distro name: NAME="TDX Wayland with XWayland"
Distro version: VERSION_ID=6.8.0-devel-20240923170007-build.0
Distro variant: -
Hostname: verdin-imx8mp-15379869
------------------------------------------------------------
Hardware info
------------------------------------------------------------
HW model: Toradex Verdin iMX8M Plus WB on Verdin Development Board
Toradex version: 0058 V1.1B
Serial number: 15379869
Processor arch: aarch64
------------------------------------------------------------