[G1 Android Development] fonix232:
I am trying to port the T-Mobile Pulse 2.1 ROM on our G1. The first trials showed me that more than the usual porting is needed: I had to replace libaudio.so, libaudioflinger.so and libc.so libraries (of course I've done the basic porting, kernel, bt and gles drivers, keyboard schemes, hardware specific libraries). After replacing these two (before it I got a bootloop with a message "Waiting for sound services to start"), I won't even get to the boot screen: it just stays on the G1 logo.

This is the logcat I get:

11-18 21:11:28.320: INFO/DEBUG(207): debuggerd: Apr 17 2010 22:34:34
11-18 21:11:28.480: ERROR/vold(206): Unable to open '/sys/devices/platform/msm_hsusb_periphera/checksdstatus' (err:No such file or directory)
11-18 21:11:29.290: INFO/DEBUG(207): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
11-18 21:11:29.290: INFO/DEBUG(207): Build fingerprint: 'T-Mobile/U8220/U8220/U8220:2.1-update1/ERE27/eng.huawei.20100419.103709:user/test-keys'
11-18 21:11:29.290: INFO/DEBUG(207): pid: 218, tid: 218 >>> /system/bin/oem_rpc_svc <<<
11-18 21:11:29.290: INFO/DEBUG(207): signal 11 (SIGSEGV), fault addr 0000000c
11-18 21:11:29.290: INFO/DEBUG(207): r0 00000000 r1 00020000 r2 00000000 r3 00000000
11-18 21:11:29.290: INFO/DEBUG(207): r4 00009128 r5 bea14990 r6 00000000 r7 00000020
11-18 21:11:29.290: INFO/DEBUG(207): r8 00000000 r9 00000000 10 00000000 fp 00000000
11-18 21:11:29.290: INFO/DEBUG(207): ip 00009190 sp bea14970 lr 00008a99 pc afe1325a cpsr 40000030
11-18 21:11:29.340: INFO/DEBUG(207): #00 pc 0001325a /system/lib/libc.so
11-18 21:11:29.340: INFO/DEBUG(207): #01 pc 00008a96 /system/bin/oem_rpc_svc
11-18 21:11:29.340: INFO/DEBUG(207): #02 pc 00008b42 /system/bin/oem_rpc_svc
11-18 21:11:29.340: INFO/DEBUG(207): #03 pc 00008c2c /system/bin/oem_rpc_svc
11-18 21:11:29.340: INFO/DEBUG(207): #04 pc 0000c4f6 /system/lib/libc.so
11-18 21:11:29.350: INFO/DEBUG(207): #05 pc b00018aa /system/bin/linker
11-18 21:11:29.350: INFO/DEBUG(207): code around pc:
11-18 21:11:29.350: INFO/DEBUG(207): afe13248 226089a3 43931c20 f00081a3 bd10fad7
11-18 21:11:29.350: INFO/DEBUG(207): afe13258 8983b570 2b001c04 f00bd106 2501fdad
11-18 21:11:29.350: INFO/DEBUG(207): afe13268 60032309 e02f426d 071a2500 f000d502
11-18 21:11:29.350: INFO/DEBUG(207): code around lr:
11-18 21:11:29.350: INFO/DEBUG(207): 00008a88 f7ff1c30 2001ef66 1c30e003 ef60f7ff
11-18 21:11:29.350: INFO/DEBUG(207): 00008a98 4f062000 9c1159e6 429c6833 f7ffd001
11-18 21:11:29.350: INFO/DEBUG(207): 00008aa8 b013ef04 46c0bdf0 00000714 00000088
11-18 21:11:29.350: INFO/DEBUG(207): stack:
11-18 21:11:29.350: INFO/DEBUG(207): bea14930 00000000
11-18 21:11:29.350: INFO/DEBUG(207): bea14934 ffffffff
11-18 21:11:29.350: INFO/DEBUG(207): bea14938 afe3be90
11-18 21:11:29.350: INFO/DEBUG(207): bea1493c afe1edeb /system/lib/libc.so
11-18 21:11:29.360: INFO/DEBUG(207): bea14940 afe3be90
11-18 21:11:29.360: INFO/DEBUG(207): bea14944 afe11e33 /system/lib/libc.so
11-18 21:11:29.360: INFO/DEBUG(207): bea14948 00000000
11-18 21:11:29.360: INFO/DEBUG(207): bea1494c 00000000
11-18 21:11:29.360: INFO/DEBUG(207): bea14950 afe1391b /system/lib/libc.so
11-18 21:11:29.360: INFO/DEBUG(207): bea14954 00000000
11-18 21:11:29.360: INFO/DEBUG(207): bea14958 000001b6
11-18 21:11:29.360: INFO/DEBUG(207): bea1495c 00000000
11-18 21:11:29.360: INFO/DEBUG(207): bea14960 00000000
11-18 21:11:29.360: INFO/DEBUG(207): bea14964 00000000
11-18 21:11:29.360: INFO/DEBUG(207): bea14968 df002777
11-18 21:11:29.360: INFO/DEBUG(207): bea1496c e3a070ad
11-18 21:11:29.360: INFO/DEBUG(207): #00 bea14970 00009128 /system/bin/oem_rpc_svc
11-18 21:11:29.360: INFO/DEBUG(207): bea14974 bea14990 [stack]
11-18 21:11:29.360: INFO/DEBUG(207): bea14978 00000000
11-18 21:11:29.360: INFO/DEBUG(207): bea1497c 00008a99 /system/bin/oem_rpc_svc
11-18 21:11:29.360: INFO/DEBUG(207): #01 bea14980 00000000
11-18 21:11:29.360: INFO/DEBUG(207): bea14984 00008dcd /system/bin/oem_rpc_svc
11-18 21:11:29.360: INFO/DEBUG(207): bea14988 00000009
11-18 21:11:29.360: INFO/DEBUG(207): bea1498c bea14aa8 [stack]
11-18 21:11:29.360: INFO/DEBUG(207): bea14990 00000000
11-18 21:11:29.360: INFO/DEBUG(207): bea14994 00000000
11-18 21:11:29.360: INFO/DEBUG(207): bea14998 00000000
11-18 21:11:29.360: INFO/DEBUG(207): bea1499c 00000000
11-18 21:11:29.360: INFO/DEBUG(207): bea149a0 00000000
11-18 21:11:29.360: INFO/DEBUG(207): bea149a4 00000000
11-18 21:11:29.360: INFO/DEBUG(207): bea149a8 00000000
11-18 21:11:29.360: INFO/DEBUG(207): bea149ac 00000000
11-18 21:11:29.370: INFO/DEBUG(207): bea149b0 00000000
11-18 21:11:29.370: INFO/DEBUG(207): bea149b4 00000000
11-18 21:11:29.370: INFO/DEBUG(207): bea149b8 00000000
11-18 21:11:29.370: INFO/DEBUG(207): bea149bc 00000000
11-18 21:11:29.370: INFO/DEBUG(207): bea149c0 00000000
11-18 21:11:29.370: INFO/DEBUG(207): bea149c4 e5f8c626
11-18 21:11:29.370: INFO/DEBUG(207): bea149c8 00009128 /system/bin/oem_rpc_svc
11-18 21:11:29.370: INFO/DEBUG(207): bea149cc 00009128 /system/bin/oem_rpc_svc
11-18 21:11:29.370: INFO/DEBUG(207): bea149d0 bea14a0c [stack]
11-18 21:11:29.370: INFO/DEBUG(207): bea149d4 00000000
11-18 21:11:29.370: INFO/DEBUG(207): bea149d8 bea14aa8 [stack]
11-18 21:11:29.370: INFO/DEBUG(207): bea149dc 00008b47 /system/bin/oem_rpc_svc
11-18 21:11:30.680: INFO/DEBUG(207): debuggerd committing suicide to free the zombie!
11-18 21:11:33.500: INFO/DEBUG(240): debuggerd: Apr 17 2010 22:34:34
11-18 21:12:16.760: INFO/SamplingProfilerIntegration(211): Profiler is disabled.
11-18 21:12:16.840: INFO/Zygote(211): Preloading classes...
11-18 21:12:17.490: DEBUG/skia(211): ------ build_power_table 1.4
11-18 21:12:17.500: DEBUG/skia(211): ------ build_power_table 0.714286
11-18 21:12:30.580: INFO/Zygote(211): ...preloaded 1942 classes in 13743ms.
11-18 21:12:30.660: INFO/Zygote(211): Preloading resources...
11-18 21:12:31.150: WARN/Zygote(211): Preloaded drawable resource #0x1080062 (res/drawable/list_selector_background.xml) that varies with configuration!!
11-18 21:12:31.330: WARN/Resources(211): Converting to string: TypedValue{t=0x1c/d=0xff1a1a1a a=1 r=0x1080098}
11-18 21:12:31.330: WARN/Zygote(211): Preloaded drawable resource #0x1080098 (#ff1a1a1a) that varies with configuration!!
11-18 21:12:31.330: WARN/Resources(211): Converting to string: TypedValue{t=0x1c/d=0xffffffff a=1 r=0x1080099}
11-18 21:12:31.330: WARN/Zygote(211): Preloaded drawable resource #0x1080099 (#ffffffff) that varies with configuration!!
11-18 21:12:31.590: INFO/Zygote(211): ...preloaded 62 resources in 934ms.
11-18 21:12:31.710: INFO/Zygote(211): ...preloaded 15 resources in 122ms.
11-18 21:12:31.970: INFO/Zygote(211): Accepting command socket connections
11-18 21:12:32.050: DEBUG/ddm-heap(368): Got feature list request
11-18 21:12:32.320: WARN/dalvikvm(368): threadid=3: thread exiting with uncaught exception (group=0x40026278)
11-18 21:12:32.320: ERROR/AndroidRuntime(368): Uncaught handler: thread main exiting due to uncaught exception
11-18 21:12:32.320: ERROR/AndroidRuntime(368): *** EXCEPTION IN SYSTEM PROCESS. System will crash.
11-18 21:12:32.330: ERROR/AndroidRuntime(368): java.lang.UnsatisfiedLinkError: Library android_servers not found
11-18 21:12:32.330: ERROR/AndroidRuntime(368): at java.lang.Runtime.loadLibrary(Runtime.java:489)
11-18 21:12:32.330: ERROR/AndroidRuntime(368): at java.lang.System.loadLibrary(System.java:557)
11-18 21:12:32.330: ERROR/AndroidRuntime(368): at com.android.server.SystemServer.main(SystemServer.java:587)
11-18 21:12:32.330: ERROR/AndroidRuntime(368): at java.lang.reflect.Method.invokeNative(Native Method)
11-18 21:12:32.330: ERROR/AndroidRuntime(368): at java.lang.reflect.Method.invoke(Method.java:521)
11-18 21:12:32.330: ERROR/AndroidRuntime(368): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
11-18 21:12:32.330: ERROR/AndroidRuntime(368): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
11-18 21:12:32.330: ERROR/AndroidRuntime(368): at dalvik.system.NativeStart.main(Native Method)
11-18 21:12:32.340: ERROR/AndroidRuntime(368): Crash logging skipped, no checkin service
11-18 21:12:33.990: INFO/SamplingProfilerIntegration(375): Profiler is disabled.
11-18 21:12:34.040: INFO/Zygote(375): Preloading classes...
11-18 21:12:34.520: DEBUG/skia(375): ------ build_power_table 1.4
11-18 21:12:34.530: DEBUG/skia(375): ------ build_power_table 0.714286
11-18 21:12:45.300: INFO/Zygote(375): ...preloaded 1942 classes in 11253ms.
11-18 21:12:45.370: INFO/Zygote(375): Preloading resources...
11-18 21:12:45.820: WARN/Zygote(375): Preloaded drawable resource #0x1080062 (res/drawable/list_selector_background.xml) that varies with configuration!!
11-18 21:12:45.980: WARN/Resources(375): Converting to string: TypedValue{t=0x1c/d=0xff1a1a1a a=1 r=0x1080098}
11-18 21:12:45.980: WARN/Zygote(375): Preloaded drawable resource #0x1080098 (#ff1a1a1a) that varies with configuration!!
11-18 21:12:45.980: WARN/Resources(375): Converting to string: TypedValue{t=0x1c/d=0xffffffff a=1 r=0x1080099}
11-18 21:12:45.980: WARN/Zygote(375): Preloaded drawable resource #0x1080099 (#ffffffff) that varies with configuration!!
11-18 21:12:46.240: INFO/Zygote(375): ...preloaded 62 resources in 864ms.
11-18 21:12:46.350: INFO/Zygote(375): ...preloaded 15 resources in 111ms.
11-18 21:12:46.590: INFO/Zygote(375): Accepting command socket connections
11-18 21:12:46.670: DEBUG/ddm-heap(402): Got feature list request
11-18 21:12:46.880: WARN/dalvikvm(402): threadid=3: thread exiting with uncaught exception (group=0x40026278)
11-18 21:12:46.880: ERROR/AndroidRuntime(402): Uncaught handler: thread main exiting due to uncaught exception
11-18 21:12:46.880: ERROR/AndroidRuntime(402): *** EXCEPTION IN SYSTEM PROCESS. System will crash.
11-18 21:12:46.890: ERROR/AndroidRuntime(402): java.lang.UnsatisfiedLinkError: Library android_servers not found
11-18 21:12:46.890: ERROR/AndroidRuntime(402): at java.lang.Runtime.loadLibrary(Runtime.java:489)
11-18 21:12:46.890: ERROR/AndroidRuntime(402): at java.lang.System.loadLibrary(System.java:557)
11-18 21:12:46.890: ERROR/AndroidRuntime(402): at com.android.server.SystemServer.main(SystemServer.java:587)
11-18 21:12:46.890: ERROR/AndroidRuntime(402): at java.lang.reflect.Method.invokeNative(Native Method)
11-18 21:12:46.890: ERROR/AndroidRuntime(402): at java.lang.reflect.Method.invoke(Method.java:521)
11-18 21:12:46.890: ERROR/AndroidRuntime(402): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
11-18 21:12:46.890: ERROR/AndroidRuntime(402): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
11-18 21:12:46.890: ERROR/AndroidRuntime(402): at dalvik.system.NativeStart.main(Native Method)
11-18 21:12:46.900: ERROR/AndroidRuntime(402): Crash logging skipped, no checkin service

The most interesting stuff I saw there was at 11-18 21:11:30.680 :: DebuggerD killed it's own process. I don't know why did it so, but as you can see, it made the whole system crash, because it could not find android_servers library. But this particular library isn't even inside the original ROM!

Could someone please help solving this? I am trying to put together ROMs based on this all the day, no luck yet, sadly.