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.

SGX530 Failed - Graphics_SDK_4_08_00_01 with SDK 05.05.00.00

Other Parts Discussed in Thread: DA8XX

Hi,

We are trying to run SGX demos on our custom AM335x Board.We successfully build Graphics_SDK_4_08_00_01 for Am335x.
Also, we generate base,console and qte image using OpenEmbedded and Arago Distro.
We can successfully run SGX demos on our base image.
When we try with your tisdk-rootfs-am335x-evm.tar.gz image (for MATRIX GUI) which comes with SDK 05.05.00.00.

It doesnt work and you can see console flow below;

root@am335x-evm:/# /etc/init.d/335x-demo
0x10205
release8.x
installing 8.x SGX release user libraries

Installing PowerVR Consumer/Embedded DDK 'sgxddk_1.9.RC2@2139099' on target

File system installation root is /

Nothing to un-install.
boot script rc.pvr -> /etc/init.d/rc.pvr
kernel module pvrsrvkm.ko -> /lib/modules/3.2.0/extra/pvrsrvkm.ko
kernel module omaplfb.ko -> /lib/modules/3.2.0/extra/omaplfb.ko
shared library libGLES_CM.so -> /usr/lib/libGLES_CM.so.1.9.2139099
shared library libusc.so -> /usr/lib/libusc.so.1.9.2139099
shared library libGLESv2.so -> /usr/lib/libGLESv2.so.1.9.2139099
shared library libglslcompiler.so -> /usr/lib/libglslcompiler.so.1.9.2139099
shared library libIMGegl.so -> /usr/lib/libIMGegl.so.1.9.2139099
shared library libEGL.so -> /usr/lib/libEGL.so.1.9.2139099
shared library libpvr2d.so -> /usr/lib/libpvr2d.so.1.9.2139099
shared library libpvrPVR2D_BLITWSEGL.so -> /usr/lib/libpvrPVR2D_BLITWSEGL.so.1.9.2139099
shared library libpvrPVR2D_FLIPWSEGL.so -> /usr/lib/libpvrPVR2D_FLIPWSEGL.so.1.9.2139099
shared library libpvrPVR2D_FRONTWSEGL.so -> /usr/lib/libpvrPVR2D_FRONTWSEGL.so.1.9.2139099
shared library libpvrPVR2D_LINUXFBWSEGL.so -> /usr/lib/libpvrPVR2D_LINUXFBWSEGL.so.1.9.2139099
shared library libpvrEWS_WSEGL.so -> /usr/lib/libpvrEWS_WSEGL.so.1.9.2139099
shared library libsrv_um.so -> /usr/lib/libsrv_um.so.1.9.2139099
shared library libsrv_init.so -> /usr/lib/libsrv_init.so.1.9.2139099
shared library libPVRScopeServices.so -> /usr/lib/libPVRScopeServices.so.1.9.2139099
binary pvrsrvctl -> /usr/local/bin/pvrsrvctl
binary sgx_init_test -> /usr/local/bin/sgx_init_test
binary services_test -> /usr/local/bin/services_test
binary sgx_blit_test -> /usr/local/bin/sgx_blit_test
binary sgx_clipblit_test -> /usr/local/bin/sgx_clipblit_test
binary sgx_render_flip_test -> /usr/local/bin/sgx_render_flip_test
binary pvr2d_test -> /usr/local/bin/pvr2d_test
binary gles1test1 -> /usr/local/bin/gles1test1
binary gles2test1 -> /usr/local/bin/gles2test1
shader glsltest1_vertshader.txt -> /usr/local/bin/glsltest1_vertshader.txt
shader glsltest1_fragshaderA.txt -> /usr/local/bin/glsltest1_fragshaderA.txt
shader glsltest1_fragshaderB.txt -> /usr/local/bin/glsltest1_fragshaderB.txt
binary eglinfo -> /usr/local/bin/eglinfo

Installation complete!
You may now reboot your target.

