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/PROCESSOR-SDK-AM437X: SGX Userspace

Part Number: PROCESSOR-SDK-AM437X


Tool/software: Linux

Hi,all.

My custom board had done as follows:

[  122.848338] [drm] Initialized pvr 1.14.3699939 20110701 on minor 1
[  135.566159] PVR_K: UM DDK-(3699939) and KM DDK-(3699939) match. [ OK ]

But when I ran gles1test1, I got:

libEGL warning: DRI3: Screen seems not DRI3 capable
libEGL warning: DRI2: failed to authenticate
'eglCreateWindowSurface' returned egl error 'EGL_BAD_NATIVE_WINDOW' (0x300b)

modetest:

trying to open device 'i915'...failed
trying to open device 'amdgpu'...failed
trying to open device 'radeon'...failed
trying to open device 'nouveau'...failed
trying to open device 'vmwgfx'...failed
trying to open device 'omapdrm'...done
Encoders:
id	crtc	type	possible crtcs	possible clones	
30	33	TMDS	0x00000001	0x00000000

Connectors:
id	encoder	status		name		size (mm)	modes	encoders
31	30	connected	unknown-1      	0x0		1	30
  modes:
	name refresh (Hz) hdisp hss hse htot vdisp vss vse vtot)
  1024x768 73 1024 1174 1224 1344 768 780 786 816 80000 flags: nhsync, nvsync; type: preferred, driver
  props:
	1 EDID:
		flags: immutable blob
		blobs:

		value:
	2 DPMS:
		flags: enum
		enums: On=0 Standby=1 Suspend=2 Off=3
		value: 0

CRTCs:
id	fb	pos	size
33	40	(0,0)	(1024x768)
   0 1024 1174 1224 1344 768 780 786 816 80000 flags: nhsync, nvsync; type: 
  props:
	26 trans-key-mode:
		flags: enum
		enums: disable=0 gfx-dst=1 vid-src=2
		value: 0
	27 trans-key:
		flags: range
		values: 0 16777215
		value: 0
	28 background:
		flags: range
		values: 0 16777215
		value: 0
	29 alpha_blender:
		flags: range
		values: 0 1
		value: 0
	23 zorder:
		flags: range
		values: 0 3
		value: 0

Planes:
id	crtc	fb	CRTC x,y	x,y	gamma size	possible crtcs
32	33	40	0,0		0,0	0       	0x00000001
  formats: RG16 RX12 AR12 RG24 RX24 XR24 RA24 AR24
  props:
	5 type:
		flags: immutable enum
		enums: Overlay=0 Primary=1 Cursor=2
		value: 1
	23 zorder:
		flags: range
		values: 0 3
		value: 0
	24 global_alpha:
		flags: range
		values: 0 255
		value: 255
	25 pre_mult_alpha:
		flags: range
		values: 0 1
		value: 0
34	0	0	0,0		0,0	0       	0x00000001
  formats: RG16 RX12 RG24 XR24 YUYV UYVY
  props:
	5 type:
		flags: immutable enum
		enums: Overlay=0 Primary=1 Cursor=2
		value: 0
	23 zorder:
		flags: range
		values: 0 3
		value: 1
	24 global_alpha:
		flags: range
		values: 0 255
		value: 255
	25 pre_mult_alpha:
		flags: range
		values: 0 1
		value: 0
35	0	0	0,0		0,0	0       	0x00000001
  formats: RG16 RX12 AR12 RG24 RX24 XR24 RA24 AR24 YUYV UYVY
  props:
	5 type:
		flags: immutable enum
		enums: Overlay=0 Primary=1 Cursor=2
		value: 0
	23 zorder:
		flags: range
		values: 0 3
		value: 2
	24 global_alpha:
		flags: range
		values: 0 255
		value: 255
	25 pre_mult_alpha:
		flags: range
		values: 0 1
		value: 0

Frame buffers:
id	size	pitch

and glxinfo

libEGL warning: DRI3: Screen seems not DRI3 capable
libEGL warning: DRI2: failed to authenticate

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

**********************************
EGL config number: 0
EGL vendor string: Mesa Project
EGL version string: 1.4 (DRI2)
EGL extensions: EGL_KHR_config_attribs EGL_KHR_create_context EGL_KHR_get_all_proc_addresses EGL_KHR_gl_colorspace EGL_KHR_no_config_context EGL_KHR_reusable_sync EGL_KHR_surfaceless_context EGL_MESA_configless_context 
EGL client APIs are: OpenGL 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 = 0x4d 
 EGL_DEPTH_SIZE = 0x0 
 EGL_LEVEL = 0x0 
 EGL_MAX_PBUFFER_WIDTH = 0x1000 
 EGL_MAX_PBUFFER_HEIGHT = 0x1000 
 EGL_MAX_PBUFFER_PIXELS = 0x0 
 EGL_MAX_SWAP_INTERVAL = 0x0 
 EGL_MIN_SWAP_INTERVAL = 0x0 
 EGL_NATIVE_RENDERABLE = 0x1 
 EGL_NATIVE_VISUAL_ID = 0x21 
 EGL_NATIVE_VISUAL_TYPE = 0x4 
 EGL_RENDERABLE_TYPE = 0x4d  EGL_OPENGL_ES2_BIT  EGL_OPENGL_ES_BIT  EGL_OPENGL_BIT 
 EGL_SAMPLE_BUFFERS = 0x0 
 EGL_SAMPLES = 0x0 
 EGL_STENCIL_SIZE = 0x0 
 EGL_SURFACE_TYPE = 0x407  EGL_PBUFFER_BIT  EGL_PIXMAP_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..
Unable to create surface
    egl error 'EGL_BAD_NATIVE_WINDOW' (0x300b)

How to solve it?

Thanks