Skip to content

Instantly share code, notes, and snippets.

@adam-lee
Last active October 9, 2015 00:58
Show Gist options
  • Save adam-lee/eed8672e33e480931d09 to your computer and use it in GitHub Desktop.
Save adam-lee/eed8672e33e480931d09 to your computer and use it in GitHub Desktop.
Running-QT5-with-SGX-on-Gumstix-Pepper.md

Enabling SGX (hardware accelerated graphics) on Pepper SBC is straight forward with Gumstix Yocto Project. Note that SGX does not support X11.

The custom, SGX enabled, image builds on the development branch of the Gumstix Yocto Project. A couple things need to be modified to add TI's Graphics SDK (v5) and Qt5-SGX demo applications. So be sure to set up the Yocto Project build environment first. Note that you need the development branch. The master branch has not been updated with necessary kernel patches.

Now you can make necessary changes to add SGX, build an image, and boot your device:

  1. Uncomment these lines from local.conf located in build/conf/:

    # Specify SGX GFX providers for Pepper
    PREFERRED_PROVIDER_virtual/egl_pepper ?= "libgles-omap3"
    PREFERRED_PROVIDER_virtual/libgles1_pepper ?= "libgles-omap3"
    PREFERRED_PROVIDER_virtual/libgles2_pepper ?= "libgles-omap3"
    
  2. Uncomment these packages from gumstix-qt5-dev-image.bb in poky/meta-gumstix-extras/recipes-images/gumstix/:

    IMAGE_INSTALL_append_pepper = " \
      qt5-demo-extrafiles \
      qt5everywheredemo \
    "
    
  3. Uncomment this line from qtbase_git.bbappend in poky/meta-gumstix-extras/recipes-qt5/qtbase/qtbase_git.bbappend:

    PACKAGECONFIG_GL_pepper = "gles2 linuxfb"
    
  4. Run bitbake gumstix-qt5-dev-image to generate Qt5-SGX Pepper image; and flash to your uSD card.

  5. Boot your Pepper SBC. You should see the login prompt on both your serial session and as well as on the LCD screen.

  6. From your console screen, login as root and run Qt5-SGX demo:

    export QT_QPA_PLATFORM=eglfs && cd /usr/share/qt5everywheredemo-1.0 && ./QtDemo
    
  7. You should see the touch friendly Qt5 Demo application running on your LCD screen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment