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.

AM3358: Graphics SDK of am3358

Part Number: AM3358
Other Parts Discussed in Thread: DA8XX

Hello TI guys:

I am using gfxsdk4_10_00_01 to run on old linux3.2.0 which is from

am335x-evm-sdk-src-06.00.00.00.tar release in 06/2013. for some reason ,I can not use the newest sdk.

What is wrong?

I compile the graphic sdk ,kernel 

I use following command to make it in graphic sdk

make BUILD=release OMAPES=8.x all

then  make BUILD=release OMAPES=8.x install   

 install it to my nfs filesystem,then run the demo

root@DR02:/opt/gfxsdkdemos# ./335x-demo
0x10205
release8.x
installing 8.x SGX release user libraries

Installing PowerVR Consumer/Embedded DDK 'sgxddk_1.10@2359475' 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.10.2359475
shared library libusc.so -> /usr/lib/libusc.so.1.10.2359475
shared library libGLESv2.so -> /usr/lib/libGLESv2.so.1.10.2359475
shared library libglslcompiler.so -> /usr/lib/libglslcompiler.so.1.10.2359475
shared library libIMGegl.so -> /usr/lib/libIMGegl.so.1.10.2359475
shared library libEGL.so -> /usr/lib/libEGL.so.1.10.2359475
shared library libpvr2d.so -> /usr/lib/libpvr2d.so.1.10.2359475
shared library libpvrPVR2D_BLITWSEGL.so -> /usr/lib/libpvrPVR2D_BLITWSEGL.so.1.10.2359475
shared library libpvrPVR2D_FLIPWSEGL.so -> /usr/lib/libpvrPVR2D_FLIPWSEGL.so.1.10.2359475
shared library libpvrPVR2D_FRONTWSEGL.so -> /usr/lib/libpvrPVR2D_FRONTWSEGL.so.1.10.2359475
shared library libpvrPVR2D_LINUXFBWSEGL.so -> /usr/lib/libpvrPVR2D_LINUXFBWSEGL.so.1.10.2359475
shared library libsrv_um.so -> /usr/lib/libsrv_um.so.1.10.2359475
shared library libsrv_init.so -> /usr/lib/libsrv_init.so.1.10.2359475
shared library libPVRScopeServices.so -> /usr/lib/libPVRScopeServices.so.1.10.2359475
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_flip_test -> /usr/local/bin/sgx_flip_test
binary sgx_render_flip_test -> /usr/local/bin/sgx_render_flip_test
binary pvr2d_test -> /usr/local/bin/pvr2d_test
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

Installation complete!
You may now reboot your target.

Module pvrsrvkm failed to load. Retrying.
Running /sbin/depmod
[ 211.953491] Disabling lock debugging due to kernel taint
[ 211.970733] ------------[ cut here ]------------
[ 211.975616] WARNING: at fs/sysfs/dir.c:481 sysfs_add_one+0x88/0xa8()
[ 211.982452] sysfs: cannot create duplicate filename '/bus/platform/devices/pvrsrvkm'
[ 211.990570] Modules linked in: pvrsrvkm(O+)
[ 211.994964] Backtrace:
[ 211.997558] [<c0017dbc>] (dump_backtrace+0x0/0x10c) from [<c04a0b04>] (dump_stack+0x18/0x1c)
[ 212.006408] r6:c00fbfdc r5:00000009 r4:df3b7d38 r3:c06a668c
[ 212.012390] [<c04a0aec>] (dump_stack+0x0/0x1c) from [<c003dff0>] (warn_slowpath_common+0x54/0x6c)
[ 212.021728] [<c003df9c>] (warn_slowpath_common+0x0/0x6c) from [<c003e0ac>] (warn_slowpath_fmt+0x38/0x40)
[ 212.031707] r8:00000001 r7:de1b5000 r6:de1b5000 r5:df330cc0 r4:ffffffef
[ 212.038574] r3:00000009
[ 212.041320] [<c003e074>] (warn_slowpath_fmt+0x0/0x40) from [<c00fbfdc>] (sysfs_add_one+0x88/0xa8)
[ 212.050628] r3:de1b5000 r2:c05af570
[ 212.054382] [<c00fbf54>] (sysfs_add_one+0x0/0xa8) from [<c00fc878>] (sysfs_do_create_link+0xf8/0x1e0)
[ 212.064086] r7:df3b7d90 r6:df012db0 r5:df330cc0 r4:df3305e0
[ 212.070037] [<c00fc780>] (sysfs_do_create_link+0x0/0x1e0) from [<c00fc974>] (sysfs_create_link+0x14/0x18)
[ 212.080108] [<c00fc960>] (sysfs_create_link+0x0/0x18) from [<c027c888>] (bus_add_device+0xcc/0x184)
[ 212.089599] [<c027c7bc>] (bus_add_device+0x0/0x184) from [<c027abe8>] (device_add+0x430/0x574)
[ 212.098632] r8:00000000 r7:c06c6550 r6:bf01ec00 r5:00000000 r4:bf01ebf8
[ 212.105499] r3:00000000
[ 212.108245] [<c027a7b8>] (device_add+0x0/0x574) from [<c027eef8>] (platform_device_add+0xfc/0x1e8)
[ 212.117675] [<c027edfc>] (platform_device_add+0x0/0x1e8) from [<c027f230>] (platform_device_register+0x28/0x2c)
[ 212.128265] r7:df3b6000 r6:c06ef140 r5:bf020aac r4:bf01ebf0
[ 212.134307] [<c027f208>] (platform_device_register+0x0/0x2c) from [<bf02b078>] (PVRCore_Init+0x78/0x168 [pvrsrvkm])
[ 212.145233] r4:00000000 r3:00000000
[ 212.149017] [<bf02b000>] (PVRCore_Init+0x0/0x168 [pvrsrvkm]) from [<c000876c>] (do_one_initcall+0x128/0x1a8)
[ 212.159301] r6:c06ef140 r5:bf01ee34 r4:bf01ee34
[ 212.164154] [<c0008644>] (do_one_initcall+0x0/0x1a8) from [<c006ae18>] (sys_init_module+0x3e4/0x1b68)
[ 212.173797] [<c006aa34>] (sys_init_module+0x0/0x1b68) from [<c0014740>] (ret_fast_syscall+0x0/0x30)
[ 212.183288] ---[ end trace 14fee46625df4f4b ]---

I see it in kernel there is init function as following

