Can't run HwGFX test on Linaro ubuntu image for Panda 4430.

Bug #999617 reported by Botao on 2012-05-15
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro Ubuntu
Undecided
Unassigned

Bug Description

On Hardware pack:

http://snapshots.linaro.org/precise/hwpacks/lt-panda-x11-base/50/hwpack_linaro-lt-panda-x11-base_20120514-50_armhf_supported.tar.gz

with ubuntu image:

http://snapshots.linaro.org/precise/images/ubuntu-desktop/158/linaro-precise-ubuntu-desktop-20120515-158.tar.gz

When execute "HwGFX - Hardware accelerated 3D support" test, the packages installation can be done successfully, but running failed. Refer to console log output below:

root@linaro-ubuntu-desktop:~# sudo apt-get install glmark2-es2 mesa-utils-extra
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  glmark2-data
The following NEW packages will be installed:
  glmark2-data glmark2-es2 mesa-utils-extra
0 upgraded, 3 newly installed, 0 to remove and 102 not upgraded.
Need to get 3651 kB of archives.
After this operation, 5877 kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://ppa.launchpad.net/linaro-maintainers/overlay/ubuntu/ precise/main glmark2-data all 2012.03+bzr204+17+201204111602~precise1 [3401 kB]
Get:2 http://ports.ubuntu.com/ubuntu-ports/ precise/universe mesa-utils-extra armhf 8.0.1+git20110129+d8f7d6b-0ubuntu2 [24.3 kB]
Get:3 http://ppa.launchpad.net/linaro-maintainers/overlay/ubuntu/ precise/main glmark2-es2 armhf 2012.03+bzr204+17+201204111602~precise1 [226 kB]
Fetched 3651 kB in 8s (411 kB/s)
Selecting previously unselected package glmark2-data.
(Reading database ... 170600 files and directories currently installed.)
Unpacking glmark2-data (from .../glmark2-data_2012.03+bzr204+17+201204111602~precise1_all.deb) ...
Selecting previously unselected package glmark2-es2.
Unpacking glmark2-es2 (from .../glmark2-es2_2012.03+bzr204+17+201204111602~precise1_armhf.deb) ...
Selecting previously unselected package mesa-utils-extra.
Unpacking mesa-utils-extra (from .../mesa-utils-extra_8.0.1+git20110129+d8f7d6b-0ubuntu2_armhf.deb) ...
Processing triggers for man-db ...
Setting up glmark2-data (2012.03+bzr204+17+201204111602~precise1) ...
Setting up glmark2-es2 (2012.03+bzr204+17+201204111602~precise1) ...
Setting up mesa-utils-extra (8.0.1+git20110129+d8f7d6b-0ubuntu2) ...
root@linaro-ubuntu-desktop:~# es2_info
Error: couldn't open display (null)
root@linaro-ubuntu-desktop:~# es2gears
EGLUT: failed to initialize native display
root@linaro-ubuntu-desktop:~# glmark2-es2
Error: main: Could not initialize canvas
root@linaro-ubuntu-desktop:~#

Revision history for this message
Paul Larson (pwlars) wrote :

> Error: couldn't open display (null)
Was this run from a serial or ssh session? It looks like maybe you were running this as root on a serial or ssh session, and not from the logged in account. Could you retry this and check back?

Revision history for this message
Ricardo Salveti (rsalveti) wrote :

You need to run as 'linaro' and export the display first:
root@linaro-ubuntu-desktop:~# su - linaro
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

linaro@linaro-ubuntu-desktop:~$ export DISPLAY=:0.0
linaro@linaro-ubuntu-desktop:~$ es2_info
PVR:(Error): PVRSRVOpenDCDevice: Error - 138 returned [95, /bridged_pvr_dc_glue.c]
PVR:(Warning): InitContext: ignoring buffer type CBUF_TYPE_PDS_VERT_SECONDARY_PREGEN_BUFFER [823, /eglglue.c]
EGL_VERSION = 1.4 build 1.7@840390
EGL_VENDOR = Imagination Technologies
EGL_EXTENSIONS = EGL_IMG_client_api_ogl EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_vg_parent_image EGL_KHR_fence_sync EGL_IMG_context_priority EGL_NV_post_sub_buffer
EGL_CLIENT_APIS = OpenGL_ES OpenVG
GL_VERSION: OpenGL ES 2.0 build 1.7@840390
GL_RENDERER: PowerVR SGX 540
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_EXT_multi_draw_arrays, GL_EXT_texture_format_BGRA8888,
    GL_EXT_discard_framebuffer, GL_EXT_shader_texture_lod,
    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_multisampled_render_to_texture,
    GL_TI_image_external_raw_video
linaro@linaro-ubuntu-desktop:~$ es2gears
PVR:(Error): PVRSRVOpenDCDevice: Error - 138 returned [95, /bridged_pvr_dc_glue.c]
EGL_VERSION = 1.4 build 1.7@840390
PVR:(Warning): InitContext: ignoring buffer type CBUF_TYPE_PDS_VERT_SECONDARY_PREGEN_BUFFER [823, /eglglue.c]
vertex shader info: Success.

fragment shader info: Success.

info:
547 frames in 5.0 seconds = 109.116 FPS

Marking as invalid for now, and will update the test instructions.

Changed in linaro-ubuntu:
status: New → Invalid
Revision history for this message
Botao (botao-sun) wrote :
Download full text (14.6 KiB)

After switched user to "linaro" and executed "export DISPLAY=:0.0", the "es2_info" & "es2gears" work well, but when I ran "glmark2-es2", a lot of error information was shown in my serial console.

