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.

What is the difference between tilcdc and omap_drm driver? And how to use 3d program on the ARAGO filesystem.



I download Processor SDK Linux for AM335X 07_03_00 ,and flash tisdk-default-image-am335x-evm.tar.xz to BBB's  tf card by the guide.

I modify some configure by the guild about BBB. But I can not run and 3D demo program in  /usr/bin/SGX/demos

Error info is such

".
PVRShell: EGL Error (EGL_NOT_INITIALIZED)
InitAPI failed!
PVRShell: Unable to initialise EGL

kmscube is not work also.

So I wander why program is not work.and ask some question 

1) modetest -s 34@32:1024x768@RG16 is SUCCESS , but  info is 

trying to open device 'omapdrm'...failed
trying to open device 'exynos'...failed
trying to open device 'tilcdc'...done

What is the difference between tilcdc and omap_drm driver? 

2)  sectioon 3.6. Graphics and Display , show many infomation , but 

what the relationship is among drm ,sgx530 um/km driver, egl , kms , libGLESv2 ..... , How a 3d picture render  stream is . ( Because on one Debian Image , my 3D program is OK )  

  • Hello,

    1. TILCDC is the display driver for AM335x and omapdrm is the display driver for other devices like am437x.

    2. Have you tried disabling weston and running your application? What happens if you run kmstest?

    Regards,

    Krunal

  • After run      kmstest -f RG16    ,  color bar can be seen.

    Crtc 0/@32: 1280x720 74.250 1280/110/40/220/+ 720/5/5/20/+ 60 (60.00) 0x5 0x48
    Plane 0/@31: 0,0-1280x720
    Fb 38 1280x720-RG16
    press enter to exit

    When stop weston by    /etc/init.d/weston stop 

    1. run /usr/bin/SGX/demos/Raw/OGLES2ChameleonMan

    ExiL
    ".
    PVRShell: EGL Error (EGL_NOT_INITIALIZED)
    InitAPI failed!
    PVRShell: Unable to initialise EGL

    error info can be seen

    2. run   /usr/bin/SGX/demos/DRM/OGLES2ChameleonMan

    display failed to set mode: Invalid argument
    display failed to set mode: Invalid argument
    display failed to set mode: Invalid argument
    display failed to set mode: Invalid argument
    PVRImageDrawableGetNativeInfo: Image get buffers call failed
    PVR:(Error): KEGLGetDrawableParameters: Couldn't recreate drawable
    [0, ]
    PVR:(Error): PrepareToDraw: Invalid drawable [0, ]
    PVR:(Error): glClear: Can't prepare to draw [0, ]
    PVRImageDrawableGetNativeInfo: Image get buffers call failed
    PVR:(Error): KEGLGetDrawableParameters: Couldn't recreate drawable
    [0, ]
    PVR:(Error): PrepareToDraw: Invalid drawable [0, ]
    PVR:(Error): glDrawElements: Can't prepare to draw [0, ]
    PVRImageDrawableGetNativeInfo: Image get buffers call failed
    PVR:(Error): KEGLGetDrawableParameters: Couldn't recreate drawable
    [0, ]
    PVR:(Error): PrepareToDraw: Invalid drawable [0, ]

    ...................

    error info can be seen

    3

    3.1  run  /etc/init.d/weston start again and inject keyboard

    3.2  run  /usr/bin/SGX/demos/Wayland/OGLES2ChameleonMan 

    3D program is OK

    question:

    1) Why DRM version and RAW version of 3D test program  is not work after disable the weston server.

    2) where can I find TI version of the source code of the test 3D program for AM335x

    3) where can i find the SGX530 GPU's source code of libEGL  ,user space driver , drm , kenel space driver......

  • Hello,

    1/2) We do not test the OGLES examples and they come from IMG SDK. Here is the link: https://github.com/powervr-graphics/Native_SDK. If you have additional questions, please reach out to IMG: https://forums.imgtec.com/

    3) The GPU source code is split into two modes: UM and KM. The KM source code is available here: https://git.ti.com/cgit/graphics/omap5-sgx-ddk-linux/ and UM binaries: https://git.ti.com/cgit/graphics/omap5-sgx-ddk-um-linux/. (The UM source code is not publicly available)

    Regards,
    Krunal