I use the imx6 solo platform(sabresd board) with jb 4.2.2_1.1.0 release. But andorid system bootup without display anything on the LVDS.
Ths logcat msg as below:
--------- beginning of /dev/log/main
D/ ( 2244): init_sensors
I/installd( 2241): installd firing up
E/cutils ( 2241): Failed to read /data/.layout_version: No such file or directory
D/installd( 2241): Upgrading /data/media for multi-user
D/installd( 2241): Upgrading to shared /data/media/obb
I/DEBUG ( 2235): debuggerd: Jul 22 2013 16:24:08
--------- beginning of /dev/log/system
I/Vold ( 2233): Vold 2.1 (the revenge) firing up
I/Netd ( 2234): Netd 1.0 starting
W/InterfaceController( 2234): 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 ( 2233): Volume udisk state changing -1 (Initializing) -> 0 (No-Media)
D/Vold ( 2233): Volume extsd state changing -1 (Initializing) -> 0 (No-Media)
D/ ( 2244): couldn't find 'mma845x' input device
D/MagDaemon( 2244): inital sensor error
I/SurfaceFlinger( 2236): SurfaceFlinger is starting
I/SurfaceFlinger( 2236): SurfaceFlinger's main thread ready to run. Initializing graphics H/W...
D/libEGL ( 2236): loaded /system/lib/egl/libEGL_VIVANTE.so
D/libEGL ( 2236): loaded /system/lib/egl/libGLESv1_CM_VIVANTE.so
D/libEGL ( 2236): loaded /system/lib/egl/libGLESv2_VIVANTE.so
W/imx6.gralloc( 2236): 32bpp setting of Framebuffer catched!
W/imx6.gralloc( 2236): using (fd=15)
W/imx6.gralloc( 2236): id = DISP3 BG - DI1
W/imx6.gralloc( 2236): xres = 1024 px
W/imx6.gralloc( 2236): yres = 600 px
W/imx6.gralloc( 2236): xres_virtual = 1024 px
W/imx6.gralloc( 2236): yres_virtual = 1920 px
W/imx6.gralloc( 2236): bpp = 32
W/imx6.gralloc( 2236): r = 0:8
W/imx6.gralloc( 2236): g = 8:8
W/imx6.gralloc( 2236): b = 16:8
W/imx6.gralloc( 2236): width = 163 mm (159.568100 dpi)
W/imx6.gralloc( 2236): height = 95 mm (160.421051 dpi)
W/imx6.gralloc( 2236): refresh rate = 75.80 Hz
I/FslHwcomposer( 2236): fb0 is ldb
I/FslHwcomposer( 2236): device
I/FslHwcomposer( 2236): fb1 is overlay device
W/FslHwcomposer( 2236): open /sys/class/graphics/fb2 failed
W/FslHwcomposer( 2236): open /sys/class/graphics/fb3 failed
W/FslHwcomposer( 2236): open /sys/class/graphics/fb4 failed
W/FslHwcomposer( 2236): open /sys/class/graphics/fb5 failed
I/FslHwcomposer( 2236): hwcomposer: open framebuffer fb0
I/v_hwc ( 2236): Detected display /dev/graphics/fb0
I/v_hwc ( 2236): xres = 1024 px
I/v_hwc ( 2236): yres = 600 px
I/v_hwc ( 2236): xres_virtual = 1024 px
I/v_hwc ( 2236): yres_virtual = 1920 px
I/v_hwc ( 2236): width = -1 mm (0.0 dpi)
I/v_hwc ( 2236): height = -1 mm (0.0 dpi)
I/v_hwc ( 2236): refresh rate = 75.0 Hz
E/v_hwc ( 2236): open /dev/graphics/fb0 failed
I/v_hwc ( 2236): Vivante HWComposer v2.4
I/v_hwc ( 2236): Device: 0x41bec2a0
I/v_hwc ( 2236): Separated 2D: YES
I/v_hwc ( 2236): 2D PE20: YES
I/v_hwc ( 2236): Multi-source blit: NO
I/v_hwc ( 2236): Multi-source blit Ex: NO
I/v_hwc ( 2236): OPF/YUV blit/Tiling : NO
I/v_hwc ( 2236): Filter stretch : YES
I/FslHwcomposer( 2236): hwc_device_open,367
I/SurfaceFlinger( 2236): Using composer version 1.1
W/SurfaceFlinger( 2236): no suitable EGLConfig found, trying without EGL_FRAMEBUFFER_TARGET_ANDROID
E/SurfaceFlinger( 2236): HWComposer: framebufferTarget is null
E/SurfaceFlinger( 2236): HWComposer: framebufferTarget is null
W/GraphicBufferAllocator( 2236): WOW! gralloc alloc failed, waiting for pending frees!
D/AndroidRuntime( 2237):
D/AndroidRuntime( 2237): >>>>>> AndroidRuntime START com.android.internal.os.ZygoteInit <<<<<<
D/AndroidRuntime( 2237): CheckJNI is ON
I/AndroidRuntime( 2237): JNI options: '-Xjniopts:warnonly'
E/SurfaceFlinger( 2236): HWComposer: framebufferTarget is null
E/SurfaceFlinger( 2236): HWComposer: framebufferTarget is null
I/SurfaceFlinger( 2236): EGL informations:
I/SurfaceFlinger( 2236): vendor : Android
I/SurfaceFlinger( 2236): version : 1.4 Android META-EGL
I/SurfaceFlinger( 2236): extensions: EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap EGL_KHR_gl_texture_2D_image EGL_KHR_gl_renderbuffer_image EGL_KHR_fence_sync EGL_ANDROID_image_native_buffer
I/SurfaceFlinger( 2236): Client API: OpenGL_ES
I/SurfaceFlinger( 2236): EGLSurface: 8-8-8-8, config=0x40879d38
I/SurfaceFlinger( 2236): OpenGL ES informations:
I/SurfaceFlinger( 2236): vendor : Vivante Corporation
I/SurfaceFlinger( 2236): renderer : GC880 Graphics Engine
I/SurfaceFlinger( 2236): version : OpenGL ES-CM 1.1
I/SurfaceFlinger( 2236): extensions: GL_EXT_debug_marker GL_OES_blend_equation_separate GL_OES_blend_func_separate GL_OES_blend_subtract GL_OES_byte_coordinates GL_OES_compressed_ETC1_RGB8_texture GL_OES_compressed_paletted_texture GL_OES_draw_texture GL_OES_extended_matrix_palette GL_OES_fixed_point GL_OES_framebuffer_object GL_OES_matrix_get GL_OES_matrix_palette GL_OES_point_size_array GL_OES_point_sprite GL_OES_query_matrix GL_OES_read_format GL_OES_single_precision GL_OES_stencil_wrap GL_OES_texture_cube_map GL_OES_texture_mirrored_repeat GL_OES_EGL_image GL_OES_depth24 GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_mapbuffer GL_OES_rgb8_rgba8 GL_OES_stencil1 GL_OES_stencil4 GL_OES_stencil8 GL_OES_texture_npot GL_OES_vertex_half_float GL_OES_packed_depth_stencil GL_EXT_texture_format_BGRA8888 GL_IMG_read_format GL_IMG_user_clip_plane GL_APPLE_texture_2D_limited_npot GL_EXT_texture_lod_bias GL_EXT_blend_minmax GL_EXT_read_format_bgra GL_EXT_multi_draw_arrays GL_OES_EGL_sync GL_APPLE_texture_format_BGRA8888 GL_APPLE_te
I/SurfaceFlinger( 2236): GL_MAX_TEXTURE_SIZE = 8192
I/SurfaceFlinger( 2236): GL_MAX_VIEWPORT_DIMS = 8192 x 8192
D/SurfaceFlinger( 2236): Screen acquired, type=0 flinger=0x41beb318
D/libEGL ( 2322): loaded /system/lib/egl/libEGL_VIVANTE.so
D/libEGL ( 2322): loaded /system/lib/egl/libGLESv1_CM_VIVANTE.so
D/libEGL ( 2322): loaded /system/lib/egl/libGLESv2_VIVANTE.so
I/mediaserver( 2239): ServiceManager: 0x41fb1000
I/AudioFlinger( 2239): Using default 3000 mSec as standby time.
I/CameraService( 2239): CameraService started (pid=2239)
E/BufferQueue( 2236): [BootAnimation] dequeueBuffer: can't dequeue multiple buffers without setting the buffer count
......
The ENV:
1. build with 32bit linux;
2. imx6 solo sabresd board;
3. /dev/graphics/*: 666;
4. boot args: default(fb0 & ldb).
LDB driver registered success from the dmesg.
logcat shows: "E/v_hwc ( 2236): open /dev/graphics/fb0 failed"
Could anyone help me?
Thanks
Same problem over here.
cat /dev/urandom > /dev/graphics/fb0 is working, but hwcomposer can't open the device.
I would appreciate any help :-)
thanks a lot
Ok just found the bug:
in your kernel command line, get rid of all the "video=mxcfbx:off" with x = 1, 2....
Then the cat /dev/urandom > /dev/graphics/fb0 is gone.
It took me a day and half to find this stupid bug.
Hope it helps.
thanks a lot! the opening problem is gone.
the logcat now looks like this, and still no output:
--------- beginning of /dev/log/system
I/Vold ( 2019): Vold 2.1 (the revenge) firing up
E/Vold ( 2019): Error reading configuration (No such file or directory)... continuing anyways
--------- beginning of /dev/log/main
W/Resources( 2506): Preloaded drawable resource #0x10801f8 (android:drawable/btn_toggle_on_normal_holo_light) that varies with configuration!!
W/Resources( 2506): Preloaded drawable resource #0x10801f7 (android:drawable/btn_toggle_on_normal_holo_dark) that varies with configuration!!
W/Resources( 2506): Preloaded drawable resource #0x10801f6 (android:drawable/btn_toggle_on_focused_holo_light) that varies with configuration!!
W/Resources( 2506): Preloaded drawable resource #0x10801f5 (android:drawable/btn_toggle_on_focused_holo_dark) that varies with configuration!!
W/Resources( 2506): Preloaded drawable resource #0x10801f4 (android:drawable/btn_toggle_on_disabled_holo_light) that varies with configuration!!
W/Resources( 2506): Preloaded drawable resource #0x10801f3 (android:drawable/btn_toggle_on_disabled_holo_dark) that varies with configuration!!
W/Resources( 2506): Preloaded drawable resource #0x10801f2 (android:drawable/btn_toggle_on_disabled_focused_holo_light) that varies with configuration!!
W/Resources( 2506): Preloaded drawable resource #0x10801f1 (android:drawable/btn_toggle_on_disabled_focused_holo_dark) that varies with configuration!!
I/SurfaceFlinger( 2510): SurfaceFlinger is starting
I/SurfaceFlinger( 2510): SurfaceFlinger's main thread ready to run. Initializing graphics H/W...
D/libEGL ( 2510): loaded /system/lib/egl/libEGL_VIVANTE.so
D/libEGL ( 2510): loaded /system/lib/egl/libGLESv1_CM_VIVANTE.so
D/libEGL ( 2510): loaded /system/lib/egl/libGLESv2_VIVANTE.so
W/imx6.gralloc( 2510): 32bpp setting of Framebuffer catched!
W/imx6.gralloc( 2510): using (fd=16)
W/imx6.gralloc( 2510): id = DISP3 BG
W/imx6.gralloc( 2510): xres = 800 px
W/imx6.gralloc( 2510): yres = 480 px
W/imx6.gralloc( 2510): xres_virtual = 800 px
W/imx6.gralloc( 2510): yres_virtual = 1536 px
W/imx6.gralloc( 2510): bpp = 32
W/imx6.gralloc( 2510): r = 0:8
W/imx6.gralloc( 2510): g = 8:8
W/imx6.gralloc( 2510): b = 16:8
W/imx6.gralloc( 2510): width = 127 mm (160.000000 dpi)
W/imx6.gralloc( 2510): height = 76 mm (160.421051 dpi)
W/imx6.gralloc( 2510): refresh rate = 59.48 Hz
D/dalvikvm( 2506): GC_EXPLICIT freed 54K, 10% free 2289K/2524K, paused 1ms+2ms, total 19ms
W/Resources( 2506): Preloaded drawable resource #0x10801ef (android:drawable/btn_toggle_off_pressed_holo_light) that varies with configuration!!
W/Resources( 2506): Preloaded drawable resource #0x10801ee (android:drawable/btn_toggle_off_pressed_holo_dark) that varies with configuration!!
W/Resources( 2506): Preloaded drawable resource #0x10801ed (android:drawable/btn_toggle_off_normal_holo_light) that varies with configuration!!
W/Resources( 2506): Preloaded drawable resource #0x10801ec (android:drawable/btn_toggle_off_normal_holo_dark) that varies with configuration!!
W/Resources( 2506): Preloaded drawable resource #0x10801eb (android:drawable/btn_toggle_off_focused_holo_light) that varies with configuration!!
W/Resources( 2506): Preloaded drawable resource #0x10801ea (android:drawable/btn_toggle_off_focused_holo_dark) that varies with configuration!!
I/FslHwcomposer( 2510): fb0 is ldb
I/FslHwcomposer( 2510): device
I/FslHwcomposer( 2510): fb1 is overlay device
I/FslHwcomposer( 2510): fb2 is hdmi
I/FslHwcomposer( 2510): device
I/FslHwcomposer( 2510): open /sys/class/graphics/fb2/disp_dev/cable_state failed
W/FslHwcomposer( 2510): system can't support more than 2 devices
I/FslHwcomposer( 2510): hwcomposer: open framebuffer fb0
W/Resources( 2506): Preloaded drawable resource #0x10801e9 (android:drawable/btn_toggle_off_disabled_holo_light) that varies with configuration!!
W/Resources( 2506): Preloaded drawable resource #0x10801e8 (android:drawable/btn_toggle_off_disabled_holo_dark) that varies with configuration!!
I/v_hwc ( 2510): Detected display /dev/graphics/fb0
I/v_hwc ( 2510): xres = 800 px
I/v_hwc ( 2510): yres = 480 px
I/v_hwc ( 2510): xres_virtual = 800 px
I/v_hwc ( 2510): yres_virtual = 1536 px
I/v_hwc ( 2510): width = -1 mm (0.0 dpi)
I/v_hwc ( 2510): height = -1 mm (0.0 dpi)
I/v_hwc ( 2510): refresh rate = 59.0 Hz
I/v_hwc ( 2510): Detected display /dev/graphics/fb2
I/v_hwc ( 2510): xres = 640 px
I/v_hwc ( 2510): yres = 480 px
I/v_hwc ( 2510): xres_virtual = 640 px
I/v_hwc ( 2510): yres_virtual = 480 px
I/v_hwc ( 2510): width = -1 mm (0.0 dpi)
I/v_hwc ( 2510): height = -1 mm (0.0 dpi)
I/v_hwc ( 2510): refresh rate = 60.0 Hz
E/v_hwc ( 2510): hwc_device_open(345): Failed to initialize hwcomposer!
E/FslHwcomposer( 2510): Error! viv_hwc open failed
I/FslHwcomposer( 2510): hwc_device_open,367
I/SurfaceFlinger( 2510): Using composer version 1.1
W/SurfaceFlinger( 2510): no suitable EGLConfig found, trying without EGL_FRAMEBUFFER_TARGET_ANDROID
W/SurfaceFlinger( 2510): no suitable EGLConfig found, trying without EGL_RECORDABLE_ANDROID
W/SurfaceFlinger( 2510): no suitable EGLConfig found, trying with 16-bit color allowed
E/SurfaceFlinger( 2510): no suitable EGLConfig found, giving up
E/libEGL ( 2510): validate_display_connection:266 error 3005 (EGL_BAD_CONFIG)
F/libc ( 2510): Fatal signal 11 (SIGSEGV) at 0x00000004 (code=1), thread 2513 (SurfaceFlinger)
hmm.. yet I do not have this.
You should see something like:
I/v_hwc ( 2386): Detected display /dev/graphics/fb0
I/v_hwc ( 2386): xres = 1024 px
I/v_hwc ( 2386): yres = 600 px
I/v_hwc ( 2386): xres_virtual = 1024 px
I/v_hwc ( 2386): yres_virtual = 1920 px
I/v_hwc ( 2386): width = -1 mm (0.0 dpi)
I/v_hwc ( 2386): height = -1 mm (0.0 dpi)
I/v_hwc ( 2386): refresh rate = 59.0 Hz
I/v_hwc ( 2386): Detected display /dev/graphics/fb2
I/v_hwc ( 2386): xres = 1280 px
I/v_hwc ( 2386): yres = 800 px
I/v_hwc ( 2386): xres_virtual = 1280 px
I/v_hwc ( 2386): yres_virtual = 2688 px
I/v_hwc ( 2386): width = -1 mm (0.0 dpi)
I/v_hwc ( 2386): height = -1 mm (0.0 dpi)
I/v_hwc ( 2386): refresh rate = 59.0 Hz
I/v_hwc ( 2386): Vivante HWComposer v2.4
I/v_hwc ( 2386): Device: 0x41a112a8
I/v_hwc ( 2386): Separated 2D: YES
I/v_hwc ( 2386): 2D PE20: YES
I/v_hwc ( 2386): Multi-source blit: NO
I/v_hwc ( 2386): Multi-source blit Ex: NO
I/v_hwc ( 2386): OPF/YUV blit/Tiling : NO
I/v_hwc ( 2386): Filter stretch : YES
I/FslHwcomposer( 2386): hwc_device_open,367
I/SurfaceFlinger( 2386): Using composer version 1.1
W/SurfaceFlinger( 2386): no suitable EGLConfig found, trying without EGL_FRAMEBUFFER_TARGET_ANDROID
E/SurfaceFlinger( 2386): HWComposer: framebufferTarget is null
E/SurfaceFlinger( 2386): HWComposer: framebufferTarget is null
E/SurfaceFlinger( 2386): HWComposer: framebufferTarget is null
E/SurfaceFlinger( 2386): HWComposer: framebufferTarget is null
E/SurfaceFlinger( 2386): HWComposer: framebufferTarget is null
E/SurfaceFlinger( 2386): HWComposer: framebufferTarget is null
W/GraphicBufferAllocator( 2386): WOW! gralloc alloc failed, waiting for pending frees!
Look likes your hwcomposer_viv.imx6.so got a problem and cannot open the GPU lib to get the infomation (bold part) .... :/
Did you solve your problem ?
I've got exactly the same and I'm a bit stuck..... :smileysad:
thanks
The error log: "E/v_hwc ( 2236): open /dev/graphics/fb0 failed" is printed by hwcomposer_viv.imx6.so(a prebuild binary so).
So, it's diffcult to debug this.
Could somebody give me some advice?
Thanks
What's your bootargs ? I had the same log with you. But now I can boot up to the luncher. The only issue is the "back home key abnormal."
My bootargs: console=ttymxc0,115200 init=/init nosmp video=mxcfb0:dev=ldb,bpp=32 video=mxcfb1:off video=mxcfb2:off fbmem=10M fb0base=0x27b00000 vmalloc=400M androidboot.console=ttymxc0 androidboot.hardware=freescale
You had "open fb0 failed" logcat msg?
It seems you must add this arguments: enable_wait_mode=off because the CPU version maybe old.
I suggest you test the HDMI first use this command:
console=ttymxc0,115200 androidboot.console=ttymxc0 vmalloc=400M init=/init video=mxcfb0:dev=hdmi,1920x1080M@60,bpp=32 video=mxcfb1:off video=mxcfb2:off fbmem=28M androidboot.hardware=freescale enable_wait_mode=off