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.

AM62L-PROCESSOR-SDK: Weston Applications Failing to Launch from UART Terminal but Working in Display Terminal Ask ChatGPT

Part Number: AM62L-PROCESSOR-SDK

Tool/software:

Hi, 

When running Weston or Weston client applications from the UART terminal, they fail to start due to the inability to connect to the Wayland display, while the same applications work correctly when executed from the display terminal session, indicating that the Wayland session is not accessible from the UART environment.The same is observed in EVK board in HDMI Display .

Kindly Find the logs attached

gb:~# weston
weston                         weston-fullscreen              weston-simple-dmabuf-v4l
weston-calibrator              weston-image                   weston-simple-egl
weston-clickdot                weston-launch-calibrator       weston-simple-shm
weston-cliptest                weston-multi-resource          weston-simple-touch
weston-constraints             weston-presentation-shm        weston-smoke
weston-content_protection      weston-resizor                 weston-stacking
weston-debug                   weston-scaler                  weston-subsurfaces
weston-dnd                     weston-screenshooter           weston-tablet
weston-editor                  weston-simple-damage           weston-terminal
weston-eventdemo               weston-simple-dmabuf-egl       weston-touch-calibrator
weston-flower                  weston-simple-dmabuf-feedback  weston-transformed
root@am62lx-ig69m-osm-1gb:~# weston-simple-egl 
weston-simple-egl: /usr/src/debug/weston/13.0.1/clients/simple-e[   29.705334] kauditd_printk_skb: 8 cad
gl.c:1356: main: Assertion `display.display' failed.
[   29.705355] audit: type=1701 audit(1741189871.244:20): auid=4294967295 uid=0 gid=0 ses=4294967295 su1
[   29.752712] audit: type=1334 audit(1741189871.292:21): prog-id=20 op=LOAD
[   29.766226] audit: type=1334 audit(1741189871.300:22): prog-id=21 op=LOAD
[   29.774165] audit: type=1334 audit(1741189871.300:23): prog-id=22 op=LOAD
Aborted (core dumped)
root@am62lx-ig69m-osm-1gb:~# [   30.117874] audit: type=1334 audit(1741189871.660:24): prog-id=22 op=UND
[   30.124956] audit: type=1334 audit(1741189871.660:25): prog-id=21 op=UNLOAD
[   30.132014] audit: type=1334 audit(1741189871.660:26): prog-id=20 op=UNLOAD

root@am62lx-ig69m-osm-1gb:~# fbset

mode "800x480"
    geometry 800 480 800 480 32
    timings 0 0 0 0 0 0 0
    rgba 8/16,8/8,8/0,0/0
endmode

root@am62lx-ig69m-osm-1gb:~# modetest -M tidss
Encoders:
id      crtc    type    possible crtcs  possible clones
40      39      DPI     0x00000001      0x00000001

Connectors:
id      encoder status          name            size (mm)       modes   encoders
41      40      connected       DPI-1           164x100         1       40
  modes:
        index name refresh (Hz) hdisp hss hse htot vdisp vss vse vtot
  #0 800x480 59.89 800 1010 1011 1057 480 502 503 526 33300 flags: nhsync, nvsync; type: preferred, drir
  props:
        1 EDID:
                flags: immutable blob
                blobs:

                value:
        2 DPMS:
                flags: enum
                enums: On=0 Standby=1 Suspend=2 Off=3
                value: 0
        5 link-status:
                flags: enum
                enums: Good=0 Bad=1
                value: 0
        6 non-desktop:
                flags: immutable range
                values: 0 1
                value: 0
        4 TILE:
                flags: immutable blob
                blobs:

                value:

CRTCs:
id      fb      pos     size
39      44      (0,0)   (800x480)
  #0 800x480 59.89 800 1010 1011 1057 480 502 503 526 33300 flags: nhsync, nvsync; type: preferred, drir
  props:
        24 VRR_ENABLED:
                flags: range
                values: 0 1
                value: 0
        27 CTM:
                flags: blob
                blobs:

                value:
        28 GAMMA_LUT:
                flags: blob
                blobs:

                value:
        29 GAMMA_LUT_SIZE:
                flags: immutable range
                values: 0 4294967295
                value: 256

Planes:
id      crtc    fb      CRTC x,y        x,y     gamma size      possible crtcs
32      39      44      0,0             0,0     0               0x00000001
  formats: AR12 AB12 RA12 RG16 BG16 AR15 AB15 AR24 AB24 RA24 BA24 RG24 BG24 AR30 AB30 XR12 XB12 RX12 XR2
  props:
        8 type:
                flags: immutable enum
                enums: Overlay=0 Primary=1 Cursor=2
                value: 1
        30 IN_FORMATS:
                flags: immutable blob
                blobs:

                value:
                        01000000000000001d00000018000000
                        01000000900000004152313241423132
                        52413132524731364247313641523135
                        41423135415232344142323452413234
                        42413234524732344247323441523330
                        41423330585231325842313252583132
                        58523135584231355852323458423234
                        52583234425832345852333058423330
                        59555956555956594e56313200000000
                        ffffff1f000000000000000000000000
                        0000000000000000
                in_formats blob decoded:
                         AR12:  LINEAR(0x0)
                         AB12:  LINEAR(0x0)
                         RA12:  LINEAR(0x0)
                         RG16:  LINEAR(0x0)
                         BG16:  LINEAR(0x0)
                         AR15:  LINEAR(0x0)
                         AB15:  LINEAR(0x0)
                         AR24:  LINEAR(0x0)
                         AB24:  LINEAR(0x0)
                         RA24:  LINEAR(0x0)
                         BA24:  LINEAR(0x0)
                         RG24:  LINEAR(0x0)
                         BG24:  LINEAR(0x0)
                         AR30:  LINEAR(0x0)
                         AB30:  LINEAR(0x0)
                         XR12:  LINEAR(0x0)
                         XB12:  LINEAR(0x0)
                         RX12:  LINEAR(0x0)
                         XR15:  LINEAR(0x0)
                         XB15:  LINEAR(0x0)
                         XR24:  LINEAR(0x0)
                         XB24:  LINEAR(0x0)
                         RX24:  LINEAR(0x0)
                         BX24:  LINEAR(0x0)
                         XR30:  LINEAR(0x0)
                         XB30:  LINEAR(0x0)
                         YUYV:  LINEAR(0x0)
                         UYVY:  LINEAR(0x0)
                         NV12:  LINEAR(0x0)
        34 zpos:
                flags: range
                values: 0 0
                value: 0
        35 COLOR_ENCODING:
                flags: enum
                enums: ITU-R BT.601 YCbCr=0 ITU-R BT.709 YCbCr=1
                value: 0
        36 COLOR_RANGE:
                flags: enum
                enums: YCbCr limited range=0 YCbCr full range=1
                value: 1
        37 alpha:
                flags: range
                values: 0 65535
                value: 65535
        38 pixel blend mode:
                flags: enum
                enums: Pre-multiplied=0 Coverage=1
                value: 0

Frame buffers:
id      size    pitch

root@am62lx-ig69m-osm-1gb:~# weston-image /image.jpg 
failed to connect to Wayland display: No such file or directory
failed to create display: No such file or directory
root@am62lx-ig69m-osm-1gb:~# 


Regards,
Dheeraj k

  • Query has assigned to the expert, please await their reply.

  • Hi Krunal,

    I have already tried that. I will attach the log so you can check it and let me know what the issue is. I’m facing some difficulty pasting the log inside the code dialog box, so I’ll paste it directly here instead — please don’t mind.

    root@am62lx-ig69m-osm-2gb:~# /usr/bin/weston-flower
    failed to connect to Wayland display: No such file or directory
    failed to create display: No such file or directory
    root@am62lx-ig69m-osm-2gb:~# # 
    root@am62lx-ig69m-osm-2gb:~# 
    root@am62lx-ig69m-osm-2gb:~# modetest -M tidss
    Encoders:
    id      crtc    type    possible crtcs  possible clones
    40      39      DPI     0x00000001      0x00000001
    
    Connectors:
    id      encoder status          name            size (mm)       modes   encoders
    41      40      connected       DPI-1           164x100         1       40
      modes:
            index name refresh (Hz) hdisp hss hse htot vdisp vss vse vtot
      #0 800x480 59.89 800 1010 1011 1057 480 502 503 526 33300 flags: nhsync, nvsync; type: preferred, driver
      props:
            1 EDID:
                    flags: immutable blob
                    blobs:
    
                    value:
            2 DPMS:
                    flags: enum
                    enums: On=0 Standby=1 Suspend=2 Off=3
                    value: 0
            5 link-status:
                    flags: enum
                    enums: Good=0 Bad=1
                    value: 0
            6 non-desktop:
                    flags: immutable range
                    values: 0 1
                    value: 0
            4 TILE:
                    flags: immutable blob
                    blobs:
    
                    value:
    
    CRTCs:
    id      fb      pos     size
    39      44      (0,0)   (800x480)
      #0 800x480 59.89 800 1010 1011 1057 480 502 503 526 33300 flags: nhsync, nvsync; type: preferred, driver
      props:
            24 VRR_ENABLED:
                    flags: range
                    values: 0 1
                    value: 0
            27 CTM:
                    flags: blob
                    blobs:
    
                    value:
            28 GAMMA_LUT:
                    flags: blob
                    blobs:
    
                    value:
            29 GAMMA_LUT_SIZE:
                    flags: immutable range
                    values: 0 4294967295
                    value: 256
    
    Planes:
    id      crtc    fb      CRTC x,y        x,y     gamma size      possible crtcs
    32      39      44      0,0             0,0     0               0x00000001
      formats: AR12 AB12 RA12 RG16 BG16 AR15 AB15 AR24 AB24 RA24 BA24 RG24 BG24 AR30 AB30 XR12 XB12 RX12 XR15 XB15 XR24 XB24 RX24 BX24 XR30 XB30 YUYV UYVY NV12
      props:
            8 type:
                    flags: immutable enum
                    enums: Overlay=0 Primary=1 Cursor=2
                    value: 1
            30 IN_FORMATS:
                    flags: immutable blob
                    blobs:
    
                    value:
                            01000000000000001d00000018000000
                            01000000900000004152313241423132
                            52413132524731364247313641523135
                            41423135415232344142323452413234
                            42413234524732344247323441523330
                            41423330585231325842313252583132
                            58523135584231355852323458423234
                            52583234425832345852333058423330
                            59555956555956594e56313200000000
                            ffffff1f000000000000000000000000
                            0000000000000000
                    in_formats blob decoded:
                             AR12:  LINEAR(0x0)
                             AB12:  LINEAR(0x0)
                             RA12:  LINEAR(0x0)
                             RG16:  LINEAR(0x0)
                             BG16:  LINEAR(0x0)
                             AR15:  LINEAR(0x0)
                             AB15:  LINEAR(0x0)
                             AR24:  LINEAR(0x0)
                             AB24:  LINEAR(0x0)
                             RA24:  LINEAR(0x0)
                             BA24:  LINEAR(0x0)
                             RG24:  LINEAR(0x0)
                             BG24:  LINEAR(0x0)
                             AR30:  LINEAR(0x0)
                             AB30:  LINEAR(0x0)
                             XR12:  LINEAR(0x0)
                             XB12:  LINEAR(0x0)
                             RX12:  LINEAR(0x0)
                             XR15:  LINEAR(0x0)
                             XB15:  LINEAR(0x0)
                             XR24:  LINEAR(0x0)
                             XB24:  LINEAR(0x0)
                             RX24:  LINEAR(0x0)
                             BX24:  LINEAR(0x0)
                             XR30:  LINEAR(0x0)
                             XB30:  LINEAR(0x0)
                             YUYV:  LINEAR(0x0)
                             UYVY:  LINEAR(0x0)
                             NV12:  LINEAR(0x0)
            34 zpos:
                    flags: range
                    values: 0 0
                    value: 0
            35 COLOR_ENCODING:
                    flags: enum
                    enums: ITU-R BT.601 YCbCr=0 ITU-R BT.709 YCbCr=1
                    value: 0
            36 COLOR_RANGE:
                    flags: enum
                    enums: YCbCr limited range=0 YCbCr full range=1
                    value: 1
            37 alpha:
                    flags: range
                    values: 0 65535
                    value: 65535
            38 pixel blend mode:
                    flags: enum
                    enums: Pre-multiplied=0 Coverage=1
                    value: 0
    
    Frame buffers:
    id      size    pitch
    
    root@am62lx-ig69m-osm-2gb:~# weston --backend=drm-backend.so --drm-device=/dev/dri/card0 --connector=41
    Date: 2025-03-05 UTC
    [15:15:38.186] weston 13.0.1
                   https://wayland.freedesktop.org
                   Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/
                   Build: 13.0.1
    [15:15:38.186] Command line: weston --backend=drm-backend.so --drm-device=/dev/dri/card0 --connector=41
    [15:15:38.186] OS: Linux, 6.12.24-ti-gc8c0a39eb877, #1 SMP PREEMPT Fri Jul 25 12:54:24 UTC 2025, aarch64
    [15:15:38.186] Flight recorder: enabled
    [15:15:38.187] Using config file '/etc/xdg/weston/weston.ini'
    [15:15:38.187] Output repaint window is 7 ms maximum.
    [15:15:38.187] Loading module '/usr/lib/libweston-13/drm-backend.so'
    [15:15:38.193] initializing drm backend
    [15:15:38.193] Trying libseat launcher...
    [15:15:38.193] [c/debug/seatd/0.8.0/libseat/backend/seatd.c:64] Could not connect to socket /run/seatd.sock: No such file or directory
    [15:15:38.193] [c/debug/seatd/0.8.0/libseat/libseat.c:76] Backend 'seatd' failed to open seat, skipping
    [15:15:38.194] [c/debug/seatd/0.8.0/libseat/libseat.c:76] Backend 'logind' failed to open seat, skipping
    [15:15:38.196] [c/debug/seatd/0.8.0/seatd/seat.c:39] Created VT-bound seat seat0
    [15:15:38.196] [c/debug/seatd/0.8.0/seatd/server.c:145] New client connected (pid: 961, uid: 0, gid: 0)
    [15:15:38.196] [c/debug/seatd/0.8.0/libseat/backend/seatd.c:633] Started embedded seatd
    [15:15:38.197] [c/debug/seatd/0.8.0/seatd/seat.c:170] Added client 7 to seat0
    [15:15:38.197] [c/debug/seatd/0.8.0/seatd/seat.c:480] Opened client 7 on seat0
    [15:15:38.197] [c/debug/seatd/0.8.0/libseat/libseat.c:73] Seat opened with backend 'builtin'
    [15:15:38.197] [c/debug/seatd/0.8.0/libseat/backend/seatd.c:212] Enabling seat
    [15:15:38.197] libseat: session control granted
    [15:15:38.197] ERROR: could not open DRM device '/dev/dri/card0'
    [15:15:38.197] no drm device found
    [15:15:38.197] [c/debug/seatd/0.8.0/seatd/seat.c:418] No clients on seat0 to activate
    [15:15:38.216] [c/debug/seatd/0.8.0/seatd/seat.c:524] Closed client 7 on seat0
    [15:15:38.216] [c/debug/seatd/0.8.0/seatd/seat.c:192] Removed client 7 from seat0
    [15:15:38.216] [c/debug/seatd/0.8.0/seatd/client.c:471] Client disconnected
    [15:15:38.216] fatal: failed to create compositor backend
    [15:15:38.216] [c/debug/seatd/0.8.0/libseat/backend/seatd.c:645] Stopped embedded seatd
    Internal warning: debug scope 'drm-backend' has not been destroyed.
    root@am62lx-ig69m-osm-2gb:~# 
    root@am62lx-ig69m-osm-2gb:~# 
    root@am62lx-ig69m-osm-2gb:~# 
    root@am62lx-ig69m-osm-2gb:~# 
    root@am62lx-ig69m-osm-2gb:~# west
    westcos-tool                   weston-content_protection      weston-fullscreen              weston-scaler                  weston-simple-egl              weston-tablet
    weston                         weston-debug                   weston-image                   weston-screenshooter           weston-simple-shm              weston-terminal
    weston-calibrator              weston-dnd                     weston-launch-calibrator       weston-simple-damage           weston-simple-touch            weston-touch-calibrator
    weston-clickdot                weston-editor                  weston-multi-resource          weston-simple-dmabuf-egl       weston-smoke                   weston-transformed
    weston-cliptest                weston-eventdemo               weston-presentation-shm        weston-simple-dmabuf-feedback  weston-stacking                
    weston-constraints             weston-flower                  weston-resizor                 weston-simple-dmabuf-v4l       weston-subsurfaces             
    root@am62lx-ig69m-osm-2gb:~# west
    westcos-tool                   weston-content_protection      weston-fullscreen              weston-scaler                  weston-simple-egl              weston-tablet
    weston                         weston-debug                   weston-image                   weston-screenshooter           weston-simple-shm              weston-terminal
    weston-calibrator              weston-dnd                     weston-launch-calibrator       weston-simple-damage           weston-simple-touch            weston-touch-calibrator
    weston-clickdot                weston-editor                  weston-multi-resource          weston-simple-dmabuf-egl       weston-smoke                   weston-transformed
    weston-cliptest                weston-eventdemo               weston-presentation-shm        weston-simple-dmabuf-feedback  weston-stacking                
    weston-constraints             weston-flower                  weston-resizor                 weston-simple-dmabuf-v4l       weston-subsurfaces             
    root@am62lx-ig69m-osm-2gb:~# weston-flower 
    failed to connect to Wayland display: No such file or directory
    failed to create display: No such file or directory
    root@am62lx-ig69m-osm-2gb:~# 
    root@am62lx-ig69m-osm-2gb:~# 
    root@am62lx-ig69m-osm-2gb:~# 
    root@am62lx-ig69m-osm-2gb:~# 
    root@am62lx-ig69m-osm-2gb:~# weston-flower 
    failed to connect to Wayland display: No such file or directory
    failed to create display: No such file or directory
    root@am62lx-ig69m-osm-2gb:~# export WAYLAND_DISPLAY=wayland-1
    root@am62lx-ig69m-osm-2gb:~# weston-flower
    failed to connect to Wayland display: No such file or directory
    failed to create display: No such file or directory
    root@am62lx-ig69m-osm-2gb:~# printenv
    SHELL=/bin/sh                                                                            
    CREDENTIALS_DIRECTORY=/run/credentials/serial-getty@ttyS0.service                       
    EDITOR=vi                                                                              
    PWD=/root                                                                               
    LOGNAME=root                                                                             
    XDG_SESSION_TYPE=tty
    SYSTEMD_EXEC_PID=548
    MOTD_SHOWN=pam
    HOME=/root
    LANG=C
    WAYLAND_DISPLAY=wayland-1
    INVOCATION_ID=61f3ff5b59e543aba49f9821d6f63b7d
    XDG_SESSION_CLASS=user
    TERM=vt220
    USER=root
    SHLVL=1
    XDG_SESSION_ID=c2
    XDG_RUNTIME_DIR=/run/user/0
    PS1=\u@\h:\w\$ 
    HUSHLOGIN=FALSE
    PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin
    DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/0/bus
    MAIL=/var/spool/mail/root
    _=/usr/bin/printenv
    root@am62lx-ig69m-osm-2gb:~# gst-launch-1.0 playbin uri=/iwtest/bbb.mp4 video-sink=waylandsink                                                                                                                     
    Setting pipeline to PAUSED ...
    Failed to set pipeline to PAUSED.
    Setting pipeline to NULL ...
    Freeing pipeline ...
    root@am62lx-ig69m-osm-2gb:~# 
    root@am62lx-ig69m-osm-2gb:~# gst-launch-1.0 playbin locatoion=/iwtest/bbb.mp4 video-sink=waylandsink                                                                                                               
    ERROR: pipeline could not be constructed: no property "locatoion" in element "playbin".
    root@am62lx-ig69m-osm-2gb:~# echo $WAYLAND_DISPLAY
    wayland-1
    root@am62lx-ig69m-osm-2gb:~# gst-launch-1.0 playbin uri=file:///home/root/test.mp4 video-sink=waylandsink
    Setting pipeline to PAUSED ...
    Failed to set pipeline to PAUSED.
    Setting pipeline to NULL ...
    Freeing pipeline ...
    root@am62lx-ig69m-osm-2gb:~# gst-launch-1.0 playbin uri=file:///iwtest/bbb.mp4 video-sink=waylandsink                                                                                                              
    Setting pipeline to PAUSED ...
    Failed to set pipeline to PAUSED.
    Setting pipeline to NULL ...
    Freeing pipeline ...
    
    

  • Should it be export WAYLAND_DISPLAY=/run/user/1000/wayland-1? Also, login was weston and not root.

    Regards,
    Krunal