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.

Linux/AM3354: Qt application issues

Part Number: AM3354

Tool/software: Linux

Hello,

I am using Am3354 processor based custom board with ti-processor-sdk-linux-am335x-evm-04.01.00.06.

I reffed below link to Hands on Qt on my custom board

http://processors.wiki.ti.com/index.php/Sitara_Linux_Training:_Hands_on_with_QT

by following these steps  I am able to configured Qt Creator to cross compile and run  Qt and QML Application for ARM Processor but on custom board i can run only Qt Application .

i am not able to run QML Application.

if i am running Qt Application on target board via qt creator

Error: Failed to create display (No such file or directory)

or if i am running Qt Application on target board like this

./Application

Error: Failed to create display (No such file or directory)

why not able to find platform?

manually i can export QT_QPA_PLATFORM variable.

but why this is required manually.

on the targate board I am running  the Qt Application like this.

./application -platform linuxfb


 

if i am running the QML based Application like

./application -platform eglfs


Error:

loaded module : gbm_pvr.so
found valid GBM backend : gbm_pvr.so

PVR:(Error): OpenServices: PVRDRMOpenRender failed [0, ]

PVR:(Error): PVRSRVConnect: Unable to open connection. [0, ]

PVR:(Err[  285.681638] audit: type=1701 audit(1516795922.018:3): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=795 comm="clock" exe="/home/root/build_clock/clock" sig=6

or): Couldn't connect to services [0, ]

Could not initialize egl display

  • Hello,

    Rahul Chauhan80 said:
    Could not initialize egl display

    Did you stop weston?

    /etc/init.d/weston stop

    BR
    Margarita

  • yes i stoped weston and try but issue is same.

    root@Htouch:/boot/armbuild# /etc/init.d/weston stop
    Stopping Weston
    root@Htouch:/boot/armbuild# ./NumberDisplay -platform eglfs
    failed to load module: /usr/lib/gbm/gbm_dri.so: cannot open shared object file: No such file or directory
    failed to load module: /usr/lib/gbm/gbm_gallium_drm.so: cannot open shared object file: No such file or directory
    loaded module : gbm_pvr.so
    found valid GBM backend : gbm_pvr.so
    PVR:(Error): OpenServices: PVRDRMOpenRender failed [0, ]
    PVR:(Error): PVRSRVConnect: Unab[ 108.963889] audit: type=1701 audit(1506461598.380:3): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=951 comm="NumberDisplay" exe="/boot/armbuild/NumberDisplay" sig=6
    le to open connection. [0, ]
    PVR:(Error): Couldn't connect to services [0, ]
    Could not initialize egl display
    [ 109.008619] systemd-coredump[953]: Configuration file /etc/systemd/coredump.conf is marked executable. Please remove executable permission bits. Proceeding anyway.
    [ 109.179095] systemd-coredump[954]: Configuration file /etc/systemd/coredump.conf is marked executable. Please remove executable permission bits. Proceeding anyway.
    Aborted (core dumped)
    root@Htouch:/boot/armbuild#
  • Hello,

    Please connect usb mouse to the board or add require-input=false option to [core] section in /etc/weston.ini file.

    BR
    Margarita
  • As per your suggestion i added require-input=false section
    the content of weston.ini file is given below.

    [core]
    require-input=false

    [shell]
    locking=false
    animation=zoom
    panel-location=top
    startup-animation=fade

    [screensaver]
    # Uncomment path to disable screensaver
    #path=@libexecdir@/weston-screensaver

    Is there any link between weston and eglfs because my problem is unable to initialize eglfs display and PVR (Error) .
    I am not using any development board i am using beaglebone BSP based custom board.
  • Hello,

    Could you try kmscube demo?

    BR
    Margarita
  • Hello,

    Thank you for quick response. i tried kmscube Demo but unable to run.
    i tried modetest command also
    root@Htouch:~# modetest
    trying to open device 'i915'...failed
    trying to open device 'radeon'...failed
    trying to open device 'nouveau'...failed
    trying to open device 'vmwgfx'...failed
    trying to open device 'omapdrm'...failed
    trying to open device 'exynos'...failed
    trying to open device 'tilcdc'...done
    Encoders:
    id crtc type possible crtcs possible clones
    25 24 LVDS 0x00000001 0x00000000

    Connectors:
    id encoder status name size (mm) modes encoders
    26 25 connected LVDS-1 0x0 1 25
    modes:
    name refresh (Hz) hdisp hss hse htot vdisp vss vse vtot)
    480x272 57 480 488 489 532 272 276 286 298 flags: phsync, pvsync; 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

    CRTCs:
    id fb pos size
    24 29 (0,0) (480x272)
    480x272 57 480 488 489 532 272 276 286 298 flags: phsync, pvsync; type: preferred, driver
    props:

    Planes:
    id crtc fb CRTC x,y x,y gamma size possible crtcs
    23 24 29 0,0 0,0 0 0x00000001
    formats: BG16 RG24 XR24
    props:
    5 type:
    flags: immutable enum
    enums: Overlay=0 Primary=1 Cursor=2
    value: 1

    Frame buffers:
    id size pitch



    root@Htouch:~# kmscube
    trying to load module omapdrm...failed.
    trying to load module tilcdc...success.
    ### Display [0]: CRTC = 24, Connector = 26, format = 0x34325258
    Mode chosen [480x272] : Clock => 9000, Vertical refresh => 57, Type => 72
    Horizontal => 480, 488, 489, 532, 0
    Vertical => 272, 276, 286, 298, 0
    ### Primary display => ConnectorId = 26, Resolution = 480x272
    failed to load module: /usr/lib/gbm/gbm_dri.so: cannot open shared object file: No such file or directory
    failed to load module: /usr/lib/gbm/gbm_gallium_drm.so: cannot open shared object file: No such file or directory
    loaded module : gbm_pvr.so
    found valid GBM backend : gbm_pvr.so
    PVR:(Error): OpenServices: PVRDRMOpenRender failed [0, ]
    PVR:(Error): PVRSRVConnect: Unable to open connection. [0, ]
    PVR:(Error): Couldn't connect to services [0, ]
    failed to initialize
    failed to initialize EGL
    root@Htouch:~#
  • Hello,

    Looks like graphics initialization is not proper.
    Please take a look into these threads:
    e2e.ti.com/.../1963164
    e2e.ti.com/.../574436

    Hope this helps.

    BR
    Margarita

  • Thank you very much Margarita Gashova for quick support.