Android hangs on execution init from initramfs with "Kernel panic - not syncing: Attempted to kill init!"

624 views
Skip to first unread message

Максим Андрущенко

unread,
Mar 12, 2010, 1:37:16 PM3/12/10
to android...@googlegroups.com
Hello!

I am porting Android on s3c6410 compatible platform. So, using Android sources, i created platform's profile, and compiled ramdisk.img, system.img, userdata.img.

I use 2.6.31-rc4 kernel, in which i included android specific drivers:

# Android
#
CONFIG_ANDROID=y
CONFIG_ANDROID_BINDER_IPC=y
CONFIG_ANDROID_LOGGER=y
CONFIG_ANDROID_RAM_CONSOLE=y
CONFIG_ANDROID_RAM_CONSOLE_ENABLE_VERBOSE=y
CONFIG_ANDROID_RAM_CONSOLE_EARLY_INIT=y
CONFIG_ANDROID_RAM_CONSOLE_EARLY_ADDR=0
CONFIG_ANDROID_RAM_CONSOLE_EARLY_SIZE=0
CONFIG_ANDROID_TIMED_OUTPUT=y
# CONFIG_ANDROID_TIMED_GPIO is not set
CONFIG_ANDROID_LOW_MEMORY_KILLER=y

All my platform's driver compiled into kernel statically.
Also i included ramdisk.img into kernel,because it's small sized - 160kb.
I just unzipped ramdisk.img wit command gzip -d ramdisk.img and got ramdisk.cpio
Here is how i included this ramdisk.cpio to kernel.

CONFIG_BLK_DEV_INITRD=y
CONFIG_INITRAMFS_SOURCE="/1/ramdisk.cpio"
CONFIG_INITRAMFS_ROOT_UID=0
CONFIG_INITRAMFS_ROOT_GID=0
CONFIG_RD_GZIP=y
# CONFIG_RD_BZIP2 is not set
# CONFIG_RD_LZMA is not set
CONFIG_INITRAMFS_COMPRESSION_NONE=y

Then I compiled kernel and got uImage.

Using U_BOOT i wrote kernle, system.img and userdata.img into nand flash.
Here is my parameters in u-boot environment to kernel:
mtdparts=s3c6400-nand:384k(u-boot),3m(kernel),65m(system),59m(userdata) console=ttySAC2,115200
which means
mtdpart0 - u-boot
mtdpart1 - linux kernel
mtdpart2 - system.img (yaffs2)
mtdpart3 - userdata.img (yaffs2)


But it's a pity, at the end of kernel booting i got an error:
Freeing init memory: 348K
s3c6410_setup_sdhci2_cfg_card: CTRL 2=00000100, 3=80808080 clk_ctrl=0008
s3c6410_setup_sdhci2_cfg_card: CTRL 2=00000100, 3=80808080 clk_ctrl=0008
Kernel panic - not syncing: Attempted to kill init!

What can it be the problem with?
How init binary from ramdisk.img knows where i placed system.img and userdata.img?

Because in the init.rc i found something like this:
mount yaffs mtd@system /system

So isn't it strange?

abukustfan

unread,
Mar 15, 2010, 9:47:04 PM3/15/10
to android-porting
Did you add ash memory to your kernel?

supermaximus79

unread,
Mar 16, 2010, 8:46:32 AM3/16/10
to android-porting
Hi.
You are right. Kernel panic was because my 2.6.31 kernel didn't have
ASHMEM driver, i found it in core/init/ source files. The good news is
that ASHMEM driver is the same for all linux kernels from 6.27 to
6.32. So yesterday i added ASHEMEM driver to my 2.6.31 kernel and it
works. No Kernel Panic.
But now i have very strange platform's behavior: it repeats in cycle
create media service, and kill it.
Here is my log:

init: starting 'console'
init: starting 'servicemanager'
init: starting 'vold'
init: starting 'debuggerd'
init: starting 'ril-daemon'
init: starting 'zygote'
init: Created socket '/dev/socket/zygote' with mode '666', user '0',
group '0'
init: Created socket '/dev/socket/vold' with mode '660', user '0',
group '1009'
init: Created socket '/dev/socket/rild-debug' with mode '660', user
'1001', group '1000'
init: Created socket '/dev/socket/rild' with mode '660', user '0',
group '1001'
init: starting 'media'

init: cannot find '/system/bin/playmp3', disabling 'bootsound'
init: starting 'dbus'
init: starting 'installd'
init: Created socket '/dev/socket/installd' with mode '600', user
'1000', group '1000'
init: Created socket '/dev/socket/dbus' with mode '660', user '1002',
group '1002'
sh: can't access tty; job control turned off
init: cannot find '/system/etc/install-recovery.sh', disabling
'flash_recovery'

