This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

PROCESSOR-SDK-AM62X: The weston interface is not shown

Part Number: PROCESSOR-SDK-AM62X

I tried to show the weston screen on the base image.

The boot startup is shown below

hdmi shows below when I execute /etc/init.d/weston start

SUMMARY = " Arago TI SDK base image with test tools"

DESCRIPTION = "Arago SDK base image suitable for initramfs containing\
comprehensive test tools."

require arago-image.inc

IMAGE_FSTYPES += "cpio.xz"
IMAGE_FSTYPES_append_dra7xx = " ubifs ubi"

IMAGE_INSTALL += "\
packagegroup-arago-base \
packagegroup-arago-console \
packagegroup-arago-base-tisdk \
${VIRTUAL-RUNTIME_initramfs} \
${@oe.utils.conditional('ARAGO_BRAND', 'mainline', 'ti-test', '', d)} \
iproute2 \
libgcrypt \
libgpiod \
libgpg-error \
libnl \
tree \
fgl297-fw \
nxp-wlan-sdk \
wifi-load \
auto-wifi \
python3-pybluez \
bluez5 \
wpa-supplicant \
wpan-tools \
hostapd \
gstreamer1.0 \
gstreamer1.0-libav \
gstreamer1.0-meta-base \
gstreamer1.0-plugins-bad \
gstreamer1.0-plugins-base \
gstreamer1.0-plugins-good \
fac-burn-emmc \
mmc-utils \
weston-examples \
weston-init \
ti-demos \
"

export IMAGE_BASENAME = "tisdk-base-image"

root@am62xx-evm:~# weston
Date: 2023-07-31 UTC
[11:32:48.975] weston 8.0.0
wayland.freedesktop.org
Bug reports to: gitlab.freedesktop.org/.../
Build: 8.0.0
[11:32:48.975] Command line: weston
[11:32:48.975] OS: Linux, 5.10.168+, #1 SMP PREEMPT Thu Aug 3 07:16:26 UTC 2023, aarch64
[11:32:48.976] Using config file '/etc//weston.ini'
[11:32:48.976] Output repaint window is 7 ms maximum.
[11:32:48.976] Loading module '/usr/lib/libweston-8/drm-backend.so'
[11:32:48.983] initializing drm backend
[11:32:48.985] logind: failed to get session seat
[11:32:48.985] logind: cannot setup systemd-logind helper (-61), using legacy fallback
[11:32:48.985] failed to get VT mode: Inappropriate ioctl for device
[11:32:48.985] fatal: drm backend should be run using weston-launch binary, or your system should provide the logind D-Bus API.
[11:32:48.985] fatal: failed to create compositor backend
Internal warning: debug scope 'drm-backend' has not been destroyed.
root@am62xx-evm:~# /etc/init.d/weston start
Starting Weston
root@am62xx-evm:~# [ 559.250077] fbcon: Taking over console
[ 559.258392] Console: switching to colour frame buffer device 240x67

