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.

Getting Beaglebone Black SGX Driver To Work For Sample JavaFX 8 Program



Attempted to get help on a Beaglebone Black (BBB) forum for installing the SGX driver on Ubuntu 14.04 for the BBB. One person recommended making a post on a TI E2E Community forum. Trying to remotely run a sample JavaFX 8 program in NetBeans 8.0 so it can run on the BBB without any issues. When running the program the following errors appear in the NetBeans Output window:

=======================================================

Connecting to xxx.xxx.xxx.xxx:22
cmd : cd '/home/ubuntu/NetBeans_Projects/JavaFX_Test'; '/home/ubuntu/ejre-1.8.0_fx/bin/java' -Dfile.encoding=UTF-8 -jar /home/ubuntu/NetBeans_Projects/JavaFX_Test/dist/JavaFX_Test.jar
eglCreateWindowSurface failed! eglGetError 12291
eglMakeCurrent failed - 12297
Failed to create EGLContext
Graphics Device initialization failed for : es2
Error initializing QuantumRenderer: no suitable pipeline found

=======================================================

If the rc.pvr daemon isn't running on the BBB then the following errors appear:

=======================================================

Connecting to xxx.xxx.xxx.xxx:22
cmd : cd '/home/ubuntu/NetBeans_Projects/JavaFX_Test'; '/home/ubuntu/ejre-1.8.0_fx/bin/java' -Dfile.encoding=UTF-8 -jar /home/ubuntu/NetBeans_Projects/JavaFX_Test/dist/JavaFX_Test.jar
eglInitialize failed!
Graphics Device initialization failed for : es2
Error initializing QuantumRenderer: no suitable pipeline found

=======================================================

  • Hi Nick,

    This forum supports only the TI distributed Linux EZSDK. For all other versions send your questions to: http://beagleboard.org/Community/Forums

  • Actually that isn't correct. The AM3559 SoC (a TI product) contains a SGX530 GPU. TI SGX Graphics SDK is used to provide a driver and other software for the GPU. This forum provides official support for the use of the TI SGX Graphics SDK.

  • All SGX demos are now running just fine without the EGL Surface type errors. Now when I try to run the sample JavaFX 8 program (locally or remotely) different error messages appear like the following:

    =======================================================
    Connecting to xxx.xxx.xxx.xxx:22
    cmd : cd '/home/debian/NetBeans_Projects//JavaFX_Test'; '/home/debian/ejre-1.8.0_fx/bin/java'  -Dfile.encoding=UTF-8   -jar /home/debian/NetBeans_Projects//JavaFX_Test/dist/JavaFX_Test.jar 
    eglGetConfigAttrib failed!
    Graphics Device initialization failed for :  es2
    Error initializing QuantumRenderer: no suitable pipeline found
    =======================================================
    Spotted in the EGL API Docs by chance that the eglGetConfigAttrib function according to the description, "return information about an EGL frame buffer configuration". Discovered indirectly from the docs that JavaFX needs direct access to the frame buffer and doesn't require X Server to be running. Right now I am assuming that JavaFX can now create an EGL surface but cannot obtain configuration information for the frame buffer which is needed to render everything else graphics wise, hence an exception (error) is thrown/displayed.
  • Trying to build DirectFB (an alternative way to get JavaFX 8 programs displayed) to use the pvr2d driver (SGX 530) however the build fails with the following errors:

    ===============================================================
    make[3]: Entering directory `/home/debian/DirectFB-1.6.3/systems/pvr2d'
      CC     pvr2d_primary.lo
    In file included from pvr2d_primary.c:62:0:
    pvr2d_system.h:33:19: fatal error: pvr2d.h: No such file or directory
    compilation terminated.
    make[3]: *** [pvr2d_primary.lo] Error 1
    make[3]: Leaving directory `/home/debian/DirectFB-1.6.3/systems/pvr2d'
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory `/home/debian/DirectFB-1.6.3/systems'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/debian/DirectFB-1.6.3'
    make: *** [all] Error 2
    ===============================================================
    Where does the TI Graphics SDK 5.1.0 install pvr2d.h to?
  • Is TI planning to release a new version of the TI Graphics SDK?

  • Nick,

    We do not have a defined date yet. Please use the current 05.01.01.01

    regards