# init: starting 'keystore'
init: command 'class_start' r=0
init: processing action 0x28b98
(property:persist.service.adb.enable=1)
init: starting 'adbd'
init: command 'start' r=0
init: Created socket '/dev/socket/keystore' with mode '666', user '0',
group '0'
init: waitpid returned pid 1712, status = 0000000b
init: process 'media', pid 1712 exited
init: process 'media' killing any children in process group
init: starting 'media'
init: waitpid returned pid 1718, status = 0000000b
init: process 'media', pid 1718 exited
init: process 'media' killing any children in process group
In mgmain JNI_OnLoad
init: starting 'media'
init: waitpid returned pid 1719, status = 0000000b
init: process 'media', pid 1719 exited
init: process 'media' killing any children in process group
init: starting 'media'
init: waitpid returned pid 1720, status = 0000000b
init: process 'media', pid 1720 exited
init: process 'media' killing any children in process
group
init: starting 'media'
init: waitpid returned pid 1721, status = 0000000b
init: process 'media', pid 1721 exited
init: process 'media' killing any children in process group
init: starting 'media'
Jan 1, 1970 12:00:32 AM com.ibm.icu4jni.util.Resources
createTimeZoneNamesFor
INFO: Loaded time zone names for en_US in 5925ms.
init: waitpid returned pid 1722, status = 0000000b
init: process 'media', pid 1722 exited
init: process 'media' killing any children in process group
init: starting 'media'
init: waitpid returned pid 1723, status = 0000000b
init: process 'media', pid 1723 exited
init: process 'media' killing any children in process group
init: starting 'media'
init: waitpid returned pid 1724, status = 0000000b
init: process 'media', pid 1724 exited
init: process 'media' killing any children in process group
Jan 1, 1970 12:00:43 AM javax.net.ssl.SSLSocketFactory log
INFO: Using factory
org.apache.harmony.xnet.provider.jsse.OpenSSLSocketFactoryImpl@401b9eb8
init: starting 'media'
init: waitpid returned pid 1725, status = 0000000b
init: process 'media', pid 1725 exited
init: process 'media' killing any children in process group
init: starting 'media'
warning: `zygote' uses 32-bit capabilities (legacy support in use)
init: waitpid returned pid 1726, status = 0000000b
init: process 'media', pid 1726 exited
init: process 'media' killing any children in process group
init: starting 'media'
select 1706 (sh), adj 0, size 25, to kill
select 1707 (servicemanager), adj 0, size 27, to kill
select 1708 (vold), adj 0, size 32, to kill
select 1709 (debuggerd), adj 0, size 42, to kill
select 1710 (rild), adj 0, size 48, to kill
select 1711 (zygote), adj 0, size 2580, to kill
select 1727 (system_server), adj 0, size 3263, to kill
send sigkill to 1727 (system_server), adj 0, size 3263
init: waitpid returned pid 1711, status = 00000009
init: process 'zygote', pid 1711 exited
init: process 'zygote' killing any children in process group
init: service 'media' is being killed
init: starting 'media'
init: starting 'zygote'
init: waitpid returned pid 1731, status = 0000000f
init: untracked pid 1731 exited
init: Created socket '/dev/socket/zygote' with mode '666', user '0',
group '0'
init: waitpid returned pid 1734, status = 0000000b
init: process 'media', pid 1734 exited
init: process 'media' killing any children in process group
init: starting 'media'
In mgmain JNI_OnLoad
init: waitpid returned pid 1736, status = 0000000b
init: process 'media', pid 1736 exited
init: process 'media' killing any children in process group
init: starting 'media'
init: waitpid returned pid 1737, status = 0000000b
init: process 'media', pid 1737 exited
init: process 'media' killing any children in process group
init: starting 'media'

On Mar 16, 3:47 am, abukustfan <abukust...@gmail.com> wrote:
> Did you add ash memory to your kernel?
>

> On Mar 13, 3:37šam, íÁËÓÉÍ áÎÄÒÕÝÅÎËÏ <andruschenk...@mail.ru> wrote:
>
> > Hello!
>
> > I am porting Android on s3c6410 compatible platform. So, using Android sources, i created platform's profile, and compiled ramdisk.img, system.img, userdata.img.
>
> > I use 2.6.31-rc4 kernel, in which i included android specific drivers:
>
> > # Android
> > #
> > CONFIG_ANDROID=y
> > CONFIG_ANDROID_BINDER_IPC=y
> > CONFIG_ANDROID_LOGGER=y
> > CONFIG_ANDROID_RAM_CONSOLE=y
> > CONFIG_ANDROID_RAM_CONSOLE_ENABLE_VERBOSE=y
> > CONFIG_ANDROID_RAM_CONSOLE_EARLY_INIT=y
> > CONFIG_ANDROID_RAM_CONSOLE_EARLY_ADDR=0
> > CONFIG_ANDROID_RAM_CONSOLE_EARLY_SIZE=0
> > CONFIG_ANDROID_TIMED_OUTPUT=y
> > # CONFIG_ANDROID_TIMED_GPIO is not set
> > CONFIG_ANDROID_LOW_MEMORY_KILLER=y
>
> > All my platform's driver compiled into kernel statically.
> > Also i included ramdisk.img into kernel,because it's small sized - 160kb.

> > I just unzipped ramdisk.img wit command šgzip -d ramdisk.img and got ramdisk.cpio

Deva R

unread,
Mar 16, 2010, 9:53:44 AM3/16/10
to andrusc...@mail.ru, android-porting
not sure why.. logcat log??

> --
> unsubscribe: android-porti...@googlegroups.com
> website: http://groups.google.com/group/android-porting
>

supermaximus79

unread,
Mar 16, 2010, 11:39:52 AM3/16/10
to android-porting
# logcat log
I/vold ( 1708): Android Volume Daemon version 2.0
E/vold ( 1708): Unable to open '/sys/class/mmc_host' (No such file
or directory)
E/vold ( 1708): Unable to open '/sys/class/switch' (No such file or
directory)
D/vold ( 1708): Bootstrapping complete
I/DEBUG ( 1709): debuggerd: Mar 12 2010 20:04:15
D/AndroidRuntime( 1711):
D/AndroidRuntime( 1711): >>>>>>>>>>>>>> AndroidRuntime START
<<<<<<<<<<<<<<
D/AndroidRuntime( 1711): CheckJNI is OFF
I/ ( 1712): ServiceManager: 0xad08
E/ALSALib ( 1712): external/alsa-lib/src/control/control.c:909:
(snd_ctl_open_noupdate) Invalid CTL AndroidOut
W/AudioHardwareALSA( 1712): Unable to attach mixer to device
AndroidOut: No such file or directory
E/AudioHardwareALSA( 1712): Unable to attach mixer to device default:
No such file or directory
E/ALSALib ( 1712): external/alsa-lib/src/control/control.c:909:
(snd_ctl_open_noupdate) Invalid CTL AndroidIn
W/AudioHardwareALSA( 1712): Unable to attach mixer to device
AndroidIn: No such file or directory
E/AudioHardwareALSA( 1712): Unable to attach mixer to device default:
No such file or directory
I/DEBUG ( 1709): *** *** *** *** *** *** *** *** *** *** *** *** ***
*** *** ***
I/DEBUG ( 1709): Build fingerprint: 'pegasus/pegasus/pegasus/:AOSP/
MASTER/eng.root.20100312.193656:user/test-keys'
I/DEBUG ( 1709): pid: 1712, tid: 1712 >>> /system/bin/mediaserver
<<<
I/DEBUG ( 1709): signal 11 (SIGSEGV), fault addr 00000010
I/DEBUG ( 1709): r0 00000000 r1 8130a804 r2 00000000 r3 00000000
I/DEBUG ( 1709): r4 8130c6f4 r5 0000b058 r6 be854ba0 r7 0000b069
I/DEBUG ( 1709): r8 00000000 r9 0000aee8 10 00000000 fp be854c3c
I/DEBUG ( 1709): ip 8130c50c sp be854ba0 lr 81307e18 pc
8143cb80 cpsr 00000010
I/DEBUG ( 1709): #00 pc 0003cb80 /system/lib/libasound.so
I/DEBUG ( 1709): #01 pc 00007e14 /system/lib/libaudio.so
I/DEBUG ( 1709): #02 pc 00005b70 /system/lib/libaudio.so
I/DEBUG ( 1709): #03 pc 00005ccc /system/lib/libaudio.so
I/DEBUG ( 1709): #04 pc 00009032 /system/lib/libaudio.so
I/DEBUG ( 1709): #05 pc 00022d32 /system/lib/
libaudioflinger.so
I/DEBUG ( 1709): #06 pc 00022db6 /system/lib/
libaudioflinger.so
I/DEBUG ( 1709): #07 pc 0000879e /system/bin/mediaserver
I/DEBUG ( 1709): #08 pc 0000d426 /system/lib/libc.so
I/DEBUG ( 1709): #09 pc b00018ae /system/bin/linker
I/DEBUG ( 1709):
I/DEBUG ( 1709): code around pc:
I/DEBUG ( 1709): 8143cb70 8afffffb e1c300b0 e3a00000 e12fff1e
I/DEBUG ( 1709): 8143cb80 e5b03010 e1530000 03a00000 12430004
I/DEBUG ( 1709): 8143cb90 e12fff1e e5902010 e2803010 e1520003
I/DEBUG ( 1709):
I/DEBUG ( 1709): code around lr:
I/DEBUG ( 1709): 81307e08 e08c9003 ebfff568 e5990004 ebfff4ca
I/DEBUG ( 1709): 81307e18 e2504000 1a000004 ea00002d e1a00004
I/DEBUG ( 1709): 81307e28 ebfff5ee e2504000 0a000029 e1a00004
I/DEBUG ( 1709):
I/DEBUG ( 1709): stack:
I/DEBUG ( 1709): be854b60 40000000 /dev/ashmem/
system_properties (deleted)
I/DEBUG ( 1709): be854b64 802230bf /system/lib/libc.so
I/DEBUG ( 1709): be854b68 8130a800 /system/lib/libaudio.so
I/DEBUG ( 1709): be854b6c 0000b069 [heap]
I/DEBUG ( 1709): be854b70 0000b069 [heap]
I/DEBUG ( 1709): be854b74 00000000
I/DEBUG ( 1709): be854b78 0000aee8 [heap]
I/DEBUG ( 1709): be854b7c 00000000
I/DEBUG ( 1709): be854b80 be854c3c [stack]
I/DEBUG ( 1709): be854b84 0000b069 [heap]
I/DEBUG ( 1709): be854b88 00000003
I/DEBUG ( 1709): be854b8c 80505a8b /system/lib/libcutils.so
I/DEBUG ( 1709): be854b90 8130c6f4 /system/lib/libaudio.so
I/DEBUG ( 1709): be854b94 0000b058 [heap]
I/DEBUG ( 1709): be854b98 df002777
I/DEBUG ( 1709): be854b9c e3a070ad
I/DEBUG ( 1709): #01 be854ba0 00000000
I/DEBUG ( 1709): be854ba4 00000000
I/DEBUG ( 1709): be854ba8 00000000
I/DEBUG ( 1709): be854bac 00000000
I/DEBUG ( 1709): be854bb0 00000000
I/DEBUG ( 1709): be854bb4 00000000
I/DEBUG ( 1709): be854bb8 00000000
I/DEBUG ( 1709): be854bbc 00000000
I/DEBUG ( 1709): be854bc0 00000000
I/DEBUG ( 1709): be854bc4 00000000
I/DEBUG ( 1709): be854bc8 00000000
I/DEBUG ( 1709): be854bcc 00000000
I/DEBUG ( 1709): be854bd0 00000000
I/DEBUG ( 1709): be854bd4 00000000
I/DEBUG ( 1709): be854bd8 00000000
I/DEBUG ( 1709): be854bdc 00000000
I/DEBUG ( 1709): be854be0 8130c208 /system/lib/libaudio.so
I/DEBUG ( 1709): be854be4 81307d5c /system/lib/libaudio.so
I/DEBUG ( 1709): be854be8 8130c1f0 /system/lib/libaudio.so
I/DEBUG ( 1709): be854bec 000001b0
I/DEBUG ( 1709): be854bf0 00000003
I/DEBUG ( 1709): be854bf4 000001f4
I/DEBUG ( 1709): be854bf8 0000aee8 [heap]
I/DEBUG ( 1709): be854bfc 8130c1e8 /system/lib/libaudio.so
I/DEBUG ( 1709): be854c00 8130c7d4 /system/lib/libaudio.so
I/DEBUG ( 1709): be854c04 8130c500 /system/lib/libaudio.so
I/DEBUG ( 1709): be854c08 00000000
I/DEBUG ( 1709): be854c0c 00000000
I/DEBUG ( 1709): be854c10 00000003
I/DEBUG ( 1709): be854c14 758f74f1
I/DEBUG ( 1709): be854c18 0000ae88 [heap]
I/DEBUG ( 1709): be854c1c 8130c500 /system/lib/libaudio.so
I/DEBUG ( 1709): be854c20 0000ae88 [heap]
I/DEBUG ( 1709): be854c24 be854c44 [stack]
I/DEBUG ( 1709): be854c28 0000aee8 [heap]
I/DEBUG ( 1709): be854c2c 00000000
I/DEBUG ( 1709): be854c30 00000000
I/DEBUG ( 1709): be854c34 00000000
I/DEBUG ( 1709): be854c38 00000000
I/DEBUG ( 1709): be854c3c 81305b74 /system/lib/libaudio.so
D/AndroidRuntime( 1711): --- registering native functions ---
I/SamplingProfilerIntegration( 1711): Profiler is disabled.
I/Zygote ( 1711): Preloading classes...
D/dalvikvm( 1711): GC freed 789 objects / 50280 bytes in 4ms
D/dalvikvm( 1711): GC freed 255 objects / 16352 bytes in 5ms
D/dalvikvm( 1711): GC freed 298 objects / 19128 bytes in 6ms
D/dalvikvm( 1711): GC freed 222 objects / 14192 bytes in 7ms
D/dalvikvm( 1711): GC freed 415 objects / 26424 bytes in 8ms
D/skia ( 1711): ------ build_power_table 1.4
D/skia ( 1711): ------ build_power_table 0.714286
D/dalvikvm( 1711): GC freed 419 objects / 28856 bytes in 9ms
D/dalvikvm( 1711): Trying to load lib /system/lib/libmedia_jni.so 0x0
D/dalvikvm( 1711): Added shared lib /system/lib/libmedia_jni.so 0x0
D/dalvikvm( 1711): Trying to load lib /system/lib/libexif.so 0x0
D/dalvikvm( 1711): Added shared lib /system/lib/libexif.so 0x0
D/dalvikvm( 1711): GC freed 2274 objects / 119224 bytes in 13ms
D/dalvikvm( 1711): Trying to load lib /system/lib/libmedia_jni.so 0x0
D/dalvikvm( 1711): Shared lib '/system/lib/libmedia_jni.so' already
loaded in same CL 0x0
D/dalvikvm( 1711): Trying to load lib /system/lib/libmedia_jni.so 0x0
D/dalvikvm( 1711): Shared lib '/system/lib/libmedia_jni.so' already
loaded in same CL 0x0
D/dalvikvm( 1711): Trying to load lib /system/lib/libmedia_jni.so 0x0
D/dalvikvm( 1711): Shared lib '/system/lib/libmedia_jni.so' already
loaded in same CL 0x0
D/dalvikvm( 1711): Trying to load lib /system/lib/libmedia_jni.so 0x0
D/dalvikvm( 1711): Shared lib '/system/lib/libmedia_jni.so' already
loaded in same CL 0x0
D/dalvikvm( 1711): GC freed 3788 objects / 196856 bytes in 23ms
D/dalvikvm( 1711): GC freed 461 objects / 26368 bytes in 20ms
D/dalvikvm( 1711): GC freed 292 objects / 16976 bytes in 20ms
D/dalvikvm( 1711): GC freed 204 objects / 11456 bytes in 22ms
D/dalvikvm( 1711): GC freed 178 objects / 9552 bytes in 24ms
D/dalvikvm( 1711): Trying to load lib /system/lib/libsrec_jni.so 0x0
D/dalvikvm( 1711): Added shared lib /system/lib/libsrec_jni.so 0x0
D/dalvikvm( 1711): Trying to load lib /system/lib/libsrec_jni.so 0x0
D/dalvikvm( 1711): Shared lib '/system/lib/libsrec_jni.so' already
loaded in same CL 0x0
D/dalvikvm( 1711): GC freed 296 objects / 34704 bytes in 26ms
D/dalvikvm( 1711): GC freed 787 objects / 47992 bytes in 37ms
D/dalvikvm( 1711): GC freed 337 objects / 38448 bytes in 37ms
D/dalvikvm( 1711): GC freed 418 objects / 25840 bytes in 38ms
D/dalvikvm( 1711): Trying to load lib /system/lib/libwebcore.so 0x0
D/dalvikvm( 1711): Added shared lib /system/lib/libwebcore.so 0x0
D/dalvikvm( 1711): GC freed 432 objects / 25128 bytes in 40ms
D/dalvikvm( 1711): GC freed 489 objects / 30704 bytes in 39ms
D/dalvikvm( 1711): GC freed 349 objects / 28848 bytes in 40ms
D/dalvikvm( 1711): GC freed 309 objects / 21888 bytes in 41ms
D/dalvikvm( 1711): GC freed 915 objects / 80160 bytes in 48ms
D/dalvikvm( 1711): GC freed 664 objects / 35952 bytes in 45ms
D/dalvikvm( 1711): GC freed 709 objects / 41224 bytes in 46ms
D/dalvikvm( 1711): GC freed 735 objects / 40576 bytes in 46ms
D/dalvikvm( 1711): GC freed 14135 objects / 479256 bytes in 58ms
D/dalvikvm( 1711): GC freed 10579 objects / 452064 bytes in 59ms
D/dalvikvm( 1711): GC freed 10852 objects / 465376 bytes in 64ms
D/dalvikvm( 1711): GC freed 7998 objects / 465080 bytes in 64ms
D/dalvikvm( 1711): GC freed 8079 objects / 463208 bytes in 65ms
D/dalvikvm( 1711): GC freed 8587 objects / 521416 bytes in 66ms
D/dalvikvm( 1711): GC freed 6364 objects / 379808 bytes in 64ms
D/dalvikvm( 1711): GC freed 832 objects / 50104 bytes in 63ms
D/dalvikvm( 1711): GC freed 541 objects / 39232 bytes in 62ms
D/dalvikvm( 1711): GC freed 456 objects / 31256 bytes in 65ms
D/dalvikvm( 1711): GC freed 430 objects / 29736 bytes in 64ms
I/Zygote ( 1711): ...preloaded 1939 classes in 17201ms.
D/dalvikvm( 1711): GC freed 112 objects / 14536 bytes in 64ms
I/Zygote ( 1711): Preloading resources...
D/dalvikvm( 1711): GC freed 5 objects / 224 bytes in 65ms
D/dalvikvm( 1711): GC freed 327 objects / 16672 bytes in 71ms
D/dalvikvm( 1711): GC freed 269 objects / 12616 bytes in 66ms
I/Zygote ( 1711): ...preloaded 48 resources in 1942ms.
I/Zygote ( 1711): ...preloaded 15 resources in 73ms.
D/dalvikvm( 1711): GC freed 114 objects / 8720 bytes in 67ms
D/dalvikvm( 1711): GC freed 206 objects / 8192 bytes in 65ms
D/dalvikvm( 1711): GC freed 24 objects / 944 bytes in 64ms
I/dalvikvm( 1711): Splitting out new zygote heap
I/dalvikvm( 1711): System server process 1718 has been created
I/Zygote ( 1711): Accepting command socket connections
D/dalvikvm( 1718): Trying to load lib /system/lib/
libandroid_servers.so 0x0
D/dalvikvm( 1718): Added shared lib /system/lib/libandroid_servers.so
0x0
E/BatteryService( 1718): Could not open /sys/class/power_supply
I/sysproc ( 1718): Entered system_init()
I/sysproc ( 1718): ServiceManager: 0x139a20
I/SurfaceFlinger( 1718): SurfaceFlinger is starting
I/SurfaceFlinger( 1718): SurfaceFlinger's main thread ready to run.
Initializing graphics H/W...
E/SurfaceFlinger( 1718): Couldn't open /sys/power/wait_for_fb_sleep
or /sys/power/wait_for_fb_wake
W/gralloc ( 1718): page flipping not supported (yres_virtual=600,
requested=1200)
I/gralloc ( 1718): using (fd=22)
I/gralloc ( 1718): id =
I/gralloc ( 1718): xres = 800 px
I/gralloc ( 1718): yres = 600 px
I/gralloc ( 1718): xres_virtual = 800 px
I/gralloc ( 1718): yres_virtual = 600 px
I/gralloc ( 1718): bpp = 16
I/gralloc ( 1718): r = 11:5
I/gralloc ( 1718): g = 5:6
I/gralloc ( 1718): b = 0:5
I/gralloc ( 1718): width = 127 mm (160.000000 dpi)
I/gralloc ( 1718): height = 95 mm (160.421051 dpi)
I/gralloc ( 1718): refresh rate = 3.97 Hz

On Mar 16, 3:53 pm, Deva R <r.deva...@gmail.com> wrote:
> not sure why.. logcat log??
>

Deva R

unread,
Mar 16, 2010, 2:55:48 PM3/16/10
to andrusc...@mail.ru, android-porting
see, there you go.., ALSA is broken - not sure why, probably due to
interface break with kernel..

> E/ALSALib ( 1712): external/alsa-lib/src/control/control.c:909:
> (snd_ctl_open_noupdate) Invalid CTL AndroidOut
> W/AudioHardwareALSA( 1712): Unable to attach mixer to device
> AndroidOut: No such file or directory
> E/AudioHardwareALSA( 1712): Unable to attach mixer to device default:
> No such file or directory
> E/ALSALib ( 1712): external/alsa-lib/src/control/control.c:909:

abukustfan

unread,
Mar 16, 2010, 9:46:16 PM3/16/10
to android-porting
agree. Try disable ALSA.


On Mar 17, 3:55 am, Deva R <r.deva...@gmail.com> wrote:
> see, there you go.., ALSA is broken  - not sure why, probably due to
> interface break with kernel..
>
>
>
> > E/ALSALib ( 1712): external/alsa-lib/src/control/control.c:909:
> > (snd_ctl_open_noupdate) Invalid CTL AndroidOut
> > W/AudioHardwareALSA( 1712): Unable to attach mixer to device
> > AndroidOut: No such file or directory
> > E/AudioHardwareALSA( 1712): Unable to attach mixer to device default:
> > No such file or directory
> > E/ALSALib ( 1712): external/alsa-lib/src/control/control.c:909:

> > D/dalvikvm( 1711): GC freed 664 objects /...
>
> read more »

Srikant

unread,
Mar 17, 2010, 12:32:40 PM3/17/10
to android-porting
It looks like there might be some problem int the vold.conf file, make
sure the path /sys/class/mmc_host is correct.

> ...
>
> read more »

supermaximus79

unread,
Mar 17, 2010, 1:38:02 PM3/17/10
to android-porting
Thanks everybody!

Right now i am fixing my sound chip driver to get alsa work.
You are right regarding vold.conf, there is no such file in my
filesystem.
And of course /sys/class/mmc_host path wrong.

I should modify vold.conf from generic build and add it to my
platform, but it'll be after success with ALSA.

Regards!

> ...
>
> read more »

supermaximus79

unread,
Mar 19, 2010, 12:04:49 PM3/19/10
to android-porting
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 =
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

> ...
>
> read more »

mssmison

unread,
Mar 20, 2010, 10:37:39 AM3/20/10
to android-porting
Is it just looping there? What happens after surface flinger loads?

> ...
>
> read more »

supermaximus79

unread,
Mar 21, 2010, 9:25:19 AM3/21/10
to android-porting
No, it is not looping. After messages:

android stops booting. If i press enter key on my keyboard i am
entering into console and can type anything, for example logcat.

Deva R

unread,
Mar 22, 2010, 2:10:11 AM3/22/10
to andrusc...@mail.ru, android-porting
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 <andrusc...@mail.ru>:

> 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.
>

supermaximus79

unread,
Mar 22, 2010, 5:08:19 AM3/22/10
to android-porting
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

> >> > 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
>
> >> > On Mar 17, 7:38 pm, supermaximus79 <andruschenk...@mail.ru> wrote:
>
> >> > > Thanks everybody!
>
> >> > > Right now i am fixing my sound chip driver to get alsa work.
> >> > > You are right regarding vold.conf, there is no such file in my
> >> > > filesystem.

> >> > > And of course /sys/class/mmc_host špath wrong.


>
> >> > > I should modify vold.conf from generic build and add it to my
> >> > > platform, but it'll be after success with ALSA.
>
> >> > > Regards!
>
> >> > > On Mar 17, 6:32 pm, Srikant <w.sreeka...@gmail.com> wrote:
>
> >> > > > It looks like there might be some problem int the vold.conf file, make
> >> > > > sure the path /sys/class/mmc_host is correct.
>
> >> > > > On Mar 16, 8:39 pm, supermaximus79 <andruschenk...@mail.ru> wrote:
>
> >> > > > > # logcat log

> >> > > > > I/vold š š( 1708): Android Volume Daemon version 2.0
>
> ...
>
> продолжение »

abukustfan

unread,
Mar 22, 2010, 8:19:04 PM3/22/10
to android-porting
Hi,

you kernel need to support double frame buffer if you use eclair or
latest.
check you frame buffer driver.

Good luck.

> > >> > > platform, but it'll...
>
> read more »

Deva R

unread,
Mar 23, 2010, 6:03:57 AM3/23/10
to abuku...@gmail.com, android-porting
your bootup is stuck right at surface flinger init, next step will be
fb creation and overlay init..

and ya, as abukustfan said below, eclair needs bigger frame buffer
allocated explicitly.
check your fb driver or it might be possible to pass fb size via bootargs.

PS.
similar discussion on eclair FB size
http://groups.google.com/group/android-porting/browse_frm/thread/32950ea46af78952/c8372d0b711b067e?#c8372d0b711b067e

Qipeng

unread,
Mar 23, 2010, 3:55:56 AM3/23/10
to android-porting
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.

> ...
>
> read more »

supermaximus79

unread,
Mar 24, 2010, 4:03:17 PM3/24/10
to android-porting
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!

> ...
>
> read more »

supermaximus79

unread,
Mar 25, 2010, 10:08:50 AM3/25/10
to android-porting
Hello guys!

Could you tell me please, what do you think about log meggases in my
previous letter?
In previous messages you told that framebuffer driver for android must
have double buffering.
I found in the internet some articles which describe android frame
buffer.
Here they are:
http://pdk.android.com/online-pdk/guide/display_drivers.html
http://wiki.kldp.org/wiki.php/AndroidPortingOnRealTarget

Coul you tell me, is it enough functionality, which describes in those
artickes, i should implement for my android framebuffer driver?

Thanks a lot!

> ...
>
> read more »

abukustfan

unread,
Mar 25, 2010, 8:26:22 PM3/25/10
to android-porting
Hi,

seem your framebuffer driver is fine. At least it did not hang on
"page flipping not supported".

Now, I thinks the problem is here.


> > 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

Why the process was kill here? not enough memory??
Maybe the oom_adj value are not setting properly.
Did you use the same init.rc from Android build tree??

On Mar 25, 11:08 pm, supermaximus79 <andruschenk...@mail.ru> wrote:
> Hello guys!
>
> Could you tell me please, what do you think about log meggases in my
> previous letter?
> In previous messages you told that framebuffer driver for android must
> have double buffering.
> I found in the internet some articles which describe android frame
> buffer.

> Here they are:http://pdk.android.com/online-pdk/guide/display_drivers.htmlhttp://wiki.kldp.org/wiki.php/AndroidPortingOnRealTarget

> > > > > > >> On Mar 19, 9:04 am, supermaximus79 <andruschenk...@mail.ru> wrote:> Hello!...
>
> read more »

Neo

unread,
Mar 26, 2010, 12:20:24 AM3/26/10
to android-porting

I feel some of your kernel configs could be off.

supermaximus79

unread,
Mar 26, 2010, 7:54:59 AM3/26/10
to android-porting
Hi!
I use init.rc which android builds with ramdisk.img.
I a little modified init.rc - set loglevel to 6.
Also my kernel doesn't have driver pmem, and android power. But i red
that this driver is not necessary for android. isn't it?

supermaximus79

unread,
Mar 26, 2010, 9:12:27 AM3/26/10
to android-porting
May be i add not enought partitions on my nand flash? or not enought
sized?

Right now i have only 4 partitions:
init: mtd partition 0, u-boot (374 kb)
init: mtd partition 1, kernel (3m)
init: mtd partition 2, system (85m)
init: mtd partition 3, userdata (39m)

Is it correct?

abukustfan

unread,
Mar 28, 2010, 9:10:31 PM3/28/10
to android-porting
Hi,

Yes, pmem and android power are not necessary for android.
I also did not enable these for my platform.

supermaximus79

unread,
Mar 29, 2010, 3:41:20 PM3/29/10
to android-porting
Thanks a lot Abukustafan!

Today i at last started android on my platform.
What i can say, screen is blinking, and touchscreen doesn't work at
all.
Do you have the same problems on your platform?
How to make touch screen work?

Thanks again!

Best wishes!


On Mar 29, 4:10 am, abukustfan <abukust...@gmail.com> wrote:
> Hi,
>

> Yes, pmem andandroidpower are not necessary forandroid.


> I also did not enable these for my platform.
>
> On Mar 26, 8:54 pm, supermaximus79 <andruschenk...@mail.ru> wrote:
>
> > Hi!

> > I use init.rc whichandroidbuilds with ramdisk.img.


> > I a little modified init.rc - set loglevel to 6.

> > Also my kernel doesn't have driver pmem, andandroidpower. But i red
> > that this driver is not necessary forandroid. isn't it?

Qipeng

unread,
Mar 30, 2010, 2:20:49 AM3/30/10
to android-porting
Congratulation!

According to goldfishfb.c in android kernel, you may add the 'pan'
function to solve the blinking.
For touchscreen, try to make sure your driver is ok, and get more
information from Eventhub.cpp in SourceCode.

Good luck.

supermaximus79

unread,
Mar 30, 2010, 10:35:37 AM3/30/10
to android-porting
Thanks!

I already added pan function to my framebuffer driver, but seems
something goes wrong.
Screen is blinking too much.
Also i fixed touch screen, now it works!

vishal bhoj

unread,
Apr 1, 2010, 1:22:51 AM4/1/10
to andrusc...@mail.ru, android-porting
I am trying to boot android with 2.6.32 kernel.My system is crashing at the same place.

My crash log_

[   31.218688] WARNING: at kernel/workqueue.c:485 flush_cpu_workqueue+0x30/0xb0()
[   31.225982] Modules linked in:
[   31.229125] [<c0039c48>] (unwind_backtrace+0x0/0xdc) from [<c0061e5c>] (warn_slowpath_common+0x4c/0x80)
[   31.238616] [<c0061e5c>] (warn_slowpath_common+0x4c/0x80) from [<c0078bdc>] (flush_cpu_workqueue+0x30/0xb0)
[   31.248474] [<c0078bdc>] (flush_cpu_workqueue+0x30/0xb0) from [<c03c552c>] (tty_ldisc_release+0x3c/0x88)
[   31.258056] [<c03c552c>] (tty_ldisc_release+0x3c/0x88) from [<c03c07b8>] (tty_release+0x4a4/0x51c)
[   31.267120] [<c03c07b8>] (tty_release+0x4a4/0x51c) from [<c00e1c70>] (__fput+0x108/0x1f4)
[   31.275817] [<c00e1c70>] (__fput+0x108/0x1f4) from [<c00de6e8>] (filp_close+0x70/0x7c)
[   31.283813] [<c00de6e8>] (filp_close+0x70/0x7c) from [<c0063d20>] (put_files_struct+0x88/0xe8)
[   31.292541] [<c0063d20>] (put_files_struct+0x88/0xe8) from [<c04982d0>] (binder_deferred_func+0x4ec/0x538)
[   31.302276] [<c04982d0>] (binder_deferred_func+0x4ec/0x538) from [<c0079350>] (worker_thread+0x1d8/0x288)
[   31.311950] [<c0079350>] (worker_thread+0x1d8/0x288) from [<c007cb74>] (kthread+0x78/0x80)
[   31.320312] [<c007cb74>] (kthread+0x78/0x80) from [<c00359dc>] (kernel_thread_exit+0x0/0x8)


HOw did u solve this ?

Thanks in advance,
Regards,
Vishal


supermaximus79

unread,
Apr 1, 2010, 7:40:59 AM4/1/10
to android-porting
HI!
The problem was with SDRAM memory. My kernel saw only 24 M SDRAM of
128 M available on the platform.
You can see it at the beginning of linux kernel start, it prints:
Total memory: ___, and available memory:___.
So you need a lot of available memory. In my case Android started
working after i got 124 M of available memory.
Check it.

Regards

> > unsubscribe: android-porti...@googlegroups.com<android-porting%2Bunsu...@googlegroups.com>

Reply all
Reply to author
Forward
0 new messages