Hello everybody! I think i realized page flipping in my s3c-fb driver. It's a Ben Dooks driver for s3c platforms. I set double size to virtual_yres, double size to smem_len, and implemented s3c_fb_pan_display function. The log messages are changed!!! Here they are:
As you can see some crash appeared. My question is, what could it be and how to debug Android execution to understand what is going wrong? I/Zygote ( 1719): Accepting command socket connections warning: `zygote' uses 32-bit capabilities (legacy support in use) D/dalvikvm( 1731): Trying to load lib /system/lib/ libandroid_servers.so 0x0 D/dalvikvm( 1731): Added shared lib /system/lib/libandroid_servers.so 0x0 E/BatteryService( 1731): Could not open /sys/class/ power_supply I/sysproc ( 1731): Entered system_init() I/sysproc ( 1731): ServiceManager: 0x13a5a0 I/SurfaceFlinger( 1731): SurfaceFlinger is starting I/SurfaceFlinger( 1731): SurfaceFlinger's main thread ready to run. Initializing graphics H/ W... init: event { 'add', '/class/vc/vcs7', 'vc', '', 7, 7 } init: event { 'add', '/class/vc/vcsa7', 'vc', '', 7, 135 } E/SurfaceFlinger( 1731): Couldn't open /sys/power/wait_for_fb_sleep or /sys/power/ wait_for_fb_wake s3c_fb_check_var() windata->virtual_x = 800, windata->virtual_y = 960 var->xres_virtual = 800, var->yres_virtual = 960, var->xres = 800, var->yres = 480 s3c_fb_set_par() line_length = 1600, xpanstep = 0, ypanstep = 1 s3c_fb_pan_display() called !!!!!!!!!!!!!!!!!!!!! s3c_fb_pan_display() [fb0] yoffset for pan display: 0 s3c_fb_pan_display() info->smem_start = 57c00000, start_addr = 57c00000, end_addr = 57cbb800 W/gralloc ( 1731): maxxxxxx1 (yres_virtual=960) W/gralloc ( 1731): maxxxxxx2 (ioctl=0) W/gralloc ( 1731): maxxxxxx4 posle ioctl (yres_virtual=960) I/gralloc ( 1731): using (fd=22) I/gralloc ( 1731): id = s3c- fb I/gralloc ( 1731): xres = 800 px I/gralloc ( 1731): yres = 480 px I/gralloc ( 1731): xres_virtual = 800 px I/gralloc ( 1731): yres_virtual = 960 px I/gralloc ( 1731): bpp = 16 I/gralloc ( 1731): r = 11:5 I/gralloc ( 1731): g = 5:6 I/gralloc ( 1731): b = 0:5 I/gralloc ( 1731): width = 127 mm (160.000000 dpi) I/gralloc ( 1731): height = 76 mm (160.421051 dpi) I/gralloc ( 1731): refresh rate = 6.16 Hz E/FramebufferNativeWindow( 1731): xDpi -2046820352 E/ FramebufferNativeWindow( s3c_fb_check_var() windata->virtual_x = 800, windata->virtual_y = 960 var->xres_virtual = 800, var->yres_virtual = 960, var->xres = 800, var->yres = 480 s3c_fb_set_par() line_length = 1600, xpanstep = 0, ypanstep = 1 s3c_fb_pan_display() called !!!!!!!!!!!!!!!!!!!!! s3c_fb_pan_display() [fb0] yoffset for pan display: 480 s3c_fb_pan_display() info->smem_start = 57c00000, start_addr = 57cbb800, end_addr = 57d77000 1731): yDpi -2046820352 D/libEGL ( 1731): egl.cfg not found, using default config D/libEGL ( 1731): loaded /system/lib/egl/ libGLES_android.so I/SurfaceFlinger( 1731): EGL informations: I/SurfaceFlinger( 1731): # of configs : 8 I/SurfaceFlinger( 1731): vendor : Android I/SurfaceFlinger( 1731): version : 1.4 Android META- EGL I/SurfaceFlinger( 1731): extensions: EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap EGL_ANDROID_image_init: no such service 'bootanim' native_buffer EGL_ANDROID_swap_rectangle EGL_ANDROID_get_render_buffer I/SurfaceFlinger( 1731): Client API: OpenGL ES I/SurfaceFlinger( 1731): EGLSurface: 5-6-5-0, config=0x1000000 I/SurfaceFlinger( 1731): flags : 001c0000 W/SurfaceFlinger( 1731): ro.sf.lcd_density not defined, using 160 dpi by default. I/SurfaceFlinger( 1731): OpenGL informations: I/SurfaceFlinger( 1731): vendor : Android I/SurfaceFlinger( 1731): renderer : Android PixelFlinger 1.1 I/SurfaceFlinger( 1731): version : OpenGL ES-CM 1.0 I/SurfaceFlinger( 1731): extensions: GL_OES_byte_coordinates GL_OES_fixed_point GL_OES_single_precision GL_OES_read_format GL_OES_compressed_paletted_textu I/sysproc ( 1731): System server: starting Android runtime. I/sysproc ( 1731): System server: starting Android services. I/SystemServer( 1731): Entered the Android system server! I/sysproc ( 1731): System server: entering thread pool. select 1714 (sh), adj 0, size 34, to kill select 1715 (servicemanager), adj 0, size 38, to kill select 1716 (vold), adj 0, size 57, to kill select 1719 (zygote), adj 0, size 2620, to kill select 1731 (system_server), adj 0, size 3525, to kill send sigkill to 1731 (system_server), adj 0, size 3525 I/Zygote ( 1719): Exit zygote because system server (1731) has t------------[ cut here ]------------ WARNING: at kernel/workqueue.c:368 flush_cpu_workqueue+0x34/0x90() Modules linked in: [<c006380c>] (unwind_backtrace+0x0/0xd8) from [<c0076274>] (warn_slowpath_common+0x48/0x60) [<c0076274>] (warn_slowpath_common+0x48/0x60) from [<c0085268>] (flush_cpu_workqueue+0x34/0x90) [<c0085268>] (flush_cpu_workqueue+0x34/0x90) from [<c0198ed8>] (tty_ldisc_release+0x20/0x70) [<c0198ed8>] (tty_ldisc_release+0x20/0x70) from [<c019480c>] (tty_release_dev+0x3f8/0x458) [<c019480c>] (tty_release_dev+0x3f8/0x458) from [<c0194878>] (tty_release+0xc/0x14) [<c0194878>] (tty_release+0xc/0x14) from [<c00c669c>] (__fput +0x118/0x1e0) [<c00c669c>] (__fput+0x118/0x1e0) from [<c00c3744>] (filp_close+0x6c/ 0x78) [<c00c3744>] (filp_close+0x6c/0x78) from [<c0077b18>] (put_files_struct +0x88/0xdc) [<c0077b18>] (put_files_struct+0x88/0xdc) from [<c0220e4c>] (binder_deferred_func+0x4e4/0x528) [<c0220e4c>] (binder_deferred_func+0x4e4/0x528) from [<c008552c>] (worker_thread+0x118/0x194) [<c008552c>] (worker_thread+0x118/0x194) from [<c0088a88>] (kthread +0x74/0x78) [<c0088a88>] (kthread+0x74/0x78) from [<c005ed34>] (kernel_thread_exit +0x0/0x8) ---[ end trace f24fc16cb378093d ]--- erminated init: waitpid returned pid 1719, status = 00000009 init: process 'zygote', pid 1719 exited init: process 'zygote' killing any children in process group init: service 'media' is being killed init: starting 'media' init: waitpid returned pid 1720, status = 0000000f init: untracked pid 1720 exited Regards! On Mar 23, 9:55 am, Qipeng <zhang.qip...@furuno-dl.com> wrote: > I think so. > and furthermore, please look at what is in /dev/graphics/. > maybe you also have to make a symbol link of the device name. > > On Mar 23, 8:19 am, abukustfan <abukust...@gmail.com> wrote: > > > Hi, > > > you kernel need to support double frame buffer if you use eclair or > > latest. > > check you frame buffer driver. > > > Good luck. > > > On Mar 22, 6:08 pm, supermaximus79 <andruschenk...@mail.ru> wrote: > > > > full logcat message i posted on 19 of march > > > > On 22 мар, 08:10, Deva R <r.deva...@gmail.com> wrote: > > > > > looks like some ioctl call to kernel is returning error (fopen error > > > > due to missing sysfs entry).. > > > > can you post complete logcat log (do 'logcat &' once u get '#' shell) > > > > > 2010/3/21 supermaximus79 <andruschenk...@mail.ru>: > > > > > > No, it is not looping. After messages: > > > > >> libandroid_servers.so 0x0 > > > > >> D/dalvikvm( 1742): Added shared lib /system/lib/libandroid_servers.so > > > > >> 0x0 > > > > >> E/BatteryService( 1742): Could not open /sys/class/power_supply > > > > >> I/sysproc ( 1742): Entered system_init() > > > > >> I/sysproc ( 1742): ServiceManager: 0x13cbd0 > > > > >> I/SurfaceFlinger( 1742): SurfaceFlinger is starting > > > > >> I/SurfaceFlinger( 1742): SurfaceFlinger's main thread ready to run. > > > > >> Initializing graphics H/W... > > > > >> E/SurfaceFlinger( 1742): Couldn't open /sys/power/wait_for_fb_sleep > > > > >> or /sys/power/wait_for_fb_wake > > > > >> W/gralloc ( 1742): page flipping not supported (yres_virtual=480, > > > > >> requested=960) > > > > >> I/gralloc ( 1742): using (fd=22) > > > > >> I/gralloc ( 1742): id š š š š š = > > > > >> I/gralloc ( 1742): xres š š š š = 800 px > > > > >> I/gralloc ( 1742): yres š š š š = 480 px > > > > >> I/gralloc ( 1742): xres_virtual = 800 px > > > > >> I/gralloc ( 1742): yres_virtual = 480 px > > > > >> I/gralloc ( 1742): bpp š š š š š= 16 > > > > >> I/gralloc ( 1742): r š š š š š = 11:5 > > > > >> I/gralloc ( 1742): g š š š š š = 5:6 > > > > >> I/gralloc ( 1742): b š š š š š š= 0:5 > > > > >> I/gralloc ( 1742): width š š š š= 127 mm (160.000000 dpi) > > > > >> I/gralloc ( 1742): height š š š = 76 mm (160.421051 dpi) > > > > >> I/gralloc ( 1742): refresh rate = 6.16 Hz > > > > > > android stops booting. If i press enter key on my keyboard i am > > > > > entering into console and can type anything, for example logcat. > > > > > > On 20 ÍÁÒ, 16:37, mssmison <cpoul...@gmail.com> wrote: > > > > >> Is it just looping there? What happens after surface flinger loads? > > > > > >> On Mar 19, 9:04 am, supermaximus79 <andruschenk...@mail.ru> wrote:> > > > > >> Hello! > > > > >> > After spending two days i fixed problems with ALSA sound, and > > > > >> > vold.conf. > > > > >> > I still can't run Android on my platform. it hangs. > > > > > >> > Please, help me to understand, why android doesn't start on my > > > > >> > board? > > > > > >> > New log messages: > > > > >> > I/vold š š( 1728): Android Volume Daemon version 2.0 > > > > >> > I/DEBUG š( 1729): debuggerd: Mar 19 2010 14:45:03 > > > > >> > E/vold š ( 1728): Unable to open '/sys/class/switch' (No such file > > > > >> > or > > > > >> > directory) > > > > >> > D/vold š ( 1728): Bootstrapping complete > > > > >> > D/AndroidRuntime( 1731): > > > > >> > D/AndroidRuntime( 1731): >>>>>>>>>>>>>> AndroidRuntime START > > > > >> > <<<<<<<<<<<<<< > > > > >> > D/AndroidRuntime( 1731): CheckJNI is OFF > > > > >> > I/ š š š ( 1732): ServiceManager: 0xad08 > > > > >> > W/AudioHardwareInterface( 1732): Using stubbed audio hardware. No > > > > >> > sound will be produced. > > > > >> > D/AudioHardwareInterface( 1732): setMode(NORMAL) > > > > >> > I/CameraService( 1732): CameraService started: pid=1732 > > > > >> > I/AudioFlinger( 1732): AudioFlinger's thread 0xb370 ready to run > > > > >> > D/AndroidRuntime( 1731): --- registering native functions --- > > > > >> > I/SamplingProfilerIntegration( 1731): Profiler is disabled. > > > > >> > I/Zygote ( 1731): Preloading classes... > > > > >> > D/dalvikvm( 1731): GC freed 791 objects / 50440 bytes in 5ms > > > > >> > D/dalvikvm( 1731): GC freed 255 objects / 16392 bytes in 5ms > > > > >> > D/dalvikvm( 1731): GC freed 298 objects / 19120 bytes in 6ms > > > > >> > D/dalvikvm( 1731): GC freed 222 objects / 14224 bytes in 7ms > > > > >> > D/dalvikvm( 1731): GC freed 415 objects / 26456 bytes in 8ms > > > > >> > D/skia š ( 1731): ------ build_power_table 1.4 > > > > >> > D/skia š ( 1731): ------ build_power_table 0.714286 > > > > >> > D/dalvikvm( 1731): GC freed 419 objects / 28904 bytes in 11ms > > > > >> > D/dalvikvm( 1731): Trying to load lib /system/lib/libmedia_jni.so > > > > >> > 0x0 > > > > >> > D/dalvikvm( 1731): Added shared lib /system/lib/libmedia_jni.so 0x0 > > > > >> > D/dalvikvm( 1731): Trying to load lib /system/lib/libexif.so 0x0 > > > > >> > D/dalvikvm( 1731): Added shared lib /system/lib/libexif.so 0x0 > > > > >> > D/dalvikvm( 1731): GC freed 2274 objects / 119232 bytes in 12ms > > > > >> > D/dalvikvm( 1731): Trying to load lib /system/lib/libmedia_jni.so > > > > >> > 0x0 > > > > >> > D/dalvikvm( 1731): Shared lib '/system/lib/libmedia_jni.so' already > > > > >> > loaded in same CL 0x0 > > > > >> > D/dalvikvm( 1731): Trying to load lib /system/lib/libmedia_jni.so > > > > >> > 0x0 > > > > >> > D/dalvikvm( 1731): Shared lib '/system/lib/libmedia_jni.so' already > > > > >> > loaded in same CL 0x0 > > > > >> > D/dalvikvm( 1731): Trying to load lib /system/lib/libmedia_jni.so > > > > >> > 0x0 > > > > >> > D/dalvikvm( 1731): Shared lib '/system/lib/libmedia_jni.so' already > > > > >> > loaded in same CL 0x0 > > > > >> > D/dalvikvm( 1731): Trying to load lib /system/lib/libmedia_jni.so > > > > >> > 0x0 > > > > >> > D/dalvikvm( 1731): Shared lib '/system/lib/libmedia_jni.so' already > > > > >> > loaded in same CL 0x0 > > > > >> > D/dalvikvm( 1731): GC freed 3790 objects / 197024 bytes in 22ms > > > > >> > D/dalvikvm( 1731): GC freed 461 objects / 26296 bytes in 19ms > > > > >> > D/dalvikvm( 1731): GC freed 292 objects / 16984 bytes in 20ms > > > > >> > D/dalvikvm( 1731): GC freed 204 objects / 11448 bytes in 22ms > > > > >> > D/dalvikvm( 1731): GC freed 178 objects / 9560 bytes in 24ms > > > > >> > D/dalvikvm( 1731): Trying to load lib /system/lib/libsrec_jni.so > > > > >> > 0x0 > > > > >> > D/dalvikvm( 1731): Added shared lib /system/lib/libsrec_jni.so 0x0 > > > > >> > D/dalvikvm( 1731): Trying to load lib /system/lib/libsrec_jni.so > > > > >> > 0x0 > > > > >> > D/dalvikvm( 1731): Shared lib '/system/lib/libsrec_jni.so' already > > > > >> > loaded in same CL 0x0 > > > > >> > D/dalvikvm( 1731): GC freed 296 objects / 34712 bytes in 27ms > > > > >> > D/dalvikvm( 1731): GC freed 787 objects / 47968 bytes in 37ms > > > > >> > D/dalvikvm( 1731): GC freed 337 objects / 38440 bytes in 37ms > > > > >> > D/dalvikvm( 1731): GC freed 418 objects / 25816 bytes in 59ms > > > > >> > D/dalvikvm( 1731): Trying to load lib /system/lib/libwebcore.so 0x0 > > > > >> > D/dalvikvm( 1731): Added shared lib /system/lib/libwebcore.so 0x0 > > > > >> > D/dalvikvm( 1731): GC freed 432 objects / 25128 bytes in 40ms > > > > >> > D/dalvikvm( 1731): GC freed 489 objects / 30696 bytes in 40ms > > > > >> > D/dalvikvm( 1731): GC freed 349 objects / 28928 bytes in 39ms > > > > >> > D/dalvikvm( 1731): GC freed 309 objects / 21872 bytes in 41ms > > > > >> > D/dalvikvm( 1731): GC freed 915 objects / 80184 bytes in 48ms > > > > >> > D/dalvikvm( 1731): GC freed 664 objects / 35904 bytes in 45ms > > > > >> > D/dalvikvm( 1731): GC freed 709 objects / 41160 bytes in 45ms > > > > >> > D/dalvikvm( 1731): GC freed 735 objects / 40656 bytes in 47ms > > > > >> > D/dalvikvm( 1731): GC freed 14117 objects / 478656 bytes in 58ms > > > > >> > D/dalvikvm( 1731): GC freed 10562 objects / 451112 bytes in 60ms > > > > >> > D/dalvikvm( 1731): GC freed 10825 objects / 470440 bytes in 63ms > > > > >> > D/dalvikvm( 1731): GC freed 8110 objects / 462624 bytes in 64ms > > > > >> > D/dalvikvm( 1731): GC freed 7580 objects / 463552 bytes in 63ms > > > > >> > D/dalvikvm( 1731): GC freed 8887 objects / 519944 bytes in 65ms > > > > >> > D/dalvikvm( 1731): GC freed 6513 objects / 380192 bytes in 64ms > > > > >> > D/dalvikvm( 1731): GC freed 832 objects / 50056 bytes in 64ms > > > > >> > D/dalvikvm( 1731): GC freed 541 objects / 39328 bytes in 63ms > > > > >> > D/dalvikvm( 1731): GC freed 456 objects / 31432 bytes in 64ms > > > > >> > D/dalvikvm( 1731): GC freed 430 objects / 29912 bytes in 64ms > > > > >> > I/Zygote ( 1731): ...preloaded 1939 classes in 18345ms. > > > > >> > D/dalvikvm( 1731): GC freed 112 objects / 14528 bytes in 90ms > > > > >> > I/Zygote ( 1731): Preloading resources... > > > > >> > D/dalvikvm( 1731): GC freed 5 objects / 224 bytes in 64ms > > > > >> > D/dalvikvm( 1731): GC freed 327 objects / 16624 bytes in 68ms > > > > >> > D/dalvikvm( 1731): GC freed 269 objects / 12632 bytes in 69ms > > > > >> > I/Zygote ( 1731): ...preloaded 48 resources in 1714ms. > > > > >> > I/Zygote ( 1731): ...preloaded 15 resources in 73ms. > > > > >> > D/dalvikvm( 1731): GC freed 114 objects / 8704 bytes in 65ms > > > > >> > D/dalvikvm( 1731): GC freed 206 objects / 8152 bytes in 66ms > > > > >> > D/dalvikvm( 1731): GC freed 24 objects / 936 bytes in 88ms > > > > >> > I/dalvikvm( 1731): Splitting out new zygote heap > > > > >> > I/dalvikvm( 1731): System server process 1742 has been created > > > > >> > I/Zygote ( 1731): Accepting command socket connections > > > > >> > D/dalvikvm( 1742): Trying to load lib /system/lib/ > > > > >> > libandroid_servers.so 0x0 > > > > >> > D/dalvikvm( 1742): Added shared lib > > > > >> > /system/lib/libandroid_servers.so > > > > >> > 0x0 > > > > >> > E/BatteryService( 1742): Could not open /sys/class/power_supply > > > > >> > I/sysproc ( 1742): Entered system_init() > > > > >> > I/sysproc ( 1742): ServiceManager: 0x13cbd0 > > > > >> > I/SurfaceFlinger( 1742): SurfaceFlinger is starting > > > > >> > I/SurfaceFlinger( 1742): SurfaceFlinger's main thread ready to run. > > > > >> > Initializing graphics H/W... > > > > >> > E/SurfaceFlinger( 1742): Couldn't open /sys/power/wait_for_fb_sleep > > > > >> > or /sys/power/wait_for_fb_wake > > > > >> > W/gralloc ( 1742): page flipping not supported (yres_virtual=480, > > > > >> > requested=960) > > > > >> > I/gralloc ( 1742): using (fd=22) > > > > >> > I/gralloc ( 1742): id š š š š š = > > ... > > read more » -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting To unsubscribe from this group, send email to android-porting+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.