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.

Running opengl samples on TDA2x

Hi Yogesh,

I referred visionSDK_LinuxUserGuide.pdf to use Linux on TDA2x and to work on Opengl ES on SGX core.
I have installed omap5-sgx-ddk-linux library for running sample examples and I am able to run the samples that are available in installed package.

But, When I run PowerVR SDK sample I am getting the following error,
PVR:(Warning): LoadWSModule: Window system module libpvrws_KMS.so did not validate native display [98, /generic_ws.c]
PVR:(Warning): LoadWSModule: Window system module libpvrws_WAYLAND.so did not validate native display [98, /generic_ws.c]
PVR:(Error): Couldn't load WS module libpvrws_OMAPDRI2.so [44, /generic_ws.c]
Failed to get an EGLDisplay

So could you please help me resolving this error?

I want to know difference between PowerVR SDK and omap5-sgx-ddk-linux .

Also it would be good  If you share the source code for omap5-sgx-ddk-linux  which I have installed for  TDA2x by referring to VisionSDK_LinuxUserGuide .

  • Kapil,

    Im not a graphics expert, will follow it up for you.
  • Kapil,

    Did you use eglGetDisplay as follows?

    EGLDisplay disp = eglGetDisplay(EGL_DEFAULT_DISPLAY);

    That will not work for TI EGL/GL stack as it does not export any EGL_DEFAULT_DISPLAY.

    Refer to this repo git://git.ti.com/glsdk/kmscube.git for understanding how to write an EGL/GL application based on KMS

    <I want to know difference between PowerVR SDK and omap5-sgx-ddk-linux .>

    PowerVR SDK  is an SDK from Imaginagination technologies which includes GL/EGL example applications and various tools for analysing and profiling the Graphics HW/SW.

    If I am not mistaken, you meant omap5-sgx-ddk-um-linux (note the extra "um").

    omap5-sgx-ddk-um-linux is the package that provides libEGL.so, libGLESv2.so and the user space libraries required by them

    omap5-sgx-ddk-linux is the source package for the SGX kernel driver.

    <Also it would be good  If you share the source code for omap5-sgx-ddk-linux  which I have installed for  TDA2x by referring to VisionSDK_LinuxUserGuide .>

    omap5-sgx-ddk-linux is a source package, so if you installed it, you already have teh source code

    omap5-sgx-ddk-um-linux is a binary package, and we cannot share the source code for that because of proprietary reasons.

  • Subhajit ,

    Thanks for your quick response.

    I have few queries regarding running opengl ES code on TI,
    1. I could run the code by using this EGLDisplay disp = eglGetDisplay(EGL_DEFAULT_DISPLAY); on TI 8148 , in which I have used ti-ezsdk_dm814x-evm_5_05_02_00 for SD boot.
    So Is this SD boot from ti-ezsdk_dm814x-evm_5_05_02_00, can work with TI TDA2x?


    <omap5-sgx-ddk-linux is a source package, so if you installed it, you already have teh source code>
    Ans: I dont find any source code after installing omap5-sgx-ddk-linux package , only I found is executable files, in this path /targetfs/opt/img-pvr-sdk ,
    So It would be great If you could send us source code for at-least existing sample codes.
  • Kapil,

    No TI 8148 and TDA2x has different cores and kernel versions all together. TI 8148 had cortex A8 while TDA2x has A15 ti-ezsdk_dm814x-evm_5_05_02_00 will not work on TDA2x. For SD boot, you can use vision SDK with Linux or GLSDK.
  • Can you tell me the instructions as to how you downloaded and installed the package? Also, it would be great if you could send me the output of

    ls -lR targetfs/

    Regards,

    Subhajit

  •    targetfsFileLists.txt

    Hi Subhajit,

    I have followed steps mentioned in VisionSDK_LinuxUserGuide document .

    Also I have attached text file which contains output of  ls -lR targetfs/ command.

  • Hi Yogesh,

    Could you please send me links to download GLSDK to boot SD on TDA2x .
  • Before we go in that direction have you looked at section "4.2 Preparing SD card & Boot" in VisionSDK_LinuxUserGuide? You can also prepare bootable SD card with what you have.
  • Hi Yogesh,

    I have already done SD card bootable as mentioned in section 4.2 .

    Since you replied earlier

    As  ti-ezsdk_dm814x-evm_5_05_02_00 will not work on TDA2x. For SD boot, you can use vision SDK with Linux or GLSDK.

    For this, What I need is link to download GLSDK to try this on TDA2x.

  • Kapil,

    You can find GLSDK download from this landing page

    http://processors.wiki.ti.com/index.php/Category:Processor_SDK_Linux_Automotive

    Regards,

    Subhajit

  • Hi Subhajit,

    In earlier mail chains I have attached output of ls -lR targetfs/ .

    and  have followed steps mentioned in VisionSDK_LinuxUserGuide document for linux installation on A15.

    and  I dont find any source code after installing omap5-sgx-ddk-linux package , only I found is executable files, in this path /targetfs/opt/img-pvr-sdk ,

    So It would be great If you could send us source code for at-least existing sample codes.

    7752.targetfsFileLists.txt

  • Kapil,

    Can you please let me know how you are installing the package omap5-sgx-ddk-linux on your target?

    Regards,

    Subhajit

  • HI Subhajit ,

    As I already mentioned ion previous mail that I have followed steps in VisionSDK_LinuxUserGuide document .
    Below are the list of commands,

    $> cd $INSTALL_DIR/ti_components/os_tools/linux/sgx
    $> git clone git://git.ti.com/graphics/omap5-sgx-ddk-linux.git
    $> cd omap5-sgx-ddk-linux/
    $> git checkout -b sgx_dev 0f3561a47cf7a1b968fb64446a0be10abc9a15d5
  • Kapil,

    VisionSDK_Linux is meant to be used primarily by ADAS customers who are primarily working from IPU/BIOS and want to use Linux/SGX as a black box

    If you want to use more Linux capabilities from A15 and program on SGX, I would suggest that you install GLSDK. This will provide all the required host tools and packages for you to build Graphics applications.

    Please refer to the following:
    processors.wiki.ti.com/.../Category:Processor_SDK_Linux_Automotive

    You need to use 7.04.00.03 release.

    Regards,
    Anand