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.

am3517 graphics SDK build problems

Other Parts Discussed in Thread: AM3517

I am having problems building the graphics SDK.

make output follows.

I am not sure if I need to be using the CodeSorcery toolchain (per the instructions) or if I can use the linux-devkit GCC toolchain supplied with the v5. PSP.  I was able to build and run the kernel with the linux-devkit toolchain, but I went back and built it, apparently successfully, with the CodeSorcery toolchain to make sure that the kernel config stuff was set up right for the graphics build.

A little googling and I found that:
"The removal of the ioctl field happened a lot later, in 2.6.36"

V5 PSP is kernel 2.6.37.

So it looks like the graphics SDK in the latest SDK isn't compatible with the kernel in it?

Is there a newer graphics SDK I should download?

Thanks.


Graphics_SDK_4_00_00_01:echo $PATH
/home/user/codesorcery/arm-2009q1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
Graphics_SDK_4_00_00_01:make OMAPES=3.x
building the sgx kernel modules...
make[1]: Entering directory `/home/user/Graphics_SDK_4_00_00_01/GFX_Linux_KM'
make -C /home/user/ti-sdk-am3517-evm-05.02.00.00/psp/linux-2.6.37-psp04.02.00.07/ M=`pwd` clean
make[2]: Entering directory `/home/user/ti-sdk-am3517-evm-05.02.00.00/psp/linux-2.6.37-psp04.02.00.07'
  CLEAN   /home/user/Graphics_SDK_4_00_00_01/GFX_Linux_KM/.tmp_versions
make[2]: Leaving directory `/home/user/ti-sdk-am3517-evm-05.02.00.00/psp/linux-2.6.37-psp04.02.00.07'
make[1]: Leaving directory `/home/user/Graphics_SDK_4_00_00_01/GFX_Linux_KM'
make[1]: Entering directory `/home/user/Graphics_SDK_4_00_00_01/GFX_Linux_KM'
make -C /home/user/ti-sdk-am3517-evm-05.02.00.00/psp/linux-2.6.37-psp04.02.00.07/ M=`pwd`
make[2]: Entering directory `/home/user/ti-sdk-am3517-evm-05.02.00.00/psp/linux-2.6.37-psp04.02.00.07'
  LD      /home/user/Graphics_SDK_4_00_00_01/GFX_Linux_KM/services4/3rdparty/bufferclass_ti/built-in.o
  CC [M]  /home/user/Graphics_SDK_4_00_00_01/GFX_Linux_KM/services4/3rdparty/bufferclass_ti/bc_cat.o
/home/user/Graphics_SDK_4_00_00_01/GFX_Linux_KM/services4/3rdparty/bufferclass_ti/bc_cat.c:124: error: unknown field 'ioctl' specified in initializer
/home/user/Graphics_SDK_4_00_00_01/GFX_Linux_KM/services4/3rdparty/bufferclass_ti/bc_cat.c:124: warning: initialization from incompatible pointer type
/home/user/Graphics_SDK_4_00_00_01/GFX_Linux_KM/services4/3rdparty/bufferclass_ti/bc_cat.c: In function 'bc_cat_init':
/home/user/Graphics_SDK_4_00_00_01/GFX_Linux_KM/services4/3rdparty/bufferclass_ti/bc_cat.c:495: error: implicit declaration of function 'omap_rev_lt_3_0'
make[4]: *** [/home/user/Graphics_SDK_4_00_00_01/GFX_Linux_KM/services4/3rdparty/bufferclass_ti/bc_cat.o] Error 1
make[3]: *** [/home/user/Graphics_SDK_4_00_00_01/GFX_Linux_KM/services4/3rdparty/bufferclass_ti] Error 2
make[2]: *** [_module_/home/user/Graphics_SDK_4_00_00_01/GFX_Linux_KM] Error 2
make[2]: Leaving directory `/home/user/ti-sdk-am3517-evm-05.02.00.00/psp/linux-2.6.37-psp04.02.00.07'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/user/Graphics_SDK_4_00_00_01/GFX_Linux_KM'
make: *** [buildkernel] Error 2
Graphics_SDK_4_00_00_01:

  • Downloading the latest graphics SDK helped alot.

    make OMAPES=3.x install did not appear to put the demos into /usr/local.

    But I found what looked like them in  /opt/gfxsdkdemos in my targetNFS filesystem

    But when I try to run e.g. /opt/gfxsdkdemos/ogles/OGLESVase, I get:

     /usr/lib/libstdc++.so.6: version `CXXABI_ARM_1.3.3' not found (required by /opt/gfxsdkdemos/ogles/OGLESVase)

    gfx_check.sh output follows, missing /proc/pvr/version seems wrong, other than that, maybe I have some toolchain tangles that mismatch the lib and the exe?

    root@am3517-evm:~# ./gfx_check.sh
    WSEGL settings
    [default]
    WindowSystem=libpvrPVR2D_FRONTWSEGL.so
    #WindowSystem=libpvrPVR2D_FLIPWSEGL.so

    ------
    ARM CPU information
    Processor    : ARMv7 Processor rev 7 (v7l)
    BogoMIPS    : 597.64
    Features    : swp half thumb fastmult vfp edsp thumbee neon vfpv3
    CPU implementer    : 0x41
    CPU architecture: 7
    CPU variant    : 0x1
    CPU part    : 0xc08
    CPU revision    : 7

    Hardware    : OMAP3517/AM3517 EVM
    Revision    : 0020
    Serial        : 0000000000000000
    ------
    SGX driver information
    cat: can't open '/proc/pvr/version': No such file or directory
    ------
    Framebuffer settings

    mode "480x272"
        geometry 480 272 480 816 16
        timings 0 0 0 0 0 0 0
        rgba 5/11,6/5,5/0,0/0
    endmode

    Frame buffer device information:
        Name        : omapfb
        Address     : 0x8f600000
        Size        : 4194304
        Type        : PACKED PIXELS
        Visual      : TRUECOLOR
        XPanStep    : 1
        YPanStep    : 1
        YWrapStep   : 0
        LineLength  : 960
        Accelerator : No
    ------
    Rotation settings
    0
    ------
    Kernel Module information
    Module                  Size  Used by
    ------
    Boot settings
    console=ttyO2,115200n8 noinitrd rw ip=dhcp root=/dev/nfs nfsroot=192.168.1.143:/home/user/ti-sdk-am3517-evm-05.02.00.00/targetNFS,nolock, mem=256M vram=10M omapfb.vram=0:4M,1:3M,2:3M
    ------
    Linux Kernel version
    Linux am3517-evm 2.6.37 #2 Thu Sep 29 16:11:08 EDT 2011 armv7l unknown

     

     

  • It looks like the modules are not inserted yet. Did you run /etc/init.d/omap_demo?

    Here is kernel module info part from gfx_check script from my setup.

    Kernel Module information
    Module                  Size  Used by
    bufferclass_ti          5044  0
    omaplfb                 8872  0
    pvrsrvkm              157618  2 bufferclass_ti,omaplfb
    ------

     

    Regards,

    Yan

  • Thanks, Yan, that was the last bit which I missed.

    BTW, if anyone else comes to this thread looking for answers, it's actually "/etc/init.d/omap-demo" (hyphen rather than underscore)

    I also just noticed that running that, it says "you can rebbot your target system now" so I suppose I'd better do that.

    The couple of demos I tried right away did seem to work at this point though.

    ==  dj