Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt5.2.1 at i.MX5 framebuffer problem
Forum Update on Monday, May 27th 2025

Qt5.2.1 at i.MX5 framebuffer problem

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 Posters 1.9k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kortus
    wrote on last edited by
    #1

    Hello together,

    I have searched the net for a while but I found no solution. I have a QML application which runs at a Phytex i.MX6 board and now this application should run at a i.MX51 board.
    I reuse the eglfshook from the i.mx53qsb device. Compilation are without problems ant normal applications work at the target device, but the initialize of the display doesn't work. The function call eglCreateWindowSurface in method resetSurface in file qtbase/src/plugins/platforms/eglfs/eglfswindow.cpp
    finished with a core dump.
    @
    QIconvCodec::convertFromUnicode: using Latin-1 for conversion, iconv_open failed
    QIconvCodec::convertToUnicode: using Latin-1 for conversion, iconv_open failed
    VSCREENINFO:0 xres=1024; yres=768;
    display id: 0x1;
    using hook: /dev/fb0;
    create platform specific native window for i.MX51 ...
    native windows id: 0xc;
    Segmentation fault (core dumped)@

    I have added some message. The framebuffer itself works, I think (checked with cat /dev/urandom > /dev/fb0).
    Is there a smal test program for the EGL interface?

    Best thanks
    Steffen

    1 Reply Last reply
    0
    • M Offline
      M Offline
      miskol
      wrote on last edited by
      #2

      I use this
      https://github.com/linux-sunxi/sunxi-mali/tree/master/test

      I use it with Mali400

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kortus
        wrote on last edited by
        #3

        Thanks, I have downloaded the source. I see one difference to my EGL implementation. The (EGL)NativeWindowType is in my libEGL.so an normal integer value. Now I get the following result

        @EGL Version: "1.4 Internal version 1.4.1"
        EGL Vendor: "Advanced Micro Devices, Inc"
        EGL Extensions: "eglCreatePbufferFromClientBuffer EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap EGL_AMD_create_image"
        Error: eglCreateContext failed: 0x00003005@

        I think the key is the connection between the EGL system and the native windows. At the moment I use:

        @EGLNativeWindowType native_window;
        native_window = open("/dev/fb0", O_RDWR);
        egl_surface = eglCreateWindowSurface(egl_display,
        config, native_window, window_attribute_list);@

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved