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.

Linux/AM3358: AM335x SGX driver ti-sgx-ddk 1.14.3699939

Part Number: AM3358


Tool/software: Linux

Installing SGX driver ti-sgx-ddk 1.14.3699939 on a custom board, I'm not able to start eglinfo correctly,
always getting error :

Creating Window surface..
PVR:(Error): WSEGL_CreateWindowDrawable: Couldn't set CRTC: Invalid argument [0, ]
Unable to create surface
    egl error 'EGL_BAD_ALLOC' (0x3003)

Stucking with this issue for several days, any advice is highly appreciated.

Prodecure for starting eglinfo is like this :

~# insmod /lib/modules/4.4.26-rt33/extra/pvrsrvkm.ko
[drm] Initialized pvr 1.14.3699939 20110701 on minor 1
~# pvrsrvctl --no-module --start
PVR_K: UM DDK-(3699939) and KM DDK-(3699939) match. [ OK ]
~# insmod /lib/modules/4.4.26-rt33/extra/bc_example.ko



~# eglinfo

eglGetConfigs():
======================================================================

**********************************
EGL config number: 0
EGL vendor string: Imagination Technologies
EGL version string: 1.4 build 1.14@3699939 (MAIN)
EGL extensions: EGL_IMG_client_api_ogl EGL_KHR_image EGL_KHR_image_base EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_vg_parent_image EGL_IMG_cl_image EGL_KHR_fence_sync EGL_IMG_context_priority EGL_IMG_hibernate_process EGL_IMG_image_plane_attribs EGL_KHR_surfaceless_context EGL_KHR_wait_sync EGL_KHR_create_context EGL_WL_bind_wayland_display EGL_EXT_image_dma_buf_import
EGL client APIs are: OpenGL_ES

EGL config Attributes:
 EGL_CONFIG_ID = 0x1
 EGL_BUFFER_SIZE = 0x20
 EGL_RED_SIZE = 0x8
 EGL_GREEN_SIZE = 0x8
 EGL_BLUE_SIZE = 0x8
 EGL_LUMINANCE_SIZE = 0x0
 EGL_ALPHA_SIZE = 0x8
 EGL_ALPHA_MASK_SIZE = 0x0
 EGL_BIND_TO_TEXTURE_RGB = 0x1
 EGL_BIND_TO_TEXTURE_RGBA = 0x1
 EGL_COLOR_BUFFER_TYPE = 0x308e
 EGL_CONFIG_CAVEAT = 0x3038
 EGL_CONFORMANT = 0x1
 EGL_DEPTH_SIZE = 0x18
 EGL_LEVEL = 0x0
 EGL_MAX_PBUFFER_WIDTH = 0x800
 EGL_MAX_PBUFFER_HEIGHT = 0x800
 EGL_MAX_PBUFFER_PIXELS = 0x400000
 EGL_MAX_SWAP_INTERVAL = 0xa
 EGL_MIN_SWAP_INTERVAL = 0x1
 EGL_NATIVE_RENDERABLE = 0x0
 EGL_NATIVE_VISUAL_ID = 0x0
 EGL_NATIVE_VISUAL_TYPE = 0x0
 EGL_RENDERABLE_TYPE = 0x1  EGL_OPENGL_ES_BIT
 EGL_SAMPLE_BUFFERS = 0x0
 EGL_SAMPLES = 0x0
 EGL_STENCIL_SIZE = 0x8
 EGL_SURFACE_TYPE = 0x5  EGL_PBUFFER_BIT  EGL_WINDOW_BIT
 EGL_TRANSPARENT_TYPE = 0x3038
 EGL_TRANSPARENT_RED_VALUE = 0x0
 EGL_TRANSPARENT_GREEN_VALUE = 0x0
 EGL_TRANSPARENT_BLUE_VALUE = 0x0

Creating Window surface..
PVR:(Error): WSEGL_CreateWindowDrawable: Couldn't set CRTC: Invalid argument [0, ]
Unable to create surface
    egl error 'EGL_BAD_ALLOC' (0x3003)