From: Keane, B. (STRX) <ben...@ka...> - 2011-12-12 00:31:32
|
Hi, > -----Original Message----- > From: t0nvi [mailto:mr....@gm...] > Sent: Friday, 9 December 2011 6:28 PM > To: General mailing list for gumstix users. > Subject: Re: [Gumstix-users] [Android] Stuck at splash screen > after boot > > Thank you for the reply. > > 2011/12/9 Keane, Ben (STRX) <ben...@ka...>: > > 1. Use the logcat command on the console (or via adb) to > check whats going on. Sometimes my Android system gets > 'stuck' at loading the Media Server. > > looking at the logcat output i've found the following errors > that keeps showing: > > ----------------------------------------- start > -------------------------------------------------- > E/AndroidRuntime( 2323): *** FATAL EXCEPTION IN SYSTEM > PROCESS: main E/AndroidRuntime( 2323): > java.lang.UnsatisfiedLinkError: Cannot load > library: link_image[1962]: request_suspend_state: wakeup (0->0) at > 363364990238 (2000-01-01 00:06:19.568084717 UTC) > 2308 could not load needed library 'libsystem_server.so' for > 'libandroid_servers.so' (link_image[1962]: 2308 could not > load needed library 'libaudioflinger.so' for 'libsystem_server.so' > (link_image[1962]: 2308 could not load needed library 'libaudio.so' > for 'libaudioflinger.so' (link_image[1962]: 2308 could not > load needed library 'libasound.so' for 'libaudio.so' > (load_library[1104]: > Library 'libasound.so' not found)))) > E/AndroidRuntime( 2323): at > java.lang.Runtime.loadLibrary(Runtime.java:455) > E/AndroidRuntime( 2323): at > java.lang.System.loadLibrary(System.java:554) > E/AndroidRuntime( 2323): at > com.android.server.SystemServer.main(SystemServer.java:624) > E/AndroidRuntime( 2323): at > java.lang.reflect.Method.invokeNative(Native Method) > E/AndroidRuntime( 2323): at > java.lang.reflect.Method.invoke(Method.java:507) > E/AndroidRuntime( 2323): at > com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(Zyg > oteInit.java:839) > E/AndroidRuntime( 2323): at > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) > E/AndroidRuntime( 2323): at > dalvik.system.NativeStart.main(Native Method) > I/Process ( 2323): Sending signal. PID: 2323 SIG: 9 > E/AndroidRuntime( 2323): Error reporting crash > E/AndroidRuntime( 2323): java.lang.NullPointerException > E/AndroidRuntime( 2323): at > com.android.internal.os.RuntimeInit$UncaughtHandler.uncaughtEx > ception(RuntimeInit.java:76) > E/AndroidRuntime( 2323): at > java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:854) > E/AndroidRuntime( 2323): at > java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:851) > E/AndroidRuntime( 2323): at > dalvik.system.NativeStart.main(Native Method) > I/Zygote ( 2308): Exit zygote because system server (2323) > has terminated D/AndroidRuntime( 2332): > D/AndroidRuntime( 2332): >>>>>> AndroidRuntime START > com.android.internal.os.ZygoteInit <<<<<< > ----------------------------------------- end > -------------------------------------------------- > > which suggest me that the workaround i've used in compile > time is not correct. > Indeed, i wasn't able to complete the compilation process due > to an error tight to libaudio.so (no rules to make target in > some dependencies). > The workaround was to copy the libaudio* libraries from the > prebuilt image in > > out/target/product/overo/obj/lib/ > out/target/product/overo/system/lib/ > > and the compilation went fine. I've checked into the root fs > and the libraries are present in /system/lib/ path. > > Any ideas? > Are you using gumdroid? - That is what I am using. I have a directory gumdroid/hardware/alsa_sound .. And this is where I believe libaudio.so is compiled. In your BoardConfig.mk in gumdroid/device/gumstix/overo/ you should have the following: BOARD_USES_ALSA_AUDIO := true Maybe concentrate on fixing the compile error first -- I am new to all of this - but what is the error you get? I did a 'mm' in the gumdroid/hardware/alsa_sound and it seemed to compile correctly (except the files generated where alsa.default.so instead of alsa.overo.so - so must be missing something from a make file/setup higher up). While looking into your error, I noticed I also have the file /system/lib/hw/alsa.overo.so - did you copy this file from the pre-built image as well? I believe it is required for /system/lib/libaudio.so. Also I believe /system/lib/libaudiopolicy.so is required to be copied. Hope this helps, Ben PROPRIETARY: This e-mail contains proprietary information some or all of which may be legally privileged. It is intended for the recipient only. If an addressing or transmission error has misdirected this e-mail, please notify the authority by replying to this e-mail. If you are not the intended recipient you must not use, disclose, distribute, copy, print, or rely on this e-mail. |