After ran "glmark2-es2", there is a horse showed on my screen, but froze there. Below is console output I got:

##############################################
root@linaro-ubuntu-desktop:~# su - linaro
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

linaro@linaro-ubuntu-desktop:~$ export DISPLAY=:0.0
linaro@linaro-ubuntu-desktop:~$ which glmark2-es2
/usr/bin/glmark2-es2
linaro@linaro-ubuntu-desktop:~$ glmark2-es2
PVR:(Error): PVRSRVOpenDCDevice: Error - 138 returned [95, /bridged_pvr_dc_glue]
PVR:(Warning): InitContext: ignoring buffer type CBUF_TYPE_PDS_VERT_SECONDARY_P]
=======================================================
    glmark2 2012.03
=======================================================
    OpenGL Information
    GL_VENDOR: Imagination Technologies
    GL_RENDERER: PowerVR SGX 540
    GL_VERSION: OpenGL ES 2.0 build 1.7@840390
=======================================================
PVR:(Warning): InitContext: ignoring buffer type CBUF_TYPE_PDS_VERT_SECONDARY_P]
[build] use-vbo=false: FPS: 60
PVR:(Warning): InitContext: ignoring buffer type CBUF_TYPE_PDS_VERT_SECONDARY_P]
[build] use-vbo=true: FPS: 89
PVR:(Warning): InitContext: ignoring buffer type CBUF_TYPE_PDS_VERT_SECONDARY_P]
[texture] texture-filter=nearest: FPS: 108
PVR:(Warning): InitContext: ignoring buffer type CBUF_TYPE_PDS_VERT_SECONDARY_P]
[texture] texture-filter=linear: FPS: 106
PVR:(Warning): InitContext: ignoring buffer type CBUF_TYPE_PDS_VERT_SECONDARY_P]
[texture] texture-filter=mipmap: FPS: 113
PVR:(Warning): InitContext: ignoring buffer type CBUF_TYPE_PDS_VERT_SECONDARY_P]
[shading] shading=gouraud: FPS: 78
PVR:(Warning): InitContext: ignoring buffer type CBUF_TYPE_PDS_VERT_SECONDARY_P]
[shading] shading=blinn-phong-inf: FPS: 80
PVR:(Warning): InitContext: ignoring buffer type CBUF_TYPE_PDS_VERT_SECONDARY_P]
[shading] shading=phong: FPS: 68
PVR:(Warning): InitContext: ignoring buffer type CBUF_TYPE_PDS_VERT_SECONDARY_P]
[bump] bu...

Revision history for this message
Botao (botao-sun) wrote :
Download full text (3.6 KiB)

For Panda 4430 board, can't run "es2_info", "es2gears" & "glmark2-es2". Observed on hardware pack:

http://snapshots.linaro.org/precise/hwpacks/lt-panda-x11-base/163/hwpack_linaro-lt-panda-x11-base_20120708-163_armhf_supported.tar.gz

with ubuntu rootfs:

http://snapshots.linaro.org/precise/images/ubuntu-desktop/274/linaro-precise-ubuntu-desktop-20120708-274.tar.gz
########################################################
root@linaro-ubuntu-desktop:~# apt-get install glmark2-es2 mesa-utils-extra
Reading package lists... Done
Building dependency tree
Reading state information... Done
mesa-utils-extra is already the newest version.
The following NEW packages will be installed:
  glmark2-data glmark2-es2
0 upgraded, 2 newly installed, 0 to remove and 45 not upgraded.
Need to get 5166 kB of archives.
After this operation, 7406 kB of additional disk space will be used.
Get:1 http://ppa.launchpad.net/linaro-maintainers/overlay/ubuntu/ precise/main ]
Get:2 http://ppa.launchpad.net/linaro-maintainers/overlay/ubuntu/ precise/main ]
Fetched 5166 kB in 10s (503 kB/s)
Selecting previously unselected package glmark2-data.
(Reading database ... 136121 files and directories currently installed.)
Unpacking glmark2-data (from .../glmark2-data_2012.06+bzr224+21+201206211419~pr.
Selecting previously unselected package glmark2-es2.
Unpacking glmark2-es2 (from .../glmark2-es2_2012.06+bzr224+21+201206211419~prec.
Processing triggers for man-db ...
Setting up glmark2-data (2012.06+bzr224+21+201206211419~precise1) ...
Setting up glmark2-es2 (2012.06+bzr224+21+201206211419~precise1) ...
########################################################
root@linaro-ubuntu-desktop:~# su - linaro
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
########################################################
linaro@linaro-ubuntu-desktop:~$ export DISPLAY=:0.0
linaro@linaro-ubuntu-desktop:~$ es2_info
ERROR: DRI2Connect failed
Error: eglInitialize() failed
########################################################
linaro@linaro-ubuntu-desktop:~$ es2gears
ERROR: DRI2Connect failed
EGLUT: failed to initialize EGL display
########################################################
linaro@linaro-ubuntu-desktop:~$ glma...

Read more...

Revision history for this message
Botao (botao-sun) wrote :
Revision history for this message
Botao (botao-sun) wrote :

For Panda 4430 board, this test can run now - if log out after the board boots up, then select "ubuntu" option to log in. However, there are many errors occurred. Observed on hardware pack:

http://snapshots.linaro.org/precise/hwpacks/lt-panda-x11-base/197/hwpack_linaro-lt-panda-x11-base_20120723-197_armhf_supported.tar.gz

with ubuntu rootfs image:

http://snapshots.linaro.org/precise/images/ubuntu-desktop/305/linaro-precise-ubuntu-desktop-20120723-305.tar.gz

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers