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.

how can we make sure that gralloc module has been loaded in the android system(beagle bone black custom board)

Other Parts Discussed in Thread: DA8XX

Hi all.

Here is the logcat output from my custom bbb board log, using Android 4.2JB(Kernel 3.2).

As per below log looks like gralloc module is not loaded. Please anyone can comment on the same.

*************************************************************************************************************************************************

W/InterfaceController( 72): Warning (Cannot load library: load_library(linker.cpp:745): library "/system/lib/libnetcmdiface.so" not found) while opening the net interface command library
D/Vold ( 69): Volume sdcard state changing 0 (No-Media) -> 2 (Pending)
D/Vold ( 69): Volume sdcard state changing 2 (Pending) -> 1 (Idle-Unmounted)
I/SurfaceFlinger( 74): SurfaceFlinger is starting
I/SurfaceFlinger( 74): SurfaceFlinger's main thread ready to run. Initializing graphics H/W...
D/libEGL ( 74): loaded /system/lib/egl/libEGL_POWERVR_SGX530_125.so
D/libEGL ( 74): loaded /system/lib/egl/libGLESv1_CM_POWERVR_SGX530_125.so
D/libEGL ( 74): loaded /system/lib/egl/libGLESv2_POWERVR_SGX530_125.so
E/uim-sysfs( 71): uim: Inside st_uart_config
E/uim-sysfs( 71): uim:install set to 1
E/uim-sysfs( 71): uim: Inside set_baud_rate
E/uim-sysfs( 71): uim: set_baud_rate() done
E/uim-sysfs( 71): uim: Inside read_firmware_version
E/uim-sysfs( 71): uim: Inside read_hci_event
E/uim-sysfs( 71): uim: read_hci_event
E/SurfaceFlinger( 74): hwcomposer module not found
W/SurfaceFlinger( 74): getting VSYNC period from fb HAL: 14437306
W/SurfaceFlinger( 74): no suitable EGLConfig found, trying without EGL_FRAMEBUFFER_TARGET_ANDROID
I/SurfaceFlinger( 74): EGL informations:
I/SurfaceFlinger( 74): vendor : Android
I/SurfaceFlinger( 74): version : 1.4 Android META-EGL
I/SurfaceFlinger( 74): extensions: 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_fence_sync EGL_ANDROID_image_native_buffer
I/SurfaceFlinger( 74): Client API: OpenGL_ES
I/SurfaceFlinger( 74): EGLSurface: 8-8-8-8, config=0x2
I/SurfaceFlinger( 74): OpenGL ES informations:
I/SurfaceFlinger( 74): vendor : Imagination Technologies
I/SurfaceFlinger( 74): renderer : PowerVR SGX 530
I/SurfaceFlinger( 74): version : OpenGL ES-CM 1.1
I/SurfaceFlinger( 74): extensions: GL_EXT_debug_marker GL_OES_byte_coordinates GL_OES_fixed_point GL_OES_single_precision GL_OES_matrix_get GL_OES_read_format GL_OES_compressed_paletted_texture GL_OES_point_sprite GL_OES_point_size_array GL_OES_matrix_palette GL_OES_draw_texture GL_OES_query_matrix GL_OES_texture_env_crossbar GL_OES_texture_mirrored_repeat GL_OES_texture_cube_map GL_OES_blend_subtract GL_OES_blend_func_separate GL_OES_blend_equation_separate GL_OES_stencil_wrap GL_OES_extended_matrix_palette GL_OES_framebuffer_object GL_OES_rgb8_rgba8 GL_OES_depth24 GL_OES_stencil8 GL_OES_compressed_ETC1_RGB8_texture GL_OES_mapbuffer GL_OES_EGL_image GL_OES_EGL_image_external GL_EXT_multi_draw_arrays GL_OES_required_internalformat GL_IMG_read_format GL_IMG_texture_compression_pvrtc GL_IMG_texture_format_BGRA8888 GL_EXT_texture_format_BGRA8888 GL_OES_egl_sync GL_IMG_vertex_array_object GL_APPLE_texture_2D_limited_npot
I/SurfaceFlinger( 74): GL_MAX_TEXTURE_SIZE = 2048
I/SurfaceFlinger( 74): GL_MAX_VIEWPORT_DIMS = 2048 x 2048

************************************************************************************************************************************************

Thanks in advance

  • Hello,

    We tested with our Beaglebone Black and we have a similar logcat.
    One line is interesting here: "E/SurfaceFlinger( 74): hwcomposer module not found". Since the hwcomposer is supposed to initialize gralloc, it seems that gralloc is not loaded.
  • Hi ,

    Thanks for the reply.
    Have a look in the below link. e2e.ti.com/.../264290

    With out hwcomposer gralloc messages are there.

    I/SurfaceFlinger( 83): SurfaceFlinger is starting
    I/SurfaceFlinger( 83): SurfaceFlinger's main thread ready to run. Initializing graphics H/W...
    D/libEGL ( 83): Emulator without GPU support detected. Fallback to software renderer.
    D/libEGL ( 83): loaded /system/lib/egl/libGLES_android.so
    I/gralloc ( 83): using (fd=14)
    I/gralloc ( 83): id = DA8xx FB Drv
    I/gralloc ( 83): xres = 800 px
    I/gralloc ( 83): yres = 600 px
    I/gralloc ( 83): xres_virtual = 800 px
    I/gralloc ( 83): yres_virtual = 1200 px
    I/gralloc ( 83): bpp = 32
    I/gralloc ( 83): r = 16:8
    I/gralloc ( 83): g = 8:8
    I/gralloc ( 83): b = 0:8
    I/gralloc ( 83): width = 127 mm (160.000000 dpi)
    I/gralloc ( 83): height = 95 mm (160.421051 dpi)
    I/gralloc ( 83): refresh rate = 66.01 Hz
    I/gralloc ( 83): fb_device_open: format 2
    E/SurfaceFlinger( 83): hwcomposer module not found
    W/SurfaceFlinger( 83): getting VSYNC period from fb HAL: 15149678
    W/SurfaceFlinger( 83): no suitable EGLConfig found, trying without EGL_FRAMEBUFFER_TARGET_ANDROID
    W/SurfaceFlinger( 83): no suitable EGLConfig found, trying without EGL_RECORDABLE_ANDROID
    W/SurfaceFlinger( 83): EGL_SLOW_CONFIG selected!
    I/SurfaceFlinger( 83): EGL informations:
    I/SurfaceFlinger( 83): vendor : Android
    I/SurfaceFlinger( 83): version : 1.4 Android META-EGL
    I/SurfaceFlinger( 83): extensions: EGL_KHR_image_base EGL_KHR_fence_sync EGL_ANDROID_image_native_buffer
    I/SurfaceFlinger( 83): Client API: OpenGL_ES
    I/SurfaceFlinger( 83): EGLSurface: 8-8-8-0, config=0x2
    I/SurfaceFlinger( 83): OpenGL ES informations:
    I/SurfaceFlinger( 83): vendor : Android
    I/SurfaceFlinger( 83): renderer : Android PixelFlinger 1.4
    I/SurfaceFlinger( 83): version : OpenGL ES-CM 1.0
    I/SurfaceFlinger( 83): extensions: GL_EXT_debug_marker GL_OES_byte_coordinates GL_OES_fixed_point GL_OES_single_precision GL_OES_read_format GL_OES_compressed_paletted_texture GL_OES_draw_texture GL_OES_matrix_get GL_OES_query_matrix GL_OES_EGL_image GL_OES_EGL_sync GL_OES_compressed_ETC1_RGB8_texture GL_ARB_texture_compression GL_ARB_texture_non_power_of_two GL_ANDROID_user_clip_plane GL_ANDROID_vertex_buffer_object GL_ANDROID_generate_mipmap
    I/SurfaceFlinger( 83): GL_MAX_TEXTURE_SIZE = 4096
    I/SurfaceFlinger( 83): GL_MAX_VIEWPORT_DIMS = 4096 x 4096
    D/SurfaceFlinger( 83): Screen acquired, type=0 flinger=0x408ce318



    Regards
    ashok
  • Hello,

    You could try to run the "strace" and "lsof" utilities on the library (inside "/system/lib/hw/gralloc.omap3.so").
    lsof will help you to see if this file is opened on your system, while strace will help you to find if a sytem call is addressed to the gralloc library.
    What do you need that for?

    Also, the log you are showing is from Angstrom running a 3.8 kernel, while Android from TI uses a 3.2 kernel; it is possible that they use a different version of gralloc, or one with more debug messages.