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.

SDK 3d demos don't work

I am working with the Linux 5.05 sdk for the beagle board XM.

The pre-built images include 4 3d demo applications, all working fine.

After building and installing with the SDK, all applications work except the 3d demos

which appear to do nothing (return immediately)

 

Anyone know why?

 

  • While building the SDK did you also build and install the separate Graphics SDK package? If not, follow the instructions here to build and enable the graphics sdk:

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

    This will enable OpenGLES and allow you to run the 3d demos once again.

  • Thanks!  I'll give it a try tomorrow.

     

  • Hi,

    The latest graphics SDK release can be downloaded from -

    http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/latest/index_FDS.html

    Build, install & execute instructions are available at -

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

    Debugging/troubleshooting/FAQ available at -

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

    To upgrade to latest graphics SDK release in SDK environment, you can use the script from the below forum thread -

    http://e2e.ti.com/support/dsp/sitara_arm174_microprocessors/f/791/t/223501.aspx

    Thanks,

    Prathap.

  • I have tries several times, but am unable to build the Graphics SDK.

    I get the following error:

    harmon@ubuntu:~/Graphics_SDK_4_08_00_01$ make OMAPES=5.x all building the sgx kernel modules... make[1]: Entering directory `/home/harmon/Graphics_SDK_4_08_00_01/GFX_Linux_KM' make[1]: Leaving directory `/home/harmon/Graphics_SDK_4_08_00_01/GFX_Linux_KM' make[1]: Entering directory `/home/harmon/Graphics_SDK_4_08_00_01/GFX_Linux_KM' make -C /home/harmon/ti-sdk-beagleboard-05.05.00.00/board-support/linux-3.3.7-r115 M=`pwd` make[2]: Entering directory `/home/harmon/ti-sdk-beagleboard-05.05.00.00/board-support/linux-3.3.7-r115'   LD      /home/harmon/Graphics_SDK_4_08_00_01/GFX_Linux_KM/services4/3rdparty/bufferclass_ti/built-in.o   CC [M]  /home/harmon/Graphics_SDK_4_08_00_01/GFX_Linux_KM/services4/3rdparty/bufferclass_ti/bc_cat.o   LD [M]  /home/harmon/Graphics_SDK_4_08_00_01/GFX_Linux_KM/services4/3rdparty/bufferclass_ti/bufferclass_ti.o   LD      /home/harmon/Graphics_SDK_4_08_00_01/GFX_Linux_KM/services4/3rdparty/dc_omapfb3_linux/built-in.o   CC [M]  /home/harmon/Graphics_SDK_4_08_00_01/GFX_Linux_KM/services4/3rdparty/dc_omapfb3_linux/omaplfb_displayclass.o   CC [M]  /home/harmon/Graphics_SDK_4_08_00_01/GFX_Linux_KM/services4/3rdparty/dc_omapfb3_linux/omaplfb_linux.o /home/harmon/Graphics_SDK_4_08_00_01/GFX_Linux_KM/services4/3rdparty/dc_omapfb3_linux/omaplfb_linux.c: In function 'OMAPLFBCreateSwapQueue': /home/harmon/Graphics_SDK_4_08_00_01/GFX_Linux_KM/services4/3rdparty/dc_omapfb3_linux/omaplfb_linux.c:284:29: error: 'WQ_FREEZEABLE' undeclared (first use in this function) /home/harmon/Graphics_SDK_4_08_00_01/GFX_Linux_KM/services4/3rdparty/dc_omapfb3_linux/omaplfb_linux.c:284:29: note: each undeclared identifier is reported only once for each function it appears in

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    The TI Linux SDK is installed at:

    /home/harmon/ti-sdk-beagleboard-05.05.00.00

    The TI Graphics SDK is installed at home/harmon/Graphics_SDK_4_08_00_01

    The Graphics SDK Rules.make modifications are:

    # Set home area (ex /home/user/) HOME=/home/harmon

    # Set Toolchain path (ex /home/user/toolchain/arago-2011.09/armv7a) CSTOOL_DIR=$(HOME)/ti-sdk-beagleboard-05.05.00.00/linux-devkit

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

    # Set kernel installation path ( ex /home/user/linux-04.00.01.13 ) KERNEL_INSTALL_DIR=$(HOME)/ti-sdk-beagleboard-05.05.00.00/board-support/linux-3.3.7-r115

    # Set Target filesystem path ( ex /home/user/targetfs ) TARGETFS_INSTALL_DIR=$(HOME)/ti-sdk-beagleboard-05.05.00.00/targetNFS

     

    What am I doing wrong?  The kernel builds and installs correctly.  I build U-Boot, byt don't know why this matters.  I don't see anything pointing to it.

     

    Larry

     

     

     

     

     

  • That appears to be a typo in the code introduced in the newest version of the Graphics SDK. The enum in include/linux/workqueue.h specifies that it should be WQ_FREEZABLE rather than WQ_FREEZEABLE. Changing that should allow you to build the sdk.

  • that got me further, but I still see many errors:

     

      CC [M]  /home/harmon/Graphics_SDK_4_08_00_01/GFX_Linux_KM/services4/3rdparty/dc_omapfb3_linux/omaplfb_linux.o /home/harmon/Graphics_SDK_4_08_00_01/GFX_Linux_KM/services4/3rdparty/dc_omapfb3_linux/omaplfb_linux.c:421:55: warning: 'enum omap_dss_update_mode' declared inside parameter list /home/harmon/Graphics_SDK_4_08_00_01/GFX_Linux_KM/services4/3rdparty/dc_omapfb3_linux/omaplfb_linux.c:421:55: warning: its scope is only this definition or declaration, which is probably not what you want /home/harmon/Graphics_SDK_4_08_00_01/GFX_Linux_KM/services4/3rdparty/dc_omapfb3_linux/omaplfb_linux.c:421:76: error: parameter 1 ('eMode') has incomplete type /home/harmon/Graphics_SDK_4_08_00_01/GFX_Linux_KM/services4/3rdparty/dc_omapfb3_linux/omaplfb_linux.c:421:21: warning: function declaration isn't a prototype /home/harmon/Graphics_SDK_4_08_00_01/GFX_Linux_KM/services4/3rdparty/dc_omapfb3_linux/omaplfb_linux.c: In function 'OMAPLFBValidateDSSUpdateMode': /home/harmon/Graphics_SDK_4_08_00_01/GFX_Linux_KM/services4/3rdparty/dc_omapfb3_linux/omaplfb_linux.c:425:8: error: 'OMAP_DSS_UPDATE_AUTO' undeclared (first use in this function) /home/harmon/Graphics_SDK_4_08_00_01/GFX_Linux_KM/services4/3rdparty/dc_omapfb3_linux/omaplfb_linux.c:425:8: note: each undeclared identifier is reported only once for each function it appears in /home/harmon/Graphics_SDK_4_08_00_01/GFX_Linux_KM/services4/3rdparty/dc_omapfb3_linux/omaplfb_linux.c:426:8: error: 'OMAP_DSS_UPDATE_MANUAL' undeclared (first use in this function) /home/harmon/Graphics_SDK_4_08_00_01/GFX_Linux_KM/services4/3rdparty/dc_omapfb3_linux/omaplfb_linux.c:427:8: error: 'OMAP_DSS_UPDATE_DISABLED' undeclared (first use in this function) /home/harmon/Graphics_SDK_4_08_00_01/GFX_Linux_KM/services4/3rdparty/dc_omapfb3_linux/omaplfb_linux.c: At top level: /home/harmon/Graphics_SDK_4_08_00_01/GFX_Linux_KM/services4/3rdparty/dc_omapfb3_linux/omaplfb_linux.c:436:58: warning: 'enum omap_dss_update_mode' declared inside parameter list /home/harmon/Graphics_SDK_4_08_00_01/GFX_Linux_KM/services4/3rdparty/dc_omapfb3_linux/omaplfb_linux.c:436:79: error: parameter 1 ('eMode') has incomplete type /home/harmon/Graphics_SDK_4_08_00_01/GFX_Linux_KM/services4/3rdparty/dc_omapfb3_linux/omaplfb_linux.c:436:28: warning: function declaration isn't a prototype /home/harmon/Graphics_SDK_4_08_00_01/GFX_Linux_KM/services4/3rdparty/dc_omapfb3_linux/omaplfb_linux.c: In function 'OMAPLFBFromDSSUpdateMode': /home/harmon/Graphics_SDK_4_08_00_01/GFX_Linux_KM/services4/3rdparty/dc_omapfb3_linux/omaplfb_linux.c:440:8: error: 'OMAP_DSS_UPDATE_AUTO' undeclared (first use in this function) /home/harmon/Graphics_SDK_4_08_00_01/GFX_Linux_KM/services4/3rdparty/dc_omapfb3_linux/omaplfb_linux.c:442:8: error: 'OMAP_DSS_UPDATE_MANUAL' undeclared (first use in this function) /home/harmon/Graphics_SDK_4_08_00_01/GFX_Linux_KM/services4/3rdparty/dc_omapfb3_linux/omaplfb_linux.c:444:8: error: 'OMAP_DSS_UPDATE_DISABLED' undeclared (first use in this function) /home/harmon/Graphics_SDK_4_08_00_01/GFX_Linux_KM/services4/3rdparty/dc_omapfb3_linux/omaplfb_linux.c: At top level: /home/harmon/Graphics_SDK_4_08_00_01/GFX_Linux_KM/services4/3rdparty/dc_omapfb3_linux/omaplfb_linux.c:469:34: error: return type is an incomplete type /home/harmon/Graphics_SDK_4_08_00_01/GFX_Linux_KM/services4/3rdparty/dc_omapfb3_linux/omaplfb_linux.c: In function 'OMAPLFBToDSSUpdateMode': /home/harmon/Graphics_SDK_4_08_00_01/GFX_Linux_KM/services4/3rdparty/dc_omapfb3_linux/omaplfb_linux.c:474:11: error: 'OMAP_DSS_UPDATE_AUTO' undeclared (first use in this function) /home/harmon/Graphics_SDK_4_08_00_01/GFX_Linux_KM/services4/3rdparty/dc_omapfb3_linux/omaplfb_linux.c:474:4: warning: 'return' with a value, in function returning void /home/harmon/Graphics_SDK_4_08_00_01/GFX_Linux_KM/services4/3rdparty/dc_omapfb3_linux/omaplfb_linux.c:476:11: error: 'OMAP_DSS_UPDATE_MANUAL' undeclared (first use in this function) /home/harmon/Graphics_SDK_4_08_00_01/GFX_Linux_KM/services4/3rdparty/dc_omapfb3_linux/omaplfb_linux.c:476:4: warning: 'return' with a value, in function returning void /home/harmon/Graphics_SDK_4_08_00_01/GFX_Linux_KM/services4/3rdparty/dc_omapfb3_linux/omaplfb_linux.c:478:11: error: 'OMAP_DSS_UPDATE_DISABLED' undeclared (first use in this function) /home/harmon/Graphics_SDK_4_08_00_01/GFX_Linux_KM/services4/3rdparty/dc_omapfb3_linux/omaplfb_linux.c:478:4: warning: 'return' with a value, in function returning void /home/harmon/Graphics_SDK_4_08_00_01/GFX_Linux_KM/services4/3rdparty/dc_omapfb3_linux/omaplfb_linux.c:483:2: warning: 'return' with a value, in function returning void /home/harmon/Graphics_SDK_4_08_00_01/GFX_Linux_KM/services4/3rdparty/dc_omapfb3_linux/omaplfb_linux.c: At top level: /home/harmon/Graphics_SDK_4_08_00_01/GFX_Linux_KM/services4/3rdparty/dc_omapfb3_linux/omaplfb_linux.c:421:21: warning: 'OMAPLFBValidateDSSUpdateMode' defined but not used /home/harmon/Graphics_SDK_4_08_00_01/GFX_Linux_KM/services4/3rdparty/dc_omapfb3_linux/omaplfb_linux.c:436:28: warning: 'OMAPLFBFromDSSUpdateMode' defined but not used /home/harmon/Graphics_SDK_4_08_00_01/GFX_Linux_KM/services4/3rdparty/dc_omapfb3_linux/omaplfb_linux.c:454:21: warning: 'OMAPLFBValidateUpdateMode' defined but not used /home/harmon/Graphics_SDK_4_08_00_01/GFX_Linux_KM/services4/3rdparty/dc_omapfb3_linux/omaplfb_linux.c:469:34: warning: 'OMAPLFBToDSSUpdateMode' defined but not used make[4]: *** [/home/harmon/Graphics_SDK_4_08_00_01/GFX_Linux_KM/services4/3rdparty/dc_omapfb3_linux/omaplfb_linux.o] Error 1 make[3]: *** [/home/harmon/Graphics_SDK_4_08_00_01/GFX_Linux_KM/services4/3rdparty/dc_omapfb3_linux] Error 2 make[2]: *** [_module_/home/harmon/Graphics_SDK_4_08_00_01/GFX_Linux_KM] Error 2 make[2]: Leaving directory `/home/harmon/ti-sdk-beagleboard-05.05.00.00/board-support/linux-3.3.7-r115' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/harmon/Graphics_SDK_4_08_00_01/GFX_Linux_KM' make: *** [buildkernel] Error 2 harmon@ubuntu:~/Graphics_SDK_4_08_00_01$

     

    Larry

     

  • It seems the 4.08.00.01 SDK release has not yet been verified on your platform. Please use the 4.06.00.02 release which can be found here:

    http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/4_06_00_02/index_FDS.html

    Or also in the Graphics_SDK_setuplinux_4_06_00_02.bin under the linux sdk install path.

  • Hi,

    From your logs, it looks like you are using 3.3 kernel. For AM35x,37xx platforms the graphics SDK release has been validated against 2.6.37 kernel. You will find this information in README.pdf present in the graphics SDK release package or you can also refer to below release notes link which mentions about the kernel versions supported or used for validation-

    http://processors.wiki.ti.com/index.php/RN_4_08_00_01#Kernel.28Linux_PSP.29_versions_supported_or_used_for_validation

    You need to change omaplfb_linux.c (present under GFX_Linux_KM/services4/3rdparty/dc_omapfb3_linux of the graphics SDK release package) for compiling against 3.3 kernel. You need to use the linux kernel version checks (#if LINUX_VERSION_CODE < KERNEL_VERSION(3,1,0)) accordingly based on the supported APIs in the kernel you are using.

    Please find the updated omaplfb_linux.c attached for reference.

    You can either try this or use the 04.06.00.02 release as suggested by Dave. 04.08.00.01 is the latest release but not yet integrated into SDK whereas 04.06.00.02 is the last release that was integrated into SDK.

    Thanks,

    Prathap.

  • As suggested I installed the Graphics_SDK_setuplinux_4_06_00_02 version of the SDK.

    I am able to build this version!!  Thanks!

     

    However, I still can't run the 3d demos after making a new SDcard.

    Is there an order to building the kernel and the graphics SDK?

    AM37x SDK:

    Make clean

    make all

    make install

    Graphics SDK:

    make clean

    make all

    make install

     

     

     

    Is seems the Graphics SDK is putting its demos in /opt/gfxsdkdemos/ogles and the Matric GUI is trying to run an app from /usr/bin/SGX/demos/Raw.

    Do I need to manually copy files? 

     

  • Please make sure that your bootargs are properly set (http://processors.wiki.ti.com/index.php/Graphics_SDK_Quick_installation_and_user_guide#Step_1_:_Bootargs_setup.2Fverification) and that the /etc/init.d/omap-demo script has been run.

  • Success!

    Running the omap-demo script seems to have done the trick.

    I am a Linux newbe and didn't understand the bootargs configuration.

    Is this a u-boot setting?  Should I use uEnv.txt?

    Thanks for the help!

     

  • Hi,

    Good to know that you could now successfully build & run the 3D demo.

    Yes, bootargs configuration is a u-boot setting which can be done at the u-boot command prompt.  You can set the bootargs at u-boot command prompt for your platform as mentioned below -

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

    Then you can issue the saveenv command at the u-boot command prompt to save the configuration so that next time when you reboot, this is picked up & no need to set it each time.

    If you are using uEnv.txt , you can configure there itself.  The main thing required from a 3D demo(graphics) perspective is the configuration of vram related parameters in bootargs. This is required to allocate more buffer size when you use dual buffering mode. Otherwise there is no other special bootargs requirement from a graphics perspective.

    Thanks,

    Prathap.