void __init am33xx_gpu_init(void)
{
int id = -1;
struct platform_device *pdev;
struct omap_hwmod *oh;
char *oh_name = "gfx";
char *dev_name = "pvrsrvkm";

Is that mean  the pvrsrvkm module is not need to insert?

I also found that I can not download the  gfxsdk 5_00_00_01 

and it stop update since 2015 ,why?

Thanks 

  • Hello LIANG,

    Can you make debug build and retry? Also remove all the modules from /lib/modules/ before installing the new ones.

    BUILD=debug

    LIANG WANG102707 said:
    and it stop update since 2015 ,why?

    In 2015, the gfxsdk 5_00_00_01 got merged to Processor SDK.

    Best regards,
    Kemal

  • Hello Kemal:

    here is the debug build

    root@DR02:/opt/gfxsdkdemos# ./335x-demo
    0x10205
    debug8.x
    installing 8.x SGX debug user libraries

    Installing PowerVR Consumer/Embedded DDK 'sgxddk_1.10@2359475' on target

    File system installation root is /

    Uninstalling existing version sgxddk_1.10@2359475
    Uninstallation completed.
    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.10.2359475
    shared library libusc.so -> /usr/lib/libusc.so.1.10.2359475
    shared library libGLESv2.so -> /usr/lib/libGLESv2.so.1.10.2359475
    shared library libglslcompiler.so -> /usr/lib/libglslcompiler.so.1.10.2359475
    shared library libIMGegl.so -> /usr/lib/libIMGegl.so.1.10.2359475
    shared library libEGL.so -> /usr/lib/libEGL.so.1.10.2359475
    shared library libpvr2d.so -> /usr/lib/libpvr2d.so.1.10.2359475
    shared library libpvrPVR2D_BLITWSEGL.so -> /usr/lib/libpvrPVR2D_BLITWSEGL.so.1.1 0.2359475
    shared library libpvrPVR2D_FLIPWSEGL.so -> /usr/lib/libpvrPVR2D_FLIPWSEGL.so.1.1 0.2359475
    shared library libpvrPVR2D_FRONTWSEGL.so -> /usr/lib/libpvrPVR2D_FRONTWSEGL.so.1 .10.2359475
    shared library libpvrPVR2D_LINUXFBWSEGL.so -> /usr/lib/libpvrPVR2D_LINUXFBWSEGL. so.1.10.2359475
    shared library libsrv_um.so -> /usr/lib/libsrv_um.so.1.10.2359475
    shared library libsrv_init.so -> /usr/lib/libsrv_init.so.1.10.2359475
    shared library libPVRScopeServices.so -> /usr/lib/libPVRScopeServices.so.1.10.23 59475
    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_flip_test -> /usr/local/bin/sgx_flip_test
    binary sgx_render_flip_test -> /usr/local/bin/sgx_render_flip_test
    binary pvr2d_test -> /usr/local/bin/pvr2d_test
    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

    Installation complete!
    You may now reboot your target.

    [ 75.008026] Disabling lock debugging due to kernel taint
    [ 75.031311] PVR: PVRCore_Init
    [ 75.036041] PVR: PVRSRVDriverProbe(pDevice=df06a800)
    [ 75.041564] PVR: EnableSystemClocks: Enabling System Clocks
    [ 75.047454] PVR: GPTIMER11 clock is 24MHz
    [ 75.052185] ------------[ cut here ]------------
    [ 75.057037] WARNING: at fs/sysfs/dir.c:481 sysfs_add_one+0x88/0xa8()
    [ 75.063751] sysfs: cannot create duplicate filename '/bus/platform/devices/pv rsrvkm'
    [ 75.071868] Modules linked in: pvrsrvkm(O+)
    [ 75.076263] Backtrace:
    [ 75.078857] [<c0017dbc>] (dump_backtrace+0x0/0x10c) from [<c04a0b04>] (dump_s tack+0x18/0x1c)
    [ 75.087707] r6:c00fbfdc r5:00000009 r4:de249d18 r3:c06a668c
    [ 75.093658] [<c04a0aec>] (dump_stack+0x0/0x1c) from [<c003dff0>] (warn_slowpa th_common+0x54/0x6c)
    [ 75.102996] [<c003df9c>] (warn_slowpath_common+0x0/0x6c) from [<c003e0ac>] (w arn_slowpath_fmt+0x38/0x40)
    [ 75.112945] r8:00000001 r7:de4e6000 r6:de4e6000 r5:df3b0c20 r4:ffffffef
    [ 75.119812] r3:00000009
    [ 75.122558] [<c003e074>] (warn_slowpath_fmt+0x0/0x40) from [<c00fbfdc>] (sysf s_add_one+0x88/0xa8)
    [ 75.131866] r3:de4e6000 r2:c05af570
    [ 75.135620] [<c00fbf54>] (sysfs_add_one+0x0/0xa8) from [<c00fc878>] (sysfs_do _create_link+0xf8/0x1e0)
    [ 75.145294] r7:de249d70 r6:df012db0 r5:df3b0c20 r4:df3b0680
    [ 75.151275] [<c00fc780>] (sysfs_do_create_link+0x0/0x1e0) from [<c00fc974>] ( sysfs_create_link+0x14/0x18)
    [ 75.161315] [<c00fc960>] (sysfs_create_link+0x0/0x18) from [<c027c888>] (bus_ add_device+0xcc/0x184)
    [ 75.170806] [<c027c7bc>] (bus_add_device+0x0/0x184) from [<c027abe8>] (device _add+0x430/0x574)
    [ 75.179870] r8:00000000 r7:c06c6550 r6:bf066c28 r5:00000000 r4:bf066c20
    [ 75.186706] r3:00000000
    [ 75.189483] [<c027a7b8>] (device_add+0x0/0x574) from [<c027eef8>] (platform_d evice_add+0xfc/0x1e8)
    [ 75.198883] [<c027edfc>] (platform_device_add+0x0/0x1e8) from [<c027f230>] (p latform_device_register+0x28/0x2c)
    [ 75.209472] r7:de248000 r6:c06ef140 r5:bf066df8 r4:bf066c18
    [ 75.215698] [<c027f208>] (platform_device_register+0x0/0x2c) from [<bf0770ec> ] (PVRCore_Init+0xec/0x398 [pvrsrvkm])
    [ 75.226623] r4:bf066df8 r3:00000000
    [ 75.230468] [<bf077000>] (PVRCore_Init+0x0/0x398 [pvrsrvkm]) from [<c000876c> ] (do_one_initcall+0x128/0x1a8)
    [ 75.240753] [<c0008644>] (do_one_initcall+0x0/0x1a8) from [<c006ae18>] (sys_i nit_module+0x3e4/0x1b68)
    [ 75.250457] [<c006aa34>] (sys_init_module+0x0/0x1b68) from [<c0014740>] (ret_ fast_syscall+0x0/0x30)
    [ 75.259948] ---[ end trace e574e16145c78813 ]---
    [ 75.264862] PVR: PVRSRVDriverRemove(pDevice=df06a800)
    [ 75.270355] PVR: DisableSystemClocks: Disabling System Clocks
    [ 75.276489] PVR_K:(Error): PVRCore_Init: unable to register platform device ( -17) [999, home/dr/Graphics_SDK_4_10_00_01/GFX_Linux_KM/services4/srvkm/env/linu x/module.c]
    BusyBox v1.20.2 (2013-06-25 16:43:45 CDT) multi-call binary.

    Usage: mknod [-m MODE] NAME TYPE MAJOR MINOR

    chmod: /dev/pvrsrvkm: No such file or directory

    I also copy the  tisdk-rootfs-image-am335x-evm.tar.gz in  my /home/root folder of my nfs filesystem ,

    which is released in 201306 of am335x-evm-sdk-bin-06.00.00.00,then I unpack it ,

    it is as following ,I insert the two module it seem fine.

    root@DR02:~/lib/modules/3.2.0/kernel/drivers/gpu/pvr# ls
    bufferclass_ti.ko omaplfb.ko pvrsrvkm.ko

    root@DR02:~/lib/modules/3.2.0/kernel/drivers/gpu/pvr# lsmod
    Module Size Used by
    omaplfb 11075 0
    pvrsrvkm 170641 1 omaplfb

    but when I run the tool in my nfs ~/usr/bin/

    ./gles2test1

    it output nothing ,then end.

    Best regards

    wangl

  • Hello Wangl,

    We do not support gfxsdk anymore and please refer to our latest PSDK. I found an old thread with a similar issue and please refer to the following thread.

    Regards,
    Krunal 

  • Hello Krunal:

    Thanks for your answer, yes ,it do work

     make BUILD=release  FBDEV=yes OMAPES=8.x all PM_RUNTIME=1  install 

    root@DR02:~# source gfx_check.sh

    WSEGL settings
    [default]
    WindowSystem=libpvrPVR2D_FRONTWSEGL.so
    #WindowSystem=libpvrPVR2D_FLIPWSEGL.so

    ------
    ARM CPU information
    Processor : ARMv7 Processor rev 2 (v7l)
    BogoMIPS : 996.14
    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 : am335xevm
    Revision : 0000
    Serial : 0000000000000000
    ------
    SGX driver information
    Version SGX_DDK_Linux_CustomerTI sgxddk 1.10@2359475 (release) /home/dr/workspace/Graphics_SDK_4_10_00_01/GFX_Linux_KM
    System Version String: None
    ------
    Framebuffer settings

    mode "1280x800-35"
    # D: 40.000 MHz, H: 29.630 kHz, V: 35.148 Hz
    geometry 1280 800 1280 1600 16
    timings 25000 5 64 2 40 1 1
    rgba 5/11,6/5,5/0,0/0
    endmode

    Frame buffer device information:
    Name : DA8xx FB Drv
    Address : 0x9f400000
    Size : 4096000
    Type : PACKED PIXELS
    Visual : TRUECOLOR
    XPanStep : 0
    YPanStep : 1
    YWrapStep : 0
    LineLength : 2560
    Accelerator : No
    ------
    Rotation settings
    0
    ------
    Kernel Module information
    Module Size Used by
    omaplfb 10959 0
    pvrsrvkm 170386 1 omaplfb
    ------
    Boot settings
    console=ttyO0,115200 root=/dev/nfs ip=192.168.1.171:::::eth0:off nfsroot=192.168.1.38:/export/rootfs,v3,tcp
    ------
    Linux Kernel version
    Linux DR02 3.2.0 #212 Thu Oct 31 15:52:34 CST 2019 armv7l GNU/Linux

    root@DR02:/etc/init.d# lsmod
    Module Size Used by
    omaplfb 10959 0
    pvrsrvkm 170386 1 omaplfb

    however,I comment the following pvrsrvctl  command in /etc/init.d/rc.pver,

    If I dont comment it  the omaplfb module will not  be inserted.

    # if ! /usr/local/bin/pvrsrvctl --start --no-module; then return; fi

    Because the pvrsrvctl will fail , following is output of

    strace  /usr/local/bin/pvrsrvctl --start --no-module

    execve("/usr/local/bin/pvrsrvctl", ["/usr/local/bin/pvrsrvctl", "--start", "--no-module"], [/* 27 vars */]) = 0
    brk(0) = 0x11000
    uname({sys="Linux", node="DR02", ...}) = 0
    access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
    mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40016000
    access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
    open("/usr/local/XSGX/lib/tls/v7l/neon/vfp/libsrv_init.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)

    open("/usr/lib/vfp/libsrv_init.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
    stat64("/usr/lib/vfp", 0xbec79240) = -1 ENOENT (No such file or directory)

    .

    .

    open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3

    .

    open("/usr/lib/libsrv_init.so", O_RDONLY|O_CLOEXEC) = 3

    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\220\7\0\0004\0\0\0"..., 512) = 512
    lseek(3, 93288, SEEK_SET) = 93288
    read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 960) = 960
    lseek(3, 92976, SEEK_SET) = 92976
    read(3, "A2\0\0\0aeabi\0\1(\0\0\0\0057-A\0\6\n\7A\10\1\t\2\n\3\f"..., 51) = 51
    exit_group(1) = ?
    +++ exited with 1 +++

    why it failed?

  • Hello,

    As mentioned above, we do not support GFXSDK anymore and please migrate to newer SDK.

    Regards,
    Krunal

  • Hello Krunal:

    Is there any doc ,how to build custom qt5 with opengl support  uing the new TI sdk,such as TI SDK V03_03_00_04?

    when I build the Qt5.5.1 meet the problem

    backend/qgraphicscontext.cpp:1035:22: error: ‘Qt3D::QAttribute::DataType’ is not a class or namespace

    Best regards

    wangl

  • Hello,

    We use the Yocto Project to integrate Qt into our PSDK and here are a couple of links to get you familiar with Yocto:
    1. http://software-dl.ti.com/processor-sdk-linux/esd/docs/latest/linux/Overview_Building_the_SDK.html
    2. https://training.ti.com/customizing-yocto-for-production-packagegroups

    Here is an image that describes all the recipes we have modified for Qt:


    Regards,
    Krunal

  • Hello Krunal:

    I have compile the Qt5.6.0 with the arm-linux-gnueabihf-gcc-4.7.3 and  Graphics_SDK_4_10_00_01

    and I run sgx_init_test sgx_flip_test sgx_clipblit_test sgx_blit_test both run fine.

    the following is the result of  sgx_flip_test 

    ----------------------- Start -----------------------
    Call PVRSRVConnect with a valid argument:
    OK
    Get number of devices from PVRSRVEnumerateDevices:
    OK
    .... Reported 1 devices
    .... Device Number | Device Type
    0000 | PVRSRV_DEVICE_ID_SGX
    Attempt to acquire device 0:
    OK
    Getting SGX Client info
    OK
    .... ui32ProcessID:1329
    Display Class API: enumerate devices
    OK
    PVRSRVEnumerateDeviceClass() returns 1 display device(s)
    OK
    Attempt to create memory context for SGX:
    OK
    Display Class API: open device
    OK
    Display Class API: Get display info
    OK
    .... Name:PowerVR OMAP Linux Display Driver
    .... MaxSwapChains:1
    .... MaxSwapChainBuffers:2
    .... MinSwapInterval:0
    .... MaxSwapInterval:1
    Display Class API: enumerate display formats
    OK
    OK
    .... Display format 0 - Pixelformat:1
    Display Class API: enumerate display dimensions
    OK
    OK
    .... Display dimensions 0 - ByteStride:2560 Width:1280 Height:800
    Display Class API: get the system (primary) buffer
    OK
    .... Shared heap 0 - HeapID:0x7000000 DevVAddr:0x1000 Size:0x87fe000 Attr:0x2014200
    .... Shared heap 1 - HeapID:0x7000001 DevVAddr:0xc800000 Size:0xfff000 Attr:0x2024200
    .... Shared heap 2 - HeapID:0x7000002 DevVAddr:0xe400000 Size:0x7f000 Attr:0x2024200
    .... Shared heap 3 - HeapID:0x7000003 DevVAddr:0xf000000 Size:0x3ff000 Attr:0x2024200
    .... Shared heap 4 - HeapID:0x7000004 DevVAddr:0xf400000 Size:0x4ff000 Attr:0x2014200
    .... Shared heap 5 - HeapID:0x7000005 DevVAddr:0xfc00000 Size:0x1ff000 Attr:0x2014200
    .... Shared heap 6 - HeapID:0x7000006 DevVAddr:0xdc00000 Size:0x7ff000 Attr:0x2014200
    .... Shared heap 7 - HeapID:0x7000007 DevVAddr:0xe800000 Size:0x7ff000 Attr:0x2014200
    .... Shared heap 8 - HeapID:0x7000008 DevVAddr:0xd800000 Size:0x3ff000 Attr:0x2024200
    .... Shared heap 9 - HeapID:0x7000009 DevVAddr:0x8800000 Size:0x0 Attr:0x2024200
    .... Shared heap 10 - HeapID:0x700000a DevVAddr:0x8800000 Size:0x3fff000 Attr:0x2014200
    Display Class API: map display surface to SGX
    OK
    FAIL - PVRSRV_ERROR_TOOMANYBUFFERS

    kernel is also fine:

    root@DR02:~# lsmod
    Module Size Used by
    omaplfb 10967 0
    pvrsrvkm 170426 1 omaplfb

    I found that  on https://doc.qt.io/archives/qt-5.6/embedded-linux.html

     some devices require vendor-specific adaptation code for EGL and OpenGL ES 2.0 support.

    This is not relevant for non-accelerated platforms, for example the ones using the LinuxFB plugin, which is meant for software-based rendering only. 

    so  export QT_QPA_PLATFORM=linuxfb:fb=/dev/fb0 should be wrong.

    so I change export environment as following

    root@DR02:~# export
    export EDITOR="/bin/vi"
    export HOME="/home/root"
    export HUSHLOGIN="FALSE"
    export HZ="100"
    export LD_LIBRARY_PATH="/usr/lib/plugins"
    export LOGNAME="root"
    export OLDPWD="/usr/lib/plugins/platforms"
    export OPIEDIR
    export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin"
    export PS1="\\u@\\h:\\w\\\$ "
    export PWD="/home/root"
    export QPEDIR
    export QTDIR="/usr"
    export QT_QPA_EGLFS_FB="/dev/fb0"
    export QT_QPA_EGLFS_HEIGHT="800"
    export QT_QPA_EGLFS_PHYSICAL_HEIGHT="800"
    export QT_QPA_EGLFS_PHYSICAL_WIDTH="1280"
    export QT_QPA_EGLFS_WIDTH="1280"
    export QT_QPA_FB_TSLIB="1"
    export QT_QPA_FONTDIR="/usr/lib/fonts"
    export QT_QPA_GENERIC_PLUGINS="tslib:/dev/input/touchscreen0"
    export QT_QPA_PLATFORM="eglfs"
    export QT_QPA_PLATFORM_PLUGIN_PATH="/usr/lib/plugins"
    export QWS_MOUSE_PROTO
    export SHELL="/bin/sh"
    export SHLVL="1"
    export TERM="linux"
    export TSLIB_CONFFILE="/etc/ts.conf"
    export TSLIB_TSDEVICE="/dev/input/touchscreen0"
    export TZ="UTC"
    export USER="root"

    but when I run the opengl_demo  from the following

    www.trentreed.net/.../

    But it report that 

    root@DR02:~# ./0_OpenGLWindow
    Cannot find EGLConfig, returning null config
    EGL Error : Could not create the egl surface: error = 0x3005

    what is wrong?

    Best regards

    wangl

  • Hello wangl,

    As mentioned earlier, we do not support Graphics_SDK_4_10_00_01.

    Regards,
    Krunal 

  • Dear Krunal:

    The man in OGLES2ChameleonMan run very fast.on my machine

    It is only Qt problem,not related to Graphics_SDK .

    Best regards

    wangl

  • Hello,

    As mentioned in the following document, TI SDK integrates many open source software but we do not own, maintain and support all the packages. Please post Qt specific questions on Qt forms.

    QT Framework

    Also, please try running the Qt out of box examples included in the folder "/usr/share/qt5/examples" of the TI filesystem.

    Regards,
    Krunal

  • Dear Krunal:

    I have change to ti sdk version V03_03_00_04

    and I use the bigger one rootfs in  am335x-evm-linux-sdk-bin-03.03.00.04  as my nfs rootfs.

    When I run 

    root@am335x-evm:/etc/init.d# source rc.pvr start
    Loaded PowerVR consumer services.

    root@am335x-evm:/usr/bin/SGX/demos/Raw# ./OGLES2ExampleUI
    Can't open keypad input device (/dev/input/event0)
    PVR:(Error): WSEGL_InitialiseDisplay: Failed to open primary device: No such file or directory [0, ]
    Exit message has been set to: "PVRShell: Unable to initialise EGL
    ".
    PVRShell: EGL Error (EGL_NOT_INITIALIZED)
    InitAPI failed!

    root@am335x-evm:/usr/bin/SGX/demos/Raw# lsmod
    Module Size Used by
    bc_example 7250 0
    pvrsrvkm 406839 1 bc_example

    why the demo failed?

    and when I run the qt5 opengl demo

    root@am335x-evm:~# ./0_OpenGLWindow
    failed to load module: /usr/lib/gbm/gbm_dri.so: cannot open shared object file: No such file or directory
    failed to load module: /usr/lib/gbm/gbm_gallium_drm.so: cannot open shared object file: No such file or directory
    loaded module : gbm_pvr.so
    found valid GBM backend : gbm_pvr.so
    PVR:(Error): [ 1909-> 1909] < gbm_pvr_create_device():585|ERROR> Failed to create DBM device: No such device [0, ]
    Could not create GBM device (No such device)
    Could not open device /dev/dri/card0 - aborting!

    Can you tell me why?

    Best regards

    wangl

  • Hello Krunal:

    I have changed the configure according 

    e2e.ti.com/.../831112

    cat /etc/powervr.ini
    [default]
    WindowSystem=libpvrGBMWSEGL.so

    ./0_OpenGLWindow
    failed to load module: /usr/lib/gbm/gbm_dri.so: cannot open shared object file: No such file or directory
    failed to load module: /usr/lib/gbm/gbm_gallium_drm.so: cannot open shared object file: No such file or directory
    loaded module : gbm_pvr.so
    found valid GBM backend : gbm_pvr.so
    Could not create buffer for cursor!
    Failed to move cursor on screen LVDS1: -14
    No such plugin for spec "tslib:/dev/input/touchscreen0"
    Cannot find EGLConfig, returning null config
    EGL Error : Could not create the egl surface: error = 0x3005

    The error  is same as when I use old sdk. But I am using the newer sdk which have qt5.6.2 in it.

    Best regards

    wangl

  • Hello Wangl,

    I am wondering if you could please download the latest PSDK from the following link. In the TI file-system, we have pre-built Qt examples under the following directory: "/usr/share/qt5/examples". I am able to run the examples without any problems.

    Regards,
    Krunal