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.

Hellogl_es2 example: could not initialize EGL display

Hello,

I have the AM335x EVM and currently installed Qt4. I did the Hands on with Qt Lab 1 und Lab 2 and everything works well. I skipped 3 and 4 as I won't be working with the Qt Designer, but another example I created including buttons and signals and everything runs well also.

Now I wanted to do Lab 5 and I find all the files, I changed the powervr.ini like instructed in step 7, but when I issue the command from step 8

" ./hellogl_es2 -qws -display powervr"


it says

"Could not initialize EGL display - are the drivers loaded?

Segmentation fault"

Can anybody please help me?

I really want to do some applications using openGL, and if this example application doesn't even work, my own applications most probably won't work, I guess?

Tell me if you need additional informations, as I am new to Qt and haven't used the AM335x for long I don't know, what you might need.

Thanks in advance!

  • Hi,

    Please post which EVM board and Linux version you are using.

  • I'm using ubuntu 14.04 on a virtual machine and the 06.00.00.00 SDK and the AM335x EVM with ARMv7 Processor

  • Do you have the Graphics SDK installed?

  • That could be something. I haven't installed it knowingly, so probably not. How do I install that? Is this the tutorial:

    http://processors.wiki.ti.com/index.php/Graphics_SDK_Quick_installation_and_user_guide

    But I am a bit confused, since in the prerequisites for the hands on tutorial it says nothing about installing this SDK...

  • Ok great, thanks. I am gonna try that. Do I only need to do the install steps or something else too?

  • Just follow the wiki instructions.

  • Ok, I covered the install steps, that seemed to have worked. I installed the Graphics_SDK_setuplinux_4_10_00_01.bin to /home/sitara. But now it says "

    1. Change the directory to ~/Graphics_SDK_#_##_##_##

    Can't do that since I don't find that folder. Is it supposed to be in /home/sitara? I only have folders labeled

    webn@webn-VirtualBox:/home/sitara$ ls
    addkernelmodules.sh
    attributions.txt
    bin
    board-support
    docs
    example-applications
    filesystem
    gfx_dbg_es3.x
    gfx_dbg_es5.x
    gfx_dbg_es6.x
    gfx_dbg_es8.x
    GFX_Linux_KM
    GFX_Linux_SDK
    gfx_rel_es3.x
    gfx_rel_es5.x
    gfx_rel_es6.x
    gfx_rel_es8.x
    gfxsdkdemos
    Graphics_SDK_setuplinux_4_09_00_01_hardfp_minimal_demos.bin
    Graphics_SDK_setuplinux_4_10_00_01.bin
    host-tools
    include
    linux-devkit
    Makefile
    Makefile.KM
    Makefile.SDK
    qt-creator-2.7.1
    qt-creator-linux-x86_64-opensource-2.7.1.bin
    README.pdf
    README.txt
    Rules.make
    setup.sh
    targetfs
    tools
    TSPA.txt
    uninstall
    unittest

    Do I have to install again or look for the Rules.make file somewhere else?

  • I don't have much knowledge about this too. Maybe GFX_Linux_SDK?

  • This is really embarassing...since I installed it to /home/sitara it didn't create the Folder Graphics-.... It just put all the stuff in the sitara folder directly...so the Rules.make is lying there...sometimes you can't see the wood for the trees....

  • Ok, now I am a bit confused modifying the Rules.make file. I don't know to what I should set the CSTOOL_DIR field. Where can I find out what toolchain I am using? the suggested arm-2009q1 it won't find...

    When I did the tutorial hands on with qt I used the arm-linux-gnueabihf-gcc and arm-linux-gnueabihf-gdb files found in /home/sitara/ti-sdk-<machine>-<sdk version>/linux-devkit/sysroots/i686-arago-linux/usr/bin. Does that help maybe?

    For the KERNEL_INSTALL_DIR and the TARGETFS_INSTALL_DIR field I don't even know where to start looking for somehing.

    I only modified the bold text in the Rules.make file

    ________________________________________

    #Rules.make

    ################# FIELDS MODIFIABLE BY THE USER ###############################
    ############### All the fields below are MANDATORY ############################

    #By default all below variables have been initialized with equivalent AMSDK variables
    # Change them to appropriate paths as per your machine/build environment paths.
    # Set home area (ex /home/user/)
    HOME=/home/sitara

    # Set Toolchain path (ex /home/user/toolchain/arago-2011.09/armv7a)
    CSTOOL_DIR=$(LINUX_DEVKIT_PATH)

    # Set Tool chain prefix (ex arm-arago-linux-gnueabi- )
    CSTOOL_PREFIX=`basename $CROSS_COMPILE`

    # Set kernel installation path ( ex /home/user/linux-04.00.01.13 )
    KERNEL_INSTALL_DIR=$(LINUXKERNEL_INSTALL_DIR)

    # Set Target filesystem path ( ex /home/user/targetfs )
    TARGETFS_INSTALL_DIR=$(DESTDIR)

    # Set installation folder
    GRAPHICS_INSTALL_DIR=$(HOME)/Graphics_SDK_4_10_00_01
    ############### All the fields below are OPTIONAL ############################
    ############### BEST SUGGESTED TO LEAVE THE BELOW AS IS ############################

    # Below is just an optional define given only to enable users who want to pass additional compiler/link flags.
    # Only update the below options if you exactly know about the additional flag to be added & also are sure that its supported with your toolchain.
    # Otherwise its best suggested to leave the below as is ie empty

    # Add additional Compiler flags below only if required (Please read above comments)
    EXTRA_CFLAGS?=
    export EXTRA_CFLAGS
    export EXTRA_LFLAGS

    ######################### PRE-DEFINED VARIABLES ###############################
    ######################## NOT MODIFIABLE BY USER ###############################


    # Location of demo executables and install information
    GFX_DEMOS_EXECPATH=$(GRAPHICS_INSTALL_DIR)/gfxsdkdemos

    CSTOOL_PATH=$(CSTOOL_DIR)/bin
    CSTOOL_LIBSTDC++_PATH=$(CSTOOL_DIR)/$(subst gnueabi-,gnueabi,$(CSTOOL_PREFIX))/lib
    export CSTOOL_PATH
    export CSTOOL_PREFIX

    PLATFORM=LinuxARMV7

    GFX_OGLES_SDKPATH=$(GRAPHICS_INSTALL_DIR)/GFX_Linux_SDK/OGLES/SDKPackage

    GFX_OGLES2_SDKPATH=$(GRAPHICS_INSTALL_DIR)/GFX_Linux_SDK/OGLES2/SDKPackage

    GFX_OVG_SDKPATH=$(GRAPHICS_INSTALL_DIR)/GFX_Linux_SDK/OVG/SDKPackage

    GFX_REL_ES3_LIB_SRCPATH=$(GRAPHICS_INSTALL_DIR)/gfx_rel_es3.x

    GFX_DBG_ES3_LIB_SRCPATH=$(GRAPHICS_INSTALL_DIR)/gfx_dbg_es3.x

    GFX_REL_ES5_LIB_SRCPATH=$(GRAPHICS_INSTALL_DIR)/gfx_rel_es5.x

    GFX_DBG_ES5_LIB_SRCPATH=$(GRAPHICS_INSTALL_DIR)/gfx_dbg_es5.x

    GFX_REL_ES6_LIB_SRCPATH=$(GRAPHICS_INSTALL_DIR)/gfx_rel_es6.x

    GFX_DBG_ES6_LIB_SRCPATH=$(GRAPHICS_INSTALL_DIR)/gfx_dbg_es6.x

    GFX_REL_ES8_LIB_SRCPATH=$(GRAPHICS_INSTALL_DIR)/gfx_rel_es8.x

    GFX_DBG_ES8_LIB_SRCPATH=$(GRAPHICS_INSTALL_DIR)/gfx_dbg_es8.x

    GFX_OGLES_REL_LIB_DESTPATH=$(GFX_OGLES_SDKPATH)/Builds/OGLES/LinuxARMV7

    GFX_OGLES2_REL_LIB_DESTPATH=$(GFX_OGLES2_SDKPATH)/Builds/OGLES2/LinuxARMV7

    GFX_OVG_REL_LIB_DESTPATH=$(GFX_OVG_SDKPATH)/Builds/OVG/LinuxARMV7

    GFX_KERNMOD_SRCPATH=$(GRAPHICS_INSTALL_DIR)/GFX_Linux_KM

    GFX_PKG_TARGETFS_PATH = $(GRAPHICS_INSTALL_DIR)/targetfs

    GFX_LIBRARY_TARGET_PATH = $(TARGETFS_INSTALL_DIR)/opt/gfxlibraries

    GFX_DEVMEM2_SRCPATH = $(GRAPHICS_INSTALL_DIR)/tools/devmem2

    # Where to copy the resulting executables and data to (when executing 'make
    # install') in a proper file structure. This EXEC_DIR should either be visible
    # from the target, or you will have to copy this (whole) directory onto the
    # target filesystem.
    EXEC_DIR=$(TARGETFS_INSTALL_DIR)/opt/gfxsdkdemos


    _________________________

    Do you know where I should look?

    Thanks for your help so far

  • Hi NItesh,

    After downloading a Graphics_SDK_setuplinux_4_10_00_01.bin I following the instructions from http://processors.wiki.ti.com/index.php/Graphics_SDK_Quick_installation_and_user_guide I successfully build the Graphics_SDK_4_10. I type my installation line and send the changes in the Rules.make

    ./Graphics_SDK_setuplinux_4_10_00_01.bin - (agree with all)
    cd ~/Graphics_SDK_4_10_00_01/
    export ARCH=arm
    gedit Rules.make
    make help
    Usage (for build): make BUILD={debug | release} OMAPES={3.x | 5.x | 6.x | 8.x} FBDEV={yes | no} SUPPORT_XORG= {1 | 0 } PM_RUNTIME={1 | 0) all
    PM_RUNTIME supported for OMAPES=8.x(ie AM335x only)
          Platform                       OMAPES
          --------                    ------
          OMAP35x(SGX core 1.2.1)                 3.x   
          OMAP37x/AM37x(SGX core 1.2.5)                5.x   
          816x(389x)/814x(387x)(SGX core 1.2.5)      6.x   
          335x(SGX core 1.2.5 )                      8.x   
    --> Specifying OMAPES is mandatory. BUILD=release and FBDEV=yes SUPPORT_XORG=0(not enabled) PM_RUNTIME=0 by default
    Usage (for install): make BUILD=(debug | release} OMAPES={3.x | 5.x | 6.x | 8.x} EGLIMAGE={1 | 0} install
    --> See online Graphics Getting Started Guide for further details.
    make OMAPES=8.x all
    ...
    copy OGLES2 demo dependant files.../home/users/imatrakov/Graphics_SDK_4_10_00_01/GFX_Linux_SDK/OGLES2/SDKPackage/Demos/DeferredShading/OGLES2/scene.pod
    copy OGLES2 demo dependant files.../home/users/imatrakov/Graphics_SDK_4_10_00_01/GFX_Linux_SDK/OGLES2/SDKPackage/Demos/ParticleSystem/OGLES2/sphere.pod
    copy OGLES2 demo dependant files.../home/users/imatrakov/Graphics_SDK_4_10_00_01/GFX_Linux_SDK/OGLES2/SDKPackage/Demos/PhantomMask/OGLES2/PhantomMask.pod

    Changes in my Rules.make
    ############### All the fields below are MANDATORY ############################

    #By default all below variables have been initialized with equivalent AMSDK variables
    # Change them to appropriate paths as per your machine/build environment paths.
    # Set home area (ex /home/user/)
    HOME=/home/users/imatrakov

    # Set Toolchain path (ex /home/user/toolchain/arago-2011.09/armv7a)
    CSTOOL_DIR = /home/users/imatrakov/gcc-linaro-arm-linux-gnueabihf-4.7-2013.03-20130313_linux

    # Set Tool chain prefix (ex arm-arago-linux-gnueabi- )
    CSTOOL_PREFIX = arm-linux-gnueabihf-

    # Set kernel installation path ( ex /home/user/linux-04.00.01.13 )
    KERNEL_INSTALL_DIR = /home/users/imatrakov/ti-sdk-am335x-evm-06.00.00.00/board-support/linux-3.2.0-psp04.06.00.11

    # Set Target filesystem path ( ex /home/user/targetfs )
    TARGETFS_INSTALL_DIR = /home/users/imatrakov/ti-sdk-am335x-evm-06.00.00.00/filesystem/arago-base-tisdk-image-am335x-evm

    # Set installation folder
    GRAPHICS_INSTALL_DIR=$(HOME)/Graphics_SDK_4_10_00_01
    ############### All the fields below are OPTIONAL ############################

    BR
    Ivan

  • thanks a lot for your post, that helps!

    But I can't find anything, that resembles your gcc-linaro-arm-linux...path for the toolchain path. How did you find your path? Did you put it there manually or was it installed with your 06.00.00.00 SDK? The only thing I find that remotely reminds me of a toolchain folder is the one in the linux-devkit folder  /home/sitara/ti-sdk-<machine>-<sdk version>/linux-devkit/sysroots/i686-arago-linux/usr/bin.

    edit: and also I don't have  /home/sitara/filesystem/arago-base-tisdk-image-am335x-evm,
    I only have /home/sitara/filesystem/arago-base-tisdk-image-am335x-evm.ubi

  • This is what mine looks like right now:

    Rules.make:

    ******************************

    #Rules.make

    ################# FIELDS MODIFIABLE BY THE USER ###############################
    ############### All the fields below are MANDATORY ############################

    #By default all below variables have been initialized with equivalent AMSDK variables
    # Change them to appropriate paths as per your machine/build environment paths.
    # Set home area (ex /home/user/)
    HOME=/home/sitara

    # Set Toolchain path (ex /home/user/toolchain/arago-2011.09/armv7a)
    CSTOOL_DIR=/home/sitara/linux-devkit

    # Set Tool chain prefix (ex arm-arago-linux-gnueabi- )
    CSTOOL_PREFIX=arm-linux-gnueabihf-

    # Set kernel installation path ( ex /home/user/linux-04.00.01.13 )
    KERNEL_INSTALL_DIR=/home/sitara/board-support/linux-3.2.0-psp04.06.00.11
    # Set Target filesystem path ( ex /home/user/targetfs )
    TARGETFS_INSTALL_DIR=/home/sitara/filesystem/arago-base-tisdk-image-am335x-evm

    # Set installation folder
    GRAPHICS_INSTALL_DIR=$(HOME)/Graphics_SDK_4_10_00_01
    ############### All the fields below are OPTIONAL ############################
    *********************************

    These are the errors I get right now:

    webn@webn-VirtualBox:/home/sitara/Graphics_SDK_4_10_00_01$ make OMAPES=8.x all
    building the sgx kernel modules...
    make[1]: Entering directory `/home/sitara/Graphics_SDK_4_10_00_01/GFX_Linux_KM'
    make[1]: Leaving directory `/home/sitara/Graphics_SDK_4_10_00_01/GFX_Linux_KM'
    make[1]: Entering directory `/home/sitara/Graphics_SDK_4_10_00_01/GFX_Linux_KM'
    make -C /home/sitara/board-support/linux-3.2.0-psp04.06.00.11 M=`pwd`
    make[2]: Entering directory `/home/sitara/board-support/linux-3.2.0-psp04.06.00.11'

      ERROR: Kernel configuration is invalid.
             include/generated/autoconf.h or include/config/auto.conf are missing.
             Run 'make oldconfig && make prepare' on kernel src to fix it.


      WARNING: Symbol version dump /home/sitara/board-support/linux-3.2.0-psp04.06.00.11/Module.symvers
               is missing; modules will have no dependencies and modversions.

      LD      /home/sitara/Graphics_SDK_4_10_00_01/GFX_Linux_KM/services4/3rdparty/bufferclass_ti/built-in.o
      CC [M]  /home/sitara/Graphics_SDK_4_10_00_01/GFX_Linux_KM/services4/3rdparty/bufferclass_ti/bc_cat.o
    In file included from <command-line>:0:0:
    /home/sitara/board-support/linux-3.2.0-psp04.06.00.11/include/linux/kconfig.h:4:32: fatal error: generated/autoconf.h: No such file or directory
    compilation terminated.
    make[4]: *** [/home/sitara/Graphics_SDK_4_10_00_01/GFX_Linux_KM/services4/3rdparty/bufferclass_ti/bc_cat.o] Error 1
    make[3]: *** [/home/sitara/Graphics_SDK_4_10_00_01/GFX_Linux_KM/services4/3rdparty/bufferclass_ti] Error 2
    make[2]: *** [_module_/home/sitara/Graphics_SDK_4_10_00_01/GFX_Linux_KM] Error 2
    make[2]: Leaving directory `/home/sitara/board-support/linux-3.2.0-psp04.06.00.11'
    make[1]: *** [all] Error 2
    make[1]: Leaving directory `/home/sitara/Graphics_SDK_4_10_00_01/GFX_Linux_KM'
    make: *** [buildkernel] Error 2

  • Hi Nina,

    O'K. Please download from http://software-dl.ti.com/sitara_linux/esd/AM335xSDK/latest/index_FDS.html the linaro toolchain and install it. For more clarity please see from Graphics_4.. directory README.txt file. They recommended:

    "Toolchain

     Arago Dynamic toolchain based on GCC 4.5.3 for all devices (supplied with AMSDK releases).
     Linaro 4.7.3 hardfp toolchain(arm-linux-gnueabihf-) was used for creating the hardfp package.
    What is supported  "


    BR
    Ivan

  • Hi Ivan,

    I will download this one: software-dl.ti.com/sitara_linux/esd/AM335xSDK/latest/exports/am335x-evm-sdk-src-07.00.00.00.tar.gz and install it in the same directory where I got the 06.00.00.00 SDK? 

    I don't quite understand about toolchains and everything, but does it matter to have two?

    Thank you very much for your help so far!

  • Ok, downloaded the file, installed it with

    tar xvf gcc-...

    and set my Rules.make file to

    #Rules.make

    ################# FIELDS MODIFIABLE BY THE USER ###############################
    ############### All the fields below are MANDATORY ############################

    #By default all below variables have been initialized with equivalent AMSDK variables
    # Change them to appropriate paths as per your machine/build environment paths.
    # Set home area (ex /home/user/)
    HOME=/home/sitara

    # Set Toolchain path (ex /home/user/toolchain/arago-2011.09/armv7a)
    CSTOOL_DIR=/home/sitara/gcc-linaro-arm-linux-gnueabihf-4.7-2013.03-20130313_linux

    # Set Tool chain prefix (ex arm-arago-linux-gnueabi- )
    CSTOOL_PREFIX=arm-linux-gnueabihf-

    # Set kernel installation path ( ex /home/user/linux-04.00.01.13 )
    KERNEL_INSTALL_DIR=/home/sitara/board-support/linux-3.2.0-psp04.06.00.11
    # Set Target filesystem path ( ex /home/user/targetfs )
    TARGETFS_INSTALL_DIR=/home/sitara/filesystem/arago-base-tisdk-image-am335x-evm

    # Set installation folder
    GRAPHICS_INSTALL_DIR=$(HOME)/Graphics_SDK_4_10_00_01
    ############### All the fields below are OPTIONAL ############################

    but I am still getting the same errors

    **************

    xferwebn@xferwebn-VirtualBox:/home/sitara/Graphics_SDK_4_10_00_01$ make OMAPES=8.x all
    building the sgx kernel modules...
    make[1]: Entering directory `/home/sitara/Graphics_SDK_4_10_00_01/GFX_Linux_KM'
    make[1]: Leaving directory `/home/sitara/Graphics_SDK_4_10_00_01/GFX_Linux_KM'
    make[1]: Entering directory `/home/sitara/Graphics_SDK_4_10_00_01/GFX_Linux_KM'
    make -C /home/sitara/board-support/linux-3.2.0-psp04.06.00.11 M=`pwd`
    make[2]: Entering directory `/home/sitara/board-support/linux-3.2.0-psp04.06.00.11'

      ERROR: Kernel configuration is invalid.
             include/generated/autoconf.h or include/config/auto.conf are missing.
             Run 'make oldconfig && make prepare' on kernel src to fix it.


      WARNING: Symbol version dump /home/sitara/board-support/linux-3.2.0-psp04.06.00.11/Module.symvers
               is missing; modules will have no dependencies and modversions.

      LD      /home/sitara/Graphics_SDK_4_10_00_01/GFX_Linux_KM/services4/3rdparty/bufferclass_ti/built-in.o
      CC [M]  /home/sitara/Graphics_SDK_4_10_00_01/GFX_Linux_KM/services4/3rdparty/bufferclass_ti/bc_cat.o
    In file included from <command-line>:0:0:
    /home/sitara/board-support/linux-3.2.0-psp04.06.00.11/include/linux/kconfig.h:4:32: fatal error: generated/autoconf.h: No such file or directory
    compilation terminated.
    make[4]: *** [/home/sitara/Graphics_SDK_4_10_00_01/GFX_Linux_KM/services4/3rdparty/bufferclass_ti/bc_cat.o] Error 1
    make[3]: *** [/home/sitara/Graphics_SDK_4_10_00_01/GFX_Linux_KM/services4/3rdparty/bufferclass_ti] Error 2
    make[2]: *** [_module_/home/sitara/Graphics_SDK_4_10_00_01/GFX_Linux_KM] Error 2
    make[2]: Leaving directory `/home/sitara/board-support/linux-3.2.0-psp04.06.00.11'
    make[1]: *** [all] Error 2
    make[1]: Leaving directory `/home/sitara/Graphics_SDK_4_10_00_01/GFX_Linux_KM'
    make: *** [buildkernel] Error 2


    *******************

  • Hi Nina,

    For good instalation of Graphics_SDK_4.. you must have good instalation of SDK 6.0 and Linaro toolchain. You can reinstall SDK 6 on the clear place. In the /home/users/imatrakov/ti-sdk-am335x-evm-06.00.00.00/filesystem you manualy have to unzipped the arago-base-tisdk-image-am335x-evm.tar.gz file and don't forget changes in Rules.make
    If you want to use SDK 7 you have to know that you must install Graphica_SDK_5 and there only one toolchain is used - linaro 4.7.3

    BR
    Ivan

  • I installed the SDK 6.0. previously and everything worked up until I wanted to use OpenGL.

    when I try to unzip the arago-...tar.gz file it unzips some folders, but exists with

    "tar: Exiting with failure status due to previous errors".

    Then I ran the make OMAPES=8.x all command and it took about 10 minutes installing stuff, but now it says:

    ********************************************************

    ...

    <command-line>:0:16: warning: missing whitespace after the macro name [enabled by default]
    arm-linux-gnueabihf-g++  --sysroot=/home/sitara/linux-devkit/sysroots/armv7ahf-vfp-neon-3.2-oe-linux-gnueabi -Wl,-rpath-link,/home/sitara/linux-devkit/sysroots/armv7ahf-vfp-neon-3.2-oe-linux-gnueabi/usr/lib -o ThermostatDemo release/main.o release/weatherwidget.o release/thermostatwidget.o release/optionswidget.o release/webdata.o release/awayscreen.o release/mainwindow.o release/schedulescreen.o release/schedulepoint.o release/keyboard.o release/settingscreen.o release/globalsettings.o release/qkeyboardlineedit.o release/weatherdata.o release/forecastdata.o release/forecastdatawidget.o release/utilities.o release/weatherdatawidget.o release/webdataengine.o release/openweathermapdataengine.o release/wundergrounddataengine.o release/remoteaccessmanager.o release/moc_weatherwidget.o release/moc_thermostatwidget.o release/moc_optionswidget.o release/moc_webdata.o release/moc_awayscreen.o release/moc_mainwindow.o release/moc_schedulescreen.o release/moc_schedulepoint.o release/moc_keyboard.o release/moc_settingscreen.o release/moc_qkeyboardlineedit.o release/moc_forecastdatawidget.o release/moc_weatherdatawidget.o release/moc_webdataengine.o release/moc_openweathermapdataengine.o release/moc_wundergrounddataengine.o release/moc_remoteaccessmanager.o release/qrc_thermostatdemo.o    -L/home/sitara/linux-devkit/sysroots/armv7ahf-vfp-neon-3.2-oe-linux-gnueabi/usr/lib -lQtScriptE -lQtSvgE -lQtGuiE -lEGL -lIMGegl -lsrv_um -lQtNetworkE -lQtCoreE -lpthread
    make[3]: Leaving directory `/home/sitara/example-applications/qt-tstat-2.0'
    make[2]: Leaving directory `/home/sitara/example-applications/qt-tstat-2.0'
    make[1]: Leaving directory `/home/sitara/example-applications/qt-tstat-2.0'
    =============================
    Building OProfile Example
    =============================
    make[1]: Entering directory `/home/sitara/example-applications/oprofile-example'
    /home/sitara/linux-devkit/sysroots/i686-arago-linux/usr/bin/arm-linux-gnueabihf-gcc -g3 -gdwarf-2   -static -c -march=armv7-a    -marm -mthumb-interwork -mfloat-abi=hard -mfpu=neon -mtune=cortex-a8 -oDebug/signal_parent.o signal_parent.c
    Compiling Debug...
    /home/sitara/linux-devkit/sysroots/i686-arago-linux/usr/bin/arm-linux-gnueabihf-gcc -o Debug/signal_parent Debug/signal_parent.o    -Wl,-Map,Debug/signal_parent.map
    /home/sitara/linux-devkit/sysroots/i686-arago-linux/usr/bin/arm-linux-gnueabihf-gcc -g3 -gdwarf-2  -DUSE_SIGNALS  -static -c -march=armv7-a    -marm -mthumb-interwork -mfloat-abi=hard -mfpu=neon -mtune=cortex-a8 -oDebug1/signal_parent.o signal_parent.c
    Compiling Debug...
    /home/sitara/linux-devkit/sysroots/i686-arago-linux/usr/bin/arm-linux-gnueabihf-gcc -o Debug1/signal_parent.opt Debug1/signal_parent.o    -Wl,-Map,Debug1/signal_parent.map
    make[1]: Leaving directory `/home/sitara/example-applications/oprofile-example'
    make -C /home/sitara/board-support/u-boot-* CROSS_COMPILE=/home/sitara/linux-devkit/sysroots/i686-arago-linux/usr/bin/arm-linux-gnueabihf- am335x_evm_config
    make[1]: Entering directory `/home/sitara/board-support/u-boot-2013.01.01-psp06.00.00.00'
    make[1]: Leaving directory `/home/sitara/board-support/u-boot-2013.01.01-psp06.00.00.00'
    make[1]: Entering directory `/home/sitara/board-support/u-boot-2013.01.01-psp06.00.00.00'
    Failed: $ARCH=armv7a, should be 'arm' for am335x_evm
    make[1]: *** [am335x_evm_config] Error 1
    make[1]: Leaving directory `/home/sitara/board-support/u-boot-2013.01.01-psp06.00.00.00'
    make: *** [u-boot] Error 2


    ******************************************************************************

    so I changed ARCH=arm in the Rules.make file

    when I run the make OMAPES=8.x all command now, it doesn't exit with Errors. Does that mean it worked?

    What do I have to do next? I don't understand the next part of the tutorial (http://processors.wiki.ti.com/index.php/Graphics_SDK_Quick_installation_and_user_guide)

    and what do you mean by

    "...
    copy OGLES2 demo dependant files.../home/users/imatrakov/Graphics_SDK_4_10_00_01/GFX_Linux_SDK/OGLES2/SDKPackage/Demos/DeferredShading/OGLES2/scene.pod
    copy OGLES2 demo dependant files.../home/users/imatrakov/Graphics_SDK_4_10_00_01/GFX_Linux_SDK/OGLES2/SDKPackage/Demos/ParticleSystem/OGLES2/sphere.pod
    copy OGLES2 demo dependant files.../home/users/imatrakov/Graphics_SDK_4_10_00_01/GFX_Linux_SDK/OGLES2/SDKPackage/Demos/PhantomMask/OGLES2/PhantomMask.pod"

    ?

    By the way, I still get the same error, when trying to run the hellogl example.

  • Hi Nina,

    You have to use sudo if you don't unzipped the arago file systems. With the final lines  finish installation of Graphics_SDK_6. If you see them you installed well the Graphics_SDK.

    BR
    Ivan

  • Hi,

    hope you had a nice weekend!

    so, I unzipped the arago filesystem again, using the sudo command, and then I did the "make OMAPES=8.x all" again. It took some time, but the last lines were

    "...

    copy OGLES2 demo dependant files.../home/sitara/Graphics_SDK_4_10_00_01/GFX_Linux_SDK/OGLES2/SDKPackage/Demos/Navigation3D/OGLES2/CM_US_IL_CHICAGO_013_016_L.DAE.pod
    copy OGLES2 demo dependant files.../home/sitara/Graphics_SDK_4_10_00_01/GFX_Linux_SDK/OGLES2/SDKPackage/Demos/DeferredShading/OGLES2/pointlight.pod
    copy OGLES2 demo dependant files.../home/sitara/Graphics_SDK_4_10_00_01/GFX_Linux_SDK/OGLES2/SDKPackage/Demos/DeferredShading/OGLES2/scene.pod
    copy OGLES2 demo dependant files.../home/sitara/Graphics_SDK_4_10_00_01/GFX_Linux_SDK/OGLES2/SDKPackage/Demos/ParticleSystem/OGLES2/sphere.pod
    copy OGLES2 demo dependant files.../home/sitara/Graphics_SDK_4_10_00_01/GFX_Linux_SDK/OGLES2/SDKPackage/Demos/PhantomMask/OGLES2/PhantomMask.pod"

    so I assume it went all right?

    But I still can't run the hellogl_es2 example. It still says

    "Could not initialize EGL display - are the drivers loaded?

    Segmentation fault. "

    Did I still miss something while installing the Graphics SDK? Or is there some other issue to be solved for the example to run?

  • How do I proceed in the tutorial? The next step would be

    For AM335x-

    setenv bootargs 'console=ttyO0,115200n8 root=/dev/nfs nfsroot=<nfshostipaddress>:<rootpath>,nolock 
    rw mem=256M ip=dhcp earlyprintk=serial vram=50M'

    But I don't know what to put in the <nfshostipadress>:<rootpath> field.
    Is this the ip adress of my AM335x EVM?
    I tried this:
    xferwebn@xferwebn-VirtualBox:/mnt/hgfs/vbox_shared$ tcsh
    xferwebn-VirtualBox:/mnt/hgfs/vbox_shared> setenv bootargs 'console=ttyO0,115200n8 root=/dev/nfs
    nfsroot=192.186.0.1:/home/root/,nolock rw mem=256M ip=dhcp earlyprintk=serial vram=50M'


    but it doesn't give any feedback. Now I looked for the 335x-demo, but I only found it in the folder targetfs in the
    ti-sdk folder.
    Running it with ./ only results in this error:

    ****************************************************************************
    xferwebn@xferwebn-VirtualBox:/home/sitara/targetfs$ ls
    335x-demo       38xx_xorg-demo  omap-demo        powervr.ini  rundemos.sh
    335x_xorg-demo  devmem2         omap_xorg-demo   rc_dri.pvr   xorg.conf
    38xx-demo       omap4-demo      powervr_dri.ini  rc.pvr       XSGX
    xferwebn@xferwebn-VirtualBox:/home/sitara/targetfs$ ./335x-demo
    cat: /opt/gfxsdkdemos/gfxinstallinfo.txt: No such file or directory
    0x10205

    ./335x-demo: 10: test: =: unexpected operator
    installing 8.x SGX debug user libraries
    ./335x-demo: 17: cd: can't cd to /opt/gfxlibraries/gfx_dbg_es8.x
    ./335x-demo: 18: ./335x-demo: ./install.sh: not found
    ./335x-demo: 21: ./335x-demo: [[: not found
    **********************************************************************

    Please help me!