移植的时候基本用到的库都是TI 官方SDK0301里面的库,不同的只是自己重新编译wayland、weston 。
在运行自己编译的库的时候就运行不起来提示如下:
[02:15:40.904] Using config file '/etc//weston.ini'
[02:15:40.904] Loading module '/home/pc335/wayland/install/lib/weston/drm-backend.so'
[02:15:40.918] Output repaint window is 7 ms maximum.
[02:15:40.918] initializing drm backend
[02:15:40.927] using /dev/dri/card0
[02:15:40.930] Loading module '/home/pc335/wayland/install/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
[02:15:41.026] warning: either no EGL_EXT_platform_base support or specific platform support; falling back to eglGetDisplay.
[02:15:41.054] failed to choose EGL config
[02:15:41.093] failed to initialize egl
[02:15:41.098] fatal: failed to create compositor backend
但是我只要把gl-renderer.so这个库替换成SDK0301 里面提供的就可以运行成功,其他的库什么都没变
[02:49:26.521] Using config file '/etc//weston.ini'
[02:49:26.521] Loading module '/home/pc335/wayland/install/lib/weston/drm-backend.so'
[02:49:26.535] Output repaint window is 7 ms maximum.
[02:49:26.535] initializing drm backend
[02:49:26.544] using /dev/dri/card0
[02:49:26.545] Loading module '/home/pc335/wayland/install/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
[02:49:26.574] warning: either no EGL_EXT_platform_base support or specific platform support; falling back to eglGetDisplay.
[02:49:26.595] warning: EGL_EXT_buffer_age not supported. Performance could be affected.
[02:49:26.595] Retrieving EGL client extension string failed.
[02:49:26.604] input device 'ti-tsc', /dev/input/event0 is tagged by udev as: Touchscreen
[02:49:26.604] input device 'ti-tsc', /dev/input/event0 is a touch device
[02:49:26.640] EGL version: 1.4 build 1.14@3699939 (MAIN)
[02:49:26.640] EGL vendor: Imagination Technologies
[02:49:26.640] EGL client APIs: OpenGL_ES
[02:49:26.640] 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
[02:49:26.640] GL version: OpenGL ES 2.0 build 1.14@3699939 (MAIN)
[02:49:26.640] GLSL version: OpenGL ES GLSL ES 1.00 build 1.14@3699939 (MAIN)
[02:49:26.640] GL vendor: Imagination Technologies
[02:49:26.640] GL renderer: PowerVR SGX 530
[02:49:26.640] 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
[02:49:26.641] GL ES 2 renderer features:
read-back format: RGBA
wl_shm sub-image to texture: no
EGL Wayland extension: yes
[02:49:26.641] Chosen EGL config details:
RGBA bits: 8 8 8 8
swap interval range: 1 - 1
[02:49:26.641] cursor buffers unavailable, using gl cursors
[02:49:26.641] Failed to initialize backlight
[02:49:26.643] Applying calibration: 0.991399 0.009865 -1.011108 0.007399 0.995098 -1.997589 (normalized -0.001264 -0.003329)
[02:49:26.643] Output LVDS-1, (connector 26, crtc 24)
mode 800x600@57.6, preferred, current
mode 800x600@57.6, preferred
[02:49:26.644] Compositor capabilities:
arbitrary surface rotation: yes
screen capture uses y-flip: yes
presentation clock: CLOCK_MONOTONIC, id 1
[02:49:26.644] Loading module '/home/pc335/wayland/install/lib/weston/desktop-shell.so'
[02:49:26.646] launching '/home/pc335/wayland/install/libexec/weston-keyboard'
[02:49:26.649] launching '/home/pc335/wayland/install/libexec/weston-desktop-shell'
[02:49:26.750] DRM: DPMS: failed property set for LVDS-1
PVR:(Error): [ 1350-> 1350] < gbm_pvr_bo_import():274|ERROR> GBM import function not supported [0, ]
启动的方式是 :启动GPU
unset WAYLAND_DISPLAY
weston --tty=1
gl-renderer.so 是编译weston 时候生成的,是不是在编译weston的时候再官方的交叉编译的时候需要链接上一些TI自己的GPU相关的驱动库?? 求解