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:
-
Uncomment these lines from
local.conf
located inbuild/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"
-
Uncomment these packages from
gumstix-qt5-dev-image.bb
inpoky/meta-gumstix-extras/recipes-images/gumstix/
:IMAGE_INSTALL_append_pepper = " \ qt5-demo-extrafiles \ qt5everywheredemo \ "
-
Uncomment this line from
qtbase_git.bbappend
inpoky/meta-gumstix-extras/recipes-qt5/qtbase/qtbase_git.bbappend
:PACKAGECONFIG_GL_pepper = "gles2 linuxfb"
-
Run
bitbake gumstix-qt5-dev-image
to generate Qt5-SGX Pepper image; and flash to your uSD card. -
Boot your Pepper SBC. You should see the login prompt on both your serial session and as well as on the LCD screen.
-
From your console screen, login as
root
and run Qt5-SGX demo:export QT_QPA_PLATFORM=eglfs && cd /usr/share/qt5everywheredemo-1.0 && ./QtDemo
-
You should see the touch friendly Qt5 Demo application running on your LCD screen.