AM62P: Consultation on eglCreateImageKHR creation error

Part Number: AM62P

Hi,

We are currently implementing video stream transmission via DMA on the AM62P platform and have run into the errors shown below.

Could you please help us troubleshoot this issue, and if possible, provide reference examples or sample code for DMA-based video stream transmission on this platform? We are using AM62P SDK 10.0.

 

SrvManege_eglCheckEglError()(129) ] ==> EGL: after eglCreateImageKHR() eglError (0x3003)

SrvManage_eglSetupYuvTexSurface()(406) ] ==> EGL: ERROR: eglCreateImageKHR failed !!!

SrvManage_eglGetDmaTexYuv()(461) ] ==> EGL: ERROR: Unable to bind texture[0] to dmabuf fd [-1] !!!

SrvManage_eglGetDmaTexYuv|463)

  • Hi Ying, 

    Can you enable debug logging and provide output showing:

    1. Value of dmabuf fd immediately after allocation
    2. Value of dmabuf fd when passed to eglCreateImageKHR()
    3. Is eglGetCurrentContext() valid before eglCreateImageKHR()?
    4. How many eglCreateImageKHR calls exist? Do any succeed?
    5. dmesg around error time, filtered: dmesg | grep -iE "dma|drm|alloc"

    Regards,

    Shriya