TI中文支持网
TI专业的中文技术问题搜集分享网站

移植waland/weston 到AM335X 在运行的时候运行不成功,求解!!

移植的时候基本用到的库都是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 800×600@57.6, preferred, current
mode 800×600@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相关的驱动库?? 求解 

fa linag:

还是说在编译weston 的时候需要一些配置项??

fa linag:

问题已经解决

Touch Tsou:

回复 fa linag:

遇到同样的错误,使用的是最新版的ti-processor-sdk-linux-am335x-evm-04.01.00.06-Linux-x86-Install.bin里面的默认文件系统, 能说一下解决思路么?

fa linag:

回复 Touch Tsou:

你看清楚你的第一个报错是报的failed to choose EGL config 这个错误么?

fa linag:

回复 Touch Tsou:

如果是的话,你要重新编译你的weston ,修改源码里面读取返回的EGL config 配置项相关的数组值,在gl-renderer.c 里面,我发现他读取回来的值不成功,返回的是0 值。

Segmentation fault:

回复 fa linag:

你好,因为ti提供的Weston版本过旧,在运行Qt时存在一些问题,所以我同样是使用ti 官方SDK0301里面的库,来编译wayland,weston ,我的weston版本为2.0 从buildroot中获取的,在加载gl-renderer.so发生和你同样的错误:failed to choose EGL config,想问一下该如何修改源码里面读取返回的EGL config 配置项相关的数组值,非常期待你的回答

soul fly:

回复 Segmentation fault:

同问

Segmentation fault:

回复 fa linag:

按照你提供的方法,现在已经成功运行起来Weston-2.0,非常感谢。 我将config_index改为6,此时RGBA输出值为5 6 5 0。使用TI 原版文件系统 RGBA输出值为8 8 8 8,所以对于config_index的值和RGBA值的对应关系不是很明白。

fa linag:

回复 Segmentation fault:

对的,是5650,上边提到的8880写错了,这个我具体也没有了解的很清楚,应该是RGBA四种颜色位数据,TI官方的8888 运行起来显示各方面也没发现有什么错误,但是我之前试过如果选用其他的配置的话屏幕显示会出现错误。

赞(0)
未经允许不得转载:TI中文支持网 » 移植waland/weston 到AM335X 在运行的时候运行不成功,求解!!
分享到: 更多 (0)