Results 1 to 5 of 5

Thread: EGLFS Could not open egl display

  1. #1
    Join Date
    Jul 2016
    Posts
    18
    Thanks
    3
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: EGLFS Could not open egl display

    Hello,

    Host :
    $ uname -a
    Linux --- 3.19.0-64-generic #72~14.04.1-Ubuntu SMP Fri Jun 24 17:59:48 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

    Target :
    # uname -a
    Linux b2qt-apalis-imx6 3.14.28-v2.6b1+g0bb38d1 #5 SMP Wed Jul 13 10:30:50 EDT 2016 armv7l GNU/Linux

    Installed qt-unified-linux-x64-2.0.3-2-online.run with Qt 5.7 and Apalix-iMX6.

    rootfs built from 'meta-boot2qt/recipes-qt/images/b2qt-embedded-qt5-image.bb'.

    Build Configuration:
    BB_VERSION = "1.28.0"
    BUILD_SYS = "x86_64-linux"
    NATIVELSBSTRING = "Ubuntu-14.04"
    TARGET_SYS = "arm-poky-linux-gnueabi"
    MACHINE = "apalis-imx6"
    DISTRO = "b2qt"
    DISTRO_VERSION = "2.0.1"
    TUNE_FEATURES = "arm armv7a vfp thumb neon callconvention-hard"
    TARGET_FPU = "vfp-neon"
    meta
    meta-yocto = "HEAD:b1f23d1254682866236bfaeb843c0d8aa332efc2 "
    meta-toradex = "HEAD:eca5937408c75a997b160bd1b92e1496b07421cf "
    meta-fsl-arm = "HEAD:8d22b44716fa624ff87383c36d222d9e28d0b267 "
    meta-fsl-arm-extra = "HEAD:8fdde39f732be9e1ee9505a04c579073114459e7 "
    meta-oe
    meta-python
    meta-networking
    meta-initramfs
    meta-multimedia = "HEAD:dc5634968b270dde250690609f0015f881db81f2 "
    meta-boot2qt
    meta-fsl-extras
    meta-toradex-extras = "<unknown>:<unknown>"
    meta-mingw = "HEAD:2844575c17f3875aa2ad0e83d600f52a1893390d "
    meta-qt5 = "HEAD:2746cdba75f411541d80ddfd5cadad2753fe29d3 "

    Now upon installing this from direct 'bitbake b2qt-embedded-qt5-image', I expected the device to boot to the default Qt demo. It does not. I placed my app onto the system that was working with 5.5 and 5.6 that obviously used other earlier distros, things did work on this same board.

    "unknown[0]: QEglFSVivIntegration will set environment variable FB_MULTI_BUFFER=2 to enable double buffering and vsync.
    If this is not desired, you can override this via: export QT_EGLFS_IMX6_NO_FB_MULTI_BUFFER=1
    unknown[0]: Could not open egl display
    Aborted"

    I have updated the /etc/appcontroller.conf file and added the ..NO_FB.. suggestion and removed the ..FB=2.. as well. I rebooted and the same results. Here is that file and the paths are correct.

    env=QT_QPA_PLATFORM=eglfs
    env=QT_QPA_PLATFORM_PLUGIN_PATH=/usr/lib/plugins/platforms
    #env=FB_MULTI_BUFFER=2
    env=QT_QPA_EGLFS_WIDTH=1920
    env=QT_QPA_EGLFS_HEIGHT=1080
    env=QT_EGLFS_IMX6_NO_FB_MULTI_BUFFER=1
    env=QML2_IMPORT_PATH=/data/user/qt/qmlplugins
    env=QT_IM_MODULE=qtvirtualkeyboard
    env=QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS=/dev/input/event0
    env=QT_GSTREAMER_CAMERABIN_VIDEOSRC=mxc_v4l2=imxv4 l2videosrc,v4l2src
    env=QT_QUICK_CONTROLS_STYLE=Flat
    env=XDG_RUNTIME_DIR=/tmp
    base=linux
    platform=apalis-imx6

    I have done 'ldd' and everything is found. I do know that the boot2qt.service "stuff" is all in place. Also...

    "cat /proc/cmdline"
    enable_wait_mode=off vmalloc=400M ip=off root=/dev/mmcblk0p2 rw,noatime rootfstype=ext3 rootwait fec_mac=00:14:2d:49:e5:6e consoleblank=0 no_console_suspend=1 console=tty1 console=ttymxc0,115200n8 mxc_hdmi.only_cea=1 video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24 video=mxcfb1ff video=mxcfb2ff video=mxcfb3ff fbmem=32M

    This is probably more info than needed. I am trying to figure this out on my own and am at the end of what I know and am looking for help. I am learning this boot2qt stuff and am unsure what I should be looking for in this video chain that may be broken.

    I appreciate your time, thank you.

    Cheers,
    Pete



    Added after 46 minutes:


    UPDATE1:

    /etc/systemd/system/multi-user.target.wants# cat b2qt.service
    [Unit]
    Description=B2Qt user application
    After=systemd-user-sessions.service
    ConditionPathExists=/usr/bin/b2qt

    [Service]
    ExecStart=-/usr/bin/appcontroller /usr/bin/b2qt

    [Install]
    WantedBy=multi-user.target

    /etc/systemd/system/multi-user.target.wants# /usr/bin/appcontroller /usr/bin/b2qt
    "QML2_IMPORT_PATH" "/data/user/qt/qmlplugins"
    "QT_EGLFS_IMX6_NO_FB_MULTI_BUFFER" "1"
    "QT_GSTREAMER_CAMERABIN_VIDEOSRC" "mxc_v4l2=imxv4l2videosrc,v4l2src"
    "QT_IM_MODULE" "qtvirtualkeyboard"
    "QT_QPA_EGLFS_HEIGHT" "1080"
    "QT_QPA_EGLFS_WIDTH" "1920"
    "QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS" "/dev/input/event0"
    "QT_QPA_PLATFORM" "eglfs"
    "QT_QPA_PLATFORM_PLUGIN_PATH" "/usr/lib/plugins/platforms"
    "QT_QUICK_CONTROLS_STYLE" "Flat"
    "XDG_RUNTIME_DIR" "/tmp"
    "/usr/bin/b2qt" ()
    Failed to start
    Binary does not exist.





    /etc/systemd/system/multi-user.target.wants# cat qtlauncher.service
    [Unit]
    Description=B2Qt Launcher Demo
    After=systemd-user-sessions.service
    ConditionPathExists=!/usr/bin/b2qt

    [Service]
    ExecStart=-/usr/bin/appcontroller /usr/bin/qtlauncher --applications-root /data/user/qt

    [Install]
    WantedBy=multi-user.target

    /etc/systemd/system/multi-user.target.wants# /usr/bin/appcontroller /usr/bin/qtlauncher --applications-root /data/user/qt
    "QML2_IMPORT_PATH" "/data/user/qt/qmlplugins"
    "QT_EGLFS_IMX6_NO_FB_MULTI_BUFFER" "1"
    "QT_GSTREAMER_CAMERABIN_VIDEOSRC" "mxc_v4l2=imxv4l2videosrc,v4l2src"
    "QT_IM_MODULE" "qtvirtualkeyboard"
    "QT_QPA_EGLFS_HEIGHT" "1080"
    "QT_QPA_EGLFS_WIDTH" "1920"
    "QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS" "/dev/input/event0"
    "QT_QPA_PLATFORM" "eglfs"
    "QT_QPA_PLATFORM_PLUGIN_PATH" "/usr/lib/plugins/platforms"
    "QT_QUICK_CONTROLS_STYLE" "Flat"
    "XDG_RUNTIME_DIR" "/tmp"
    "/usr/bin/qtlauncher" ("--applications-root", "/data/user/qt")
    Could not open egl display
    Application crashed: /usr/bin/qtlauncher
    Process stopped
    quit
    Last edited by PeterVE; 14th July 2016 at 17:30. Reason: don't need original post

  2. #2
    Join Date
    Jul 2016
    Posts
    18
    Thanks
    3
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: EGLFS Could not open egl display

    According to the kernel command line, there should be at least /dev/mxcfb0. Or am I misunderstanding something? The video0-7 is my pcie card. The 16 and 17 are v4l2 outputs.


    root@b2qt-apalis-imx6:~# ls /dev/
    autofs fb1 i2c-2 loop2 mmcblk0p1 port ram13 ram9 stderr tty14 tty23 tty32 tty41 tty50 tty6 ttymxc3 vcs3 vcsa6 video6
    block fd i2c-3 loop3 mmcblk0p2 pps0 ram14 random stdin tty15 tty24 tty33 tty42 tty51 tty60 ttymxc4 vcs4 vga_arbiter video7
    bus full iio:device0 loop4 mmcblk1 ptmx ram15 rfkill stdout tty16 tty25 tty34 tty43 tty52 tty61 ubi_ctrl vcs5 video0 watchdog
    char fuse initctl loop5 mmcblk1p1 ptp0 ram2 rtc tty tty17 tty26 tty35 tty44 tty53 tty62 uinput vcs6 video1 zero
    console galcore input loop6 mxc_hdmi pts ram3 rtc0 tty0 tty18 tty27 tty36 tty45 tty54 tty63 urandom vcsa video16
    cpu_dma_latency hidraw0 kmsg loop7 mxc_ipu ram0 ram4 rtc1 tty1 tty19 tty28 tty37 tty46 tty55 tty7 usb-ffs vcsa1 video17
    cuse hidraw1 log mem mxc_vpu ram1 ram5 shm tty10 tty2 tty29 tty38 tty47 tty56 tty8 v4l vcsa2 video2
    disk hwrng loop-control mmcblk0 network_latency ram10 ram6 snd tty11 tty20 tty3 tty39 tty48 tty57 tty9 vcs vcsa3 video3
    dri i2c-0 loop0 mmcblk0boot0 network_throughput ram11 ram7 spidev0.0 tty12 tty21 tty30 tty4 tty49 tty58 ttymxc0 vcs1 vcsa4 video4
    fb0 i2c-1 loop1 mmcblk0boot1 null ram12 ram8 spidev1.0 tty13 tty22 tty31 tty40 tty5 tty59 ttymxc1 vcs2 vcsa5 video5


    root@b2qt-apalis-imx6:/data/user/mcs# cat /proc/cmdline
    enable_wait_mode=off vmalloc=400M ip=off root=/dev/mmcblk0p2 rw,noatime rootfstype=ext3 rootwait fec_mac=00:14:2d:49:e5:6e consoleblank=0 no_console_suspend=1 console=tty1 console=ttymxc0,115200n8 mxc_hdmi.only_cea=1 video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24 video=mxcfb1ff video=mxcfb2ff video=mxcfb3ff fbmem=32M


    Device Tree issue? I've tried a couple but will look deeper.

  3. #3
    Join Date
    Jul 2016
    Posts
    18
    Thanks
    3
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: EGLFS Could not open egl display

    Issue Resolved. I am disappointed to learn that it is not my fault that this happened. According to QTBUG-54750, the issue is because there are updated libraries that the kernel uses (for the 3.14.52 kernel) in the rootfs paired with an old kernel (3.14.28) as default. Upgrading only the kernel to 3.14.52 works. The Qt 5.7 release was not tested with the Apalis-iMX6 before it was released even though it is a supported platform.

  4. #4
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: EGLFS Could not open egl display

    Are you sure that this specific Linux version is one of the tested ones?

    Sounds like a board vendor specific image/distribution.

    Cheers,
    _

  5. #5
    Join Date
    Feb 2014
    Posts
    15
    Thanks
    3

    Default Re: EGLFS Could not open egl display

    I also used Yocto to build Qt SDK (meta-qt5 krogoth) and I have the same error but I'm using a newer kernel

    Linux cm-fx6-evk 4.1.15-cl-1.0+g77f6154 #1 SMP PREEMPT Tue Nov 8 17:20:40 CET 2016 armv7l armv7l armv7l GNU/Linux

    Having exported:
    QT_QPA_PLATFORM=eglfs
    DISPLAY=:0.0

    Any idea what is failing?

Similar Threads

  1. Qt5.5 screen rotation with eglfs
    By binaural in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 23rd October 2017, 09:47
  2. Qt Embedded in eglfs (linux) on different windows
    By natile in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 30th July 2015, 08:42
  3. eglfs vs wayland for graphicsview
    By denizlitr in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 13th June 2013, 09:31
  4. Open and display a document on a window
    By Stanfillirenfro in forum Qt Programming
    Replies: 2
    Last Post: 4th February 2013, 09:53
  5. Open and display image using Html5 ?
    By vidya.p in forum Newbie
    Replies: 1
    Last Post: 4th January 2012, 12:41

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.