root@am62xx-evm:~# weston-sta
weston-stacking weston-start
root@am62xx-evm:~# weston-start
root@am62xx-evm:~# /etc/init.d/weston start
Starting Weston
root@am62xx-evm:~#

  • Hello,

    Can you try running weston --tty=1? I am curious to know what errors it reports. For example, if the GPU driver is not present, it will show something like

    root@am62xx-evm:~# weston --tty=1
    Date: 2023-02-24 UTC
    [04:59:36.054] weston 8.0.0
                   https://wayland.freedesktop.org
                   Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/
                   Build: 8.0.0
    [04:59:36.055] Command line: weston --tty=1
    [04:59:36.055] OS: Linux, 5.10.168-g2c23e6c538, #1 SMP PREEMPT Fri Feb 24 05:59:04 UTC 2023, aarch64
    [04:59:36.055] Using config file '/etc//weston.ini'
    [04:59:36.055] Output repaint window is 7 ms maximum.
    [04:59:36.056] Loading module '/usr/lib/libweston-8/drm-backend.so'
    [04:59:36.061] initializing drm backend
    [04:59:36.062] logind: failed to get session seat
    [04:59:36.062] logind: cannot setup systemd-logind helper (-61), using legacy fallback
    [04:59:36.065] using /dev/dri/card0
    [04:59:36.065] DRM: supports universal planes
    [04:59:36.065] DRM: supports atomic modesetting
    [04:59:36.066] DRM: supports picture aspect ratio
    [04:59:36.066] Loading module '/usr/lib/libweston-8/gl-renderer.so'
    (1358) PVR:(Error): PVRDRICreateScreenImpl: Failed to open render device node [ :179 ]
    MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/dri)
    failed to load driver: kms_swrast
    MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/dri)
    failed to load swrast driver
    [04:59:36.093] failed to initialize egl
    [04:59:36.119] fatal: failed to create compositor backend
    Internal warning: debug scope 'drm-backend' has not been destroyed.
    

    Regards,
    Krunal

  • root@am62xx-evm:~# weston --tty=1
    Date: 2023-07-31 UTC
    [11:14:22.486] weston 8.0.0
                   https://wayland.freedesktop.org
                   Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/
                   Build: 8.0.0
    [11:14:22.486] Command line: weston --tty=1
    [11:14:22.486] OS: Linux, 5.10.168+, #1 SMP PREEMPT Thu Aug 3 07:16:26 UTC 2023, aarch64
    [11:14:22.487] Using config file '/etc//weston.ini'
    [11:14:22.487] Output repaint window is 7 ms maximum.
    [11:14:22.488] Loading module '/usr/lib/libweston-8/drm-backend.so'
    [11:14:22.495] initializing drm backend
    [11:14:22.496] logind: failed to get session seat
    [11:14:22.496] logind: cannot setup systemd-logind helper (-61), using legacy fallback
    [11:14:22.501] using /dev/dri/card0
    [11:14:22.501] DRM: supports universal planes
    [11:14:22.501] DRM: supports atomic modesetting
    [11:14:22.501] DRM: supports picture aspect ratio
    [11:14:22.501] Loading module '/usr/lib/libweston-8/gl-renderer.so'
    ( 714) PVR:(Error): PVRDRICreateScreenImpl: Failed to open render device node [ :179 ]
    MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/dri)
    failed to load driver: kms_swrast
    MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/dri)
    failed to load swrast driver
    [11:14:22.529] failed to initialize egl
    [11:14:22.529] fatal: failed to create compositor backend
    Internal warning: debug scope 'drm-backend' has not been destroyed.
    root@am62xx-evm:~# 

    I'm using a 6231 and I don't have gpu so I disable gpu, does gpu affect the display of weston screen, if so, what should I do when I want to display camera preview in weston screen,

    The camera preview error is as follows

    root@am62xx-evm:~# gst-launch-1.0 v4l2src device=/dev/video0 io-mode=2 ! video/x-raw,format=YUY2,width=640,height=480,framerate=30/1 ! waylandsink
    Setting pipeline to PAUSED ...
    ERROR: Pipeline doesn't want to pause.
    WARNING: from element /GstPipeline:pipeline0/GstWaylandSink:waylandsink0: Could not initialise Wayland output
    Additional debug info:
    ../gst-plugins-bad-1.16.3/ext/wayland/gstwaylandsink.c(359): gst_wayland_sink_find_display (): /GstPipeline:pipeline0/GstWaylandSink:waylandsink0:
    Failed to create GstWlDisplay: 'Failed to connect to the wayland display '(default)''
    Setting pipeline to NULL ...
    Freeing pipeline ...
    root@am62xx-evm:~# ^C
    root@am62xx-evm:~# 

  • Hello,

    1. Do you need Weston?

    2. Without weston, you can do something like this "gst-launch-1.0 v4l2src device=/dev/video0 io-mode=2 ! video/x-raw,format=YUY2,width=640,height=480,framerate=30/1 ! kmssink sync=false driver-name=tidss

    Regards,
    Krunal

  • Hello, is there any reply to this question

  • Hello,

    I replied to your question and here was my response:

    1. Do you need Weston?

    2. Without weston, you can do something like this "gst-launch-1.0 v4l2src device=/dev/video0 io-mode=2 ! video/x-raw,format=YUY2,width=640,height=480,framerate=30/1 ! kmssink sync=false driver-name=tidss

    Regards,
    Krunal

  • Thank you, I can preview it using the command you sent. In addition, is weston related to gpu or pruss? I open pruss and gpu and use 6252 to enter weston interface.

    If it's not relevant, what do I do if I want to go to weston on 6231,

  • Hello,

    PRU does not have anything to do with Weston. By default, Weston is looking for GPU driver and if it's not present, it will not launch. In our latest 9.0 SDK, we have added support for SW acceleration. If the GPU is not present, Weston will default to CPU acceleration and should launch. 

    Regards,
    Krunal

  • I see. Thank you very much for your answer.

    I have another question that I am confused about. Is your 62x image the common image of 6254, 6252 and 6231? As far as I know, two watchdog dogs should be turned off for 6252, and three watchdog dogs, gpu and prss should be turned off for 6231.

    There should be three different device trees. How can we load different device trees if we only use one image

    If it is not a mirror, I am researching how to recognize different number of cores under uboot to load different device trees, but I don't know how to read the number of cpu cores under uboot yet

    thank you

  • Hello,

    Could you please raise another ticket for the latest question. Let's keep the current ticket for GPU/Weston questions only.

    Regards,
    Krunal