[ 425.248229] Disabling lock debugging due to kernel taint
/usr/local/bin/pvrsrvctl: SrvInit failed (already initialized?) (err=130)


When we run ;

cat /proc/sys/kernel/tainted

It says 4096 and it means An out-of-tree module has been loaded.

Why it gives such error for tisdk-rootfs-am335x-evm.tar.gz?
Why it doesnt give such error for our base-image (which we use OpenEmbedded and Arago Distro to create)?

Finally, when we run rc.pvr restart, it says, it has problems about omaplfb modules.What should we done next?

root@am335x-evm:/# /etc/init.d/rc.pvr restart
ERROR: Module omaplfb does not exist in /proc/modules
Warning: Could not unload omaplfb
Unloaded PowerVR consumer services.
/usr/local/bin/pvrsrvctl: SrvInit failed (already initialized?) (err=130)
root@am335x-evm:/#

Best Regards,

FERHAT


  • Hi,

    We want to learn which version of PSP or SDK worked to release with Graphics_SDK_4_08_00_01 for AM335x?

    We have errors in older post related TI said PSP-SDK (http://processors.wiki.ti.com/index.php/RN_4_08_00_01)

    in wiki page of Graphics_SDK_4_08_00_01?

    Best Regards,

    FERHAT

  • Please post output of the below script for further details:

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

    Are you sure there is no mix between old and new libraries ?

  • Hi Prabindh,

    You can see log from script below.

    root@am335x-evm:/# ./gfx_check.sh
    WSEGL settings
    [default]
    WindowSystem=libpvrPVR2D_FRONTWSEGL.so
    #WindowSystem=libpvrPVR2D_FLIPWSEGL.so
    ------
    ARM CPU information
    Processor       : ARMv7 Processor rev 2 (v7l)
    BogoMIPS        : 718.02
    Features        : swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls
    CPU implementer : 0x41
    CPU architecture: 7
    CPU variant     : 0x3
    CPU part        : 0xc08
    CPU revision    : 2
    Hardware        : bosphorus2
    Revision        : 0000
    Serial          : 0000000000000000
    ------
    SGX driver information
    Version CustomerTI_OMAP4430_Linux_GPL sgxddk 17 1.7@867897 (release) /home/hudson/amsdk-nightly-build/cortex-A8/arago-tmp/work/am335x-evm-arago-linux-gnueabi/omap3-sgx-modules-4.06.00.02-r30c/Graphics_SDK_4_06_00_02/GFX_Linux_KM
    System Version String: None
    ------
    Framebuffer settings
    mode "480x272-57"
        # D: 9.091 MHz, H: 16.992 kHz, V: 57.021 Hz
        geometry 480 272 480 816 16
        timings 110000 43 8 12 4 4 10
        rgba 5/11,6/5,5/0,0/0
    endmode
    Frame buffer device information:
        Name        : DA8xx FB Drv
        Address     : 0x8fa00000
        Size        : 614400
        Type        : PACKED PIXELS
        Visual      : TRUECOLOR
        XPanStep    : 0
        YPanStep    : 1
        YWrapStep   : 0
        LineLength  : 960
        Accelerator : No
    ------
    Rotation settings
    0
    ------
    Kernel Module information
    Module                  Size  Used by
    pvrsrvkm              159444  0
    g_mass_storage         37823  0
    ------
    Boot settings
    console=ttyO0,115200n8 root=/dev/mmcblk0p2 rw mem=256M rootfstype=ext3 rootwait ip=none
    ------
    Linux Kernel version
    Linux am335x-evm 3.2.0 #1 Fri Nov 2 10:13:49 PDT 2012 armv7l unknown
    root@am335x-evm:/#

    i dont know if there are mix libraries, basicly we used your ti-sdk.tar.gz
    and we built and install graphic sdk into ti-sdk.tar.gz

    Best Regards,

    FERHAT YALDIZ

  • Why does the log show 4.06 being used instead of 4.08 ?

     

    >> A8/arago-tmp/work/am335x-evm-arago-linux-gnueabi/omap3-sgx-modules-4.06.00.02-

  • Hi Prabindh,

    We dont know why log show 04.06 instead of 04.08. It is main problem.

    I think ti-sdk .tar.gz comes with 04.06 installed default and when we install 04.08 into

    ti-sdk.tar.gz, it does not show its 04.08. there should be mix libraries as you said before.

    How can we uninstall default 04.06 installation from ti-sdk.tar.gz?

    Also, ti-sdk 05.05 comes with psp 04.06.00.08 and graphics sdk 04.06 instead of 04.08.

    You can check from download site in TI. TI SDK 05.05 must contain graphics sdk 04.08 not 04.06.

    When we installed graphics sdk 04.08 into our arago based base-image, it shows correct

    version of graphics sdk. you can see below.

    root@am335x-evm:/# ./gfx_check.sh
    WSEGL settings
    [default]
    WindowSystem=libpvrPVR2D_FRONTWSEGL.so
    #WindowSystem=libpvrPVR2D_FLIPWSEGL.so
    ------
    ARM CPU information
    Processor       : ARMv7 Processor rev 2 (v7l)
    BogoMIPS        : 718.02
    Features        : swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls
    CPU implementer : 0x41
    CPU architecture: 7
    CPU variant     : 0x3
    CPU part        : 0xc08
    CPU revision    : 2
    Hardware        : bosphorus2
    Revision        : 0000
    Serial          : 0000000000000000
    ------
    SGX driver information
    Version SGX_DDK_Linux_CustomerTI sgxddk 19 1.9.RC2@2139099 (release) /home/atlas-embedded/Graphics_SDK_4_08_00_01/GFX_Linux_KM
    System Version String: SGX revision = 1.2.5
    ------
    Framebuffer settings
    mode "480x272-57"
        # D: 9.091 MHz, H: 16.992 kHz, V: 57.021 Hz
        geometry 480 272 480 544 16
        timings 110000 43 8 12 4 4 10
        rgba 5/11,6/5,5/0,0/0
    endmode
    Frame buffer device information:
        Name        : DA8xx FB Drv
        Address     : 0x8fa00000
        Size        : 614400
        Type        : PACKED PIXELS
        Visual      : TRUECOLOR
        XPanStep    : 0
        YPanStep    : 1
        YWrapStep   : 0
        LineLength  : 960
        Accelerator : No
    ------
    Rotation settings
    0
    ------
    Kernel Module information
    Module                  Size  Used by
    omaplfb                10683  0
    pvrsrvkm              177784  1 omaplfb
    ------
    Boot settings
    console=ttyO0,115200n8 root=/dev/nfs nfsroot=10.1.10.13:/home/atlas-embedded/export/target rw ip=dhcp
    ------
    Linux Kernel version
    Linux am335x-evm 3.2.0 #1 Fri Nov 2 10:13:49 PDT 2012 armv7l unknown
    root@am335x-evm:/#

     Best Regards,

    FERHAT YALDIZ

  • Hi,

    By default, the SDK file system being used comes with 4.06 graphics SDK libraries & hence the startup scripts in that file system , will be trying to load the 4.06 graphics drivers by default.

    Please note that procedures/steps used for installing graphics drivers in SDK file system/environment is different when compared to using standalone graphics SDK.

    Its not advisable to mix/match the steps used for standalone graphics SDK with SDK steps.

    The steps to be followed (right from build to execution) if using standalone graphics SDK with a minimal base file system –

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

    If using an existing SDK file system which has an older graphics SDK release & need to upgrade to new graphics SDK release, then you can use the attached script on the target(expects the latest graphics SDK release 04.08.00.01 libraries & .kos built to be present in /opt/gfx_rel_es8.x folder of target file system).

    Thanks,

    Prathap.


    upgradeGfxSdk.rar
  • Hi,

    Your script is ok.

    Thanks,

    FERHAT YALDIZ