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.

Problem Running Qt application while weston is running with fbdev-backend

Other Parts Discussed in Thread: AM5728, TSC2007

Hi,

     I am using Sitara am5728 processor based custom board with ili9341 lcd(320x240). Earlier i was unable to run weston on lcd using default backend which used backend-drm.so so now i am running weston using  fbdev-backend.so and i am able to see weston screen on lcd with this method. But currently I am facing following problems.

1. I am not able to run matrix gui.(no error but gui is not visible on lcd).

2. If i am running any Qt application using default configured Qt with SDK, It is giving segmentation fault.

Thanks & Regards

Abhishek

  • Hi,

    I will forward this to the software team.
  • Hi Biser,

                 Is there  any update from software team ?

    Thanks & Regards

    Abhishek

  • Hi Abhishek,

    1. Which SDK are you using? Can you try to run:
    pvrsrvinit
    weston
    matrix-gui-2.0 stop
    matrix-gui-2.0 start
    What is the debug output upon executing the above commands?

    2. The segmentation fault usually indicates that the app was built incorrectly. Are you using the hints shown here:
    processors.wiki.ti.com/.../Sitara_Linux_Training:_Hands_on_with_QT

    Best Regards,
    Yordan
  • Hi Yoradn,

                       I am using 02.00.01.07 version of SDK. Below are the result of commands u asked.

    root@am57xx-evm:~# pvrsrvinit
    PVR:(Warning): PVRDRMSetFD: could not get plugin ioctl base: -19 [69, /pvr_bridge_u.c]
    PVR:(Error): OpenServices: drmOpen failed [120, /pvr_bridge_u.c]
    PVR:(Error): PVRSRVInitSrvConnect: PVRSRVConnect failed [2572, /bridged_pvr_glue.c]
    PVR:(Error): SrvInit: PVRSRVInitSrvConnect failed (4) [37, /srvinit.c]
    PVR:(Error): main: SrvInit failed (4) [47, /pvrsrvinit.c]
    root@am57xx-evm:~# weston --tty=2 --backend=fbdev-backend.so --device=/dev/fb0 (able to see white weston screen on LCD)
    Date: 2000-01-01 UTC
    [00:00:42.414] weston 1.6.0
                   wayland.freedesktop.org/
                   Bug reports to: bugs.freedesktop.org/enter_bug.cgi
                   Build: 1.5.93-5-g2858cc2 configure.ac: bump version to 1.6.0 (2014-09-19 13:40:14 +0300)
    [00:00:42.415] OS: Linux, 4.1.13-dirty, #4 SMP PREEMPT Fri Aug 19 19:55:52 IST 2016, armv7l
    [00:00:42.415] Using config file '/etc//weston.ini'
    [00:00:42.417] Loading module '/usr/lib/weston/fbdev-backend.so'
    [00:00:42.428] initializing fbdev backend
    [00:00:42.431] Creating fbdev output.
    [00:00:42.431] Opening fbdev frame buffer.
    [00:00:42.432] Calculating pixman format from:
                    - type: 0 (aux: 0)
                    - visual: 2
                    - bpp: 16 (grayscale: 0)
                    - red: offset: 11, length: 5, MSB: 0
                    - green: offset: 5, length: 6, MSB: 0
                    - blue: offset: 0, length: 5, MSB: 0
                    - transp: offset: 0, length: 0, MSB: 0
    [00:00:42.432] Mapping fbdev frame buffer.
    [00:00:42.432] fbdev output 320×240 px
                   guessing 60 Hz and 96 dpi
    [00:00:42.451] input device 'TSC2007 Touchscreen', /dev/input/event0 is a touch device
    [00:00:42.451] input device 'palmas_pwron', /dev/input/event1 is a keyboard
    [00:00:42.451] launching '/usr/lib/weston/weston-keyboard'
    [00:00:42.545] Compositor capabilities:
                   arbitrary surface rotation: yes
                   screen capture uses y-flip: yes
    [00:00:42.546] Loading module '/usr/lib/weston/desktop-shell.so'
    [00:00:42.551] launching '/usr/lib/weston/weston-desktop-shell'
    root@am57xx-evm:~# /etc/init.d/matrix-gui-2.0 start
    /home/root
    Removing stale PID file /var/run/matrix-gui-2.0.pid.
    Starting Matrix GUI application.
    root@am57xx-evm:~# /etc/init.d/matrix-gui-2.0 stop
    Stopping Matrix GUI applicationstart-stop-daemon: warning: killing process 943: No such process
    2. Yes i am following that and i am able to run qt application by using linuxfb plugin of QT.
    ./qtapp -platform linuxfb (display succesfully)
    But not able to run using weston
    ./qtapp (segmentation fault)
    but same application is running successfully on HDMI when weston being run by using default backend i.e drm-backend.so library.
     
  • Hi Yordan,
    Is there any suggetion for this  ?

    Thanks & Regards
    Abhishek

  • Hi Abhishek,

    Sorry for the delayed response. I was out of office.

    Have you tried specifying the lcd connector? You can find it using modetest.

    Also the error messages you get seem to indicate the pvr driver is not built against the kernel (and therefore not loaded upon device bootup) or some user modules are missing.. Can you verify this with lsmod?

    Best Regards,
    Yordan
  • Hi Yordan,

                          I think i can not specify lcd connector if i run qt application over weston. If is there any way kindly let me know i tried like below but still getting segmentation fault. and if weston is being run using fbdev backend i am unable to run video also using waylandsink.

    root@am57xx-evm:~/abhishek# weston --tty=1 --backend=fbdev-backend.so & (using fbdev backend to run weston tried it on EVM able to see weston window after this command)

    [1] 1567

    Date: 2016-01-28 UTC

    [23:45:54.865] weston 1.6.0

                 

                  Bug reports to:

                  Build: 1.5.93-5-g2858cc2 configure.ac: bump version to 1.6.0 (2014-09-19 13:40:14 +0300)

    [23:45:54.865] OS: Linux, 4.1.13-g8dc6617, #1 SMP PREEMPT Thu Jan 28 14:18:18 EST 2016, armv7l

    [23:45:54.866] Using config file '/etc//weston.ini'

    [23:45:54.866] Loading module '/usr/lib/weston/fbdev-backend.so'

    [23:45:54.868] initializing fbdev backend

    [23:45:54.868] Creating fbdev output.

    [23:45:54.868] Opening fbdev frame buffer.

    [23:45:54.868] Calculating pixman format from:

                   - type: 0 (aux: 0)

                   - visual: 2

                   - bpp: 32 (grayscale: 0)

                   - red: offset: 16, length: 8, MSB: 0

                   - green: offset: 8, length: 8, MSB: 0

                   - blue: offset: 0, length: 8, MSB: 0

                   - transp: offset: 24, length: 8, MSB: 0

    [23:45:54.868] Mapping fbdev frame buffer.

    [23:45:54.869] fbdev output 800�×480 px

                  guessing 60 Hz and 96 dpi

    [23:45:54.870] input device 'palmas_pwron', /dev/input/event1 is a keyboard

    [23:45:54.877] input device 'pixcir_tangoc', /dev/input/event0 is a touch device

    [23:45:54.878] input device 'UVC Camera (046d:081b)', /dev/input/event3 is a keyboard

    [23:45:54.878] input device 'gpio_keys', /dev/input/event2 is a keyboard

    [23:45:54.878] launching '/usr/lib/weston/weston-keyboard'

    [23:45:54.901] Applying calibration: 0.957024 -0.031620 23.466064 0.035414 1.056099 -47.766022 (normalized 0.029333 -0.099513)

    [23:45:54.901] Compositor capabilities:

                  arbitrary surface rotation: yes

                  screen capture uses y-flip: yes

    [23:45:54.901] Loading module '/usr/lib/weston/desktop-shell.so'

    [23:45:54.910] launching '/usr/lib/weston/weston-desktop-shell'

    root@am57xx-evm:~/abhishek#

    root@am57xx-evm:~/abhishek# ./MarsDemoUi --connector=30

    No such plugin for spec  "Auto"

    Using Wayland-EGL

    PVR:(Warning): LoadWSModule: Window system module libpvrws_KMS.so did not validate native display [98, /generic_ws.c]

    Segmentation fault

    root@am57xx-evm:~/abhishek#

    root@am57xx-evm:~/abhishek# ./MarsDemoUi --connector=30 (tried it on EVM)

    No such plugin for spec  "Auto"

    Using Wayland-EGL

    PVR:(Warning): LoadWSModule: Window system module libpvrws_KMS.so did not validate native display [98, /generic_ws.c]

    Segmentation fault

    root@am57xx-evm:~/abhishek#

    Please  find the output of lsmod below , And PVR driver is loading at the booting time ,Those  library missing errors i am getting even if i am building pvr driver with the current used kernel, Thats why i tried the above steps on EVM and on EVM also results are same.

    root@am57xx-evm:~/abhishek# lsmod
    Module                  Size  Used by
    bluetooth             314427  2
    ipv6                  319670  26
    gdbserverproxy          4597  0
    cryptodev              36165  0
    cmemk                  30509  0
    snd_usb_audio         135365  0
    snd_hwdep               5932  1 snd_usb_audio
    uvcvideo               73523  0
    snd_usbmidi_lib        19777  1 snd_usb_audio
    snd_rawmidi            20512  1 snd_usbmidi_lib
    videobuf2_vmalloc       5029  1 uvcvideo
    xhci_plat_hcd           4517  0
    xhci_hcd              102954  1 xhci_plat_hcd
    usbcore               191845  5 snd_usb_audio,uvcvideo,snd_usbmidi_lib,xhci_plat_hcd,xhci_hcd
    rpmsg_rpc              19680  0
    ahci_platform           2880  0
    dwc3                   60550  0
    leds_gpio               3497  0
    libahci_platform        8445  1 ahci_platform
    gpio_keys               8446  0
    virtio_rpmsg_bus       12427  1 rpmsg_rpc
    evdev                   9585  4
    joydev                  8618  0
    udc_core               11572  1 dwc3
    snd_soc_simple_card     7015  0
    snd_soc_omap_hdmi_audio     4541  0
    st_drv                 18535  0
    palmas_pwrbutton        3483  0
    rtc_palmas              5019  0
    extcon_palmas           5509  0
    libahci                27461  2 libahci_platform,ahci_platform
    ti_vip                 25729  0
    rtc_ds1307              9182  0
    mt9t11x                14669  0
    libata                195836  3 libahci,libahci_platform,ahci_platform
    pixcir_i2c_ts           6695  0
    omap_wdt                4121  0
    snd_soc_tlv320aic3x    41480  1
    phy_omap_usb2           5693  2
    omapdrm_pvr           343250  0
    ti_vpe                 42041  0
    ti_vpdma               14682  2 ti_vip,ti_vpe
    dwc3_omap               4516  0
    rtc_omap                7449  0
    omap_rng                4533  0
    rng_core                8050  2 omap_rng
    debugss_kmodule         6702  0
    omap_remoteproc         7509  4
    extcon_usb_gpio         2842  0
    remoteproc             27139  2 omap_remoteproc,rpmsg_rpc
    extcon                 13349  4 dwc3,extcon_palmas,dwc3_omap,extcon_usb_gpio
    virtio                  7364  2 remoteproc,virtio_rpmsg_bus
    virtio_ring            11848  2 remoteproc,virtio_rpmsg_bus
    root@am57xx-evm:~/abhishek#

    Thanks & Regards

    Abhishek

  • Hi Yordan ,
    Any suggetion How to run videos and qt application by using fbdev backend, As i am able to run weston using fbdev backend but not able to run qtapp and video using waylandsink.
  • Hi Abhishek,

    I've asked for help on this, as I am not a graphics expert. Feedback will be posted directly here.

    Best Regards,
    Yordan
  • Abhishek,

    Is it possible for you to migrate to latest PSDK release 3.0 and let us know the behavior?

    Regards,

    Manisha