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: Weston calibrator fails

Genius 13655 points
Part Number: AM3358


Hello Champs,

Customer used SDK030, he could use the weston-calibrator on TI EVM board, but failed on his own board. Attached is the log. 

root@am335x-evm:~# modetest
trying to open device 'i915'...failed
trying to open device 'radeon'...failed
trying to open device 'nouveau'...failed
trying to open device 'vmwgfx'...failed
trying to open device 'omapdrm'...failed
trying to open device 'exynos'...failed
trying to open device 'tilcdc'...done
Encoders:
id      crtc    type    possible crtcs  possible clones
25      24      LVDS    0x00000001      0x00000000

Connectors:
id      encoder status          name            size (mm)       modes   encoders
26      25      connected       LVDS-1          0x0             1       25
  modes:
        name refresh (Hz) hdisp hss hse htot vdisp vss vse vtot)
  800x600 60 800 840 968 1056 600 601 604 628 flags: phsync, pvsync; 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
24      32      (0,0)   (800x600)
  800x600 60 800 840 968 1056 600 601 604 628 flags: phsync, pvsync; type: preferred, driver
  props:

Planes:
id      crtc    fb      CRTC x,y        x,y     gamma size      possible crtcs
23      24      32      0,0             0,0     0               0x00000001
  formats: XR24 AR24
  props:
        5 type:
                flags: immutable enum
                enums: Overlay=0 Primary=1 Cursor=2
                value: 1

Frame buffers:
id      size    pitch

root@am335x-evm:~#


============================================================================================================================================================

root@am335x-evm:~# cat /var/log/weston.log
Date: 2017-01-16 UTC
[01:43:19.653] weston 1.9.0
               http://wayland.freedesktop.org
               Bug reports to: https://bugs.freedesktop.org/enter_bug.cgi?product=Wayland&component=weston&version=1.9.0
               Build: 1.8.93-2-gb05cdb8 configure.ac: bump to version 1.9.0 for the official release (2015-09-21 18:11:26 -0700)
[01:43:19.653] OS: Linux, 4.4.19-rt25-gf572d285f0, #5 PREEMPT RT Thu Jan 5 11:24:05 CST 2017, armv7l
[01:43:19.660] Using config file '/etc//weston.ini'
[01:43:19.675] Loading module '/usr/lib/weston/drm-backend.so'
[01:43:19.754] Output repaint window is 7 ms maximum.
[01:43:19.754] initializing drm backend
[01:43:19.799] using /dev/dri/card0
[01:43:19.812] Loading module '/usr/lib/weston/gl-renderer.so'
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
[01:43:19.936] warning: either no EGL_EXT_platform_base support or specific platform support; falling back to eglGetDisplay.
[01:43:19.994] warning: EGL_EXT_buffer_age not supported. Performance could be affected.
[01:43:19.994] Retrieving EGL client extension string failed.
[01:43:20.010] input device 'ti-tsc', /dev/input/event0 is tagged by udev as: Touchscreen
[01:43:20.010] input device 'ti-tsc', /dev/input/event0 is a touch device
[01:43:20.065] input device 'USB OPTICAL MOUSE ', /dev/input/event1 is tagged by udev as: Mouse
[01:43:20.065] input device 'USB OPTICAL MOUSE ', /dev/input/event1 is a pointer caps
[01:43:20.159] EGL version: 1.4 build 1.14@3699939 (MAIN)
[01:43:20.159] EGL vendor: Imagination Technologies
[01:43:20.159] EGL client APIs: OpenGL_ES
[01:43:20.159] 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
[01:43:20.159] GL version: OpenGL ES 2.0 build 1.14@3699939 (MAIN)
[01:43:20.159] GLSL version: OpenGL ES GLSL ES 1.00 build 1.14@3699939 (MAIN)
[01:43:20.159] GL vendor: Imagination Technologies
[01:43:20.159] GL renderer: PowerVR SGX 530
[01:43:20.159] GL extensions: GL_OES_rgb8_rgba8 GL_OES_depth24
               GL_OES_vertex_half_float GL_OES_texture_float
               GL_OES_texture_half_float GL_OES_element_index_uint
               GL_OES_mapbuffer GL_OES_fragment_precision_high
               GL_OES_compressed_ETC1_RGB8_texture GL_OES_EGL_image
               GL_OES_EGL_image_external GL_OES_required_internalformat
               GL_OES_depth_texture GL_OES_get_program_binary
               GL_OES_packed_depth_stencil GL_OES_standard_derivatives
               GL_OES_vertex_array_object GL_OES_egl_sync
               GL_OES_surfaceless_context GL_EXT_discard_framebuffer
               GL_EXT_blend_minmax GL_EXT_multi_draw_arrays
               GL_EXT_multisampled_render_to_texture GL_EXT_shader_texture_lod
               GL_EXT_texture_format_BGRA8888 GL_EXT_texture_rg
               GL_IMG_shader_binary GL_IMG_texture_compression_pvrtc
               GL_IMG_texture_npot GL_IMG_texture_format_BGRA8888
               GL_IMG_read_format GL_IMG_program_binary
               GL_IMG_uniform_buffer_object
               GL_IMG_multisampled_render_to_texture GL_KHR_debug
[01:43:20.160] GL ES 2 renderer features:
               read-back format: RGBA
               wl_shm sub-image to texture: no
               EGL Wayland extension: yes
[01:43:20.160] Chosen EGL config details:
               RGBA bits: 8 8 8 8
               swap interval range: 1 - 1
[01:43:20.160] cursor buffers unavailable, using gl cursors
[01:43:20.160] Failed to initialize backlight
[01:43:20.162] Applying calibration: 0.991399 0.009865 -1.011108 0.007399 0.995098 -1.997589 (normalized -0.001264 -0.003329)
[01:43:20.162] Output LVDS-1, (connector 26, crtc 24)
               mode 800x600@60.3, preferred, current
               mode 800x600@60.3, preferred
[01:43:20.179] Compositor capabilities:
               arbitrary surface rotation: yes
               screen capture uses y-flip: yes
               presentation clock: CLOCK_MONOTONIC, id 1
[01:43:20.186] Loading module '/usr/lib/weston/desktop-shell.so'
[01:43:20.193] launching '/usr/libexec/weston-keyboard'
[01:43:20.206] launching '/usr/libexec/weston-desktop-shell'
[01:43:20.562] Warning: computed repaint delay is insane: -24839 msec
root@am335x-evm:~#


The hardware of his own board is very similar to TI EVM except for some pins. He could use the ts_calibrate on his own board. 

Thanks.

Rgds
Shine