[A] Shared Libs elf text for stock shooter (Evo 3D) - HTC EVO 3D

Ok so this was something that I needed for Porting MIUI to the EVO 3D
the command in Linux is readelf -d liba2dp.so
Example of output
File: liba2dp.so
Dynamic section at offset 0xe048 contains 27 entries:
Tag Type Name/Value
0x00000003 (PLTGOT) 0xe12c
0x00000002 (PLTRELSZ) 320 (bytes)
0x00000017 (JMPREL) 0xcf4
0x00000014 (PLTREL) REL
0x00000011 (REL) 0xe34
0x00000012 (RELSZ) 16 (bytes)
0x00000013 (RELENT) 8 (bytes)
0x6ffffffa (RELCOUNT) 16
0x00000006 (SYMTAB) 0x34c
0x0000000b (SYMENT) 16 (bytes)
0x00000005 (STRTAB) 0x85c
0x0000000a (STRSZ) 1175 (bytes)
0x00000004 (HASH) 0xf4
0x00000001 (NEEDED) Shared library: [liblog.so]
0x00000001 (NEEDED) Shared library: [libcutils.so]
0x00000001 (NEEDED) Shared library: [libc.so]
0x00000001 (NEEDED) Shared library: [libstdc++.so]
0x00000001 (NEEDED) Shared library: [libm.so]
0x0000000e (SONAME) Library soname: [liba2dp.so]
0x00000019 (INIT_ARRAY) 0xe000
0x0000001b (INIT_ARRAYSZ) 8 (bytes)
0x0000001a (FINI_ARRAY) 0xe008
0x0000001c (FINI_ARRAYSZ) 12 (bytes)
0x00000016 (TEXTREL) 0x0
0x00000010 (SYMBOLIC) 0x0
0x0000001e (FLAGS) SYMBOLIC TEXTREL
0x00000000 (NULL) 0x0
I have included all of the readelf in a text below
Hope this helps some of you!

Ok thats great! thank

Related

[Q] help with ndk build

hello guys,
I need to use a native library in my app but with all the ways I've tryed to build it, I get the following warning:
Code:
10-11 10:33:51.095: WARN/dalvikvm(337): No implementation found for native L[I](path to my activity)[/I];.Init (Ljava/lang/String;IIIII)I
and then the error
Code:
10-11 10:33:51.115: ERROR/AndroidRuntime(337): java.lang.UnsatisfiedLinkError: Init
I have downloaded the library and I'm not familiar with c++ to modify or debug it if that is the case but I believe that my error comes from the Android.mk file which was like this when downloaded:
Code:
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := gifflen
LOCAL_SRC_FILES := gifflen.cpp
LOCAL_LDLIBS := -L/cygdrive/c/android-ndk-1.5_r1-windows/android-ndk-1.5_r1/build/platforms/android-1.5/arch-arm/usr/lib -llog
include $(BUILD_SHARED_LIBRARY)
but because i use linux and ndk-r6b, i've modyfied it like:
Code:
LOCAL_LDLIBS += -L/home/me/android-ndk-r6b/platforms/android-3/arch-arm/usr/include/android/ -llog
This may be useful too:
Code:
$ readelf -d libgifflen.so
Dynamic section at offset 0x53ac contains 26 entries:
Tag Type Name/Value
[B]0x00000001 (NEEDED) Shared library: [liblog.so][/B]
0x00000001 (NEEDED) Shared library: [libstdc++.so]
0x00000001 (NEEDED) Shared library: [libm.so]
0x00000001 (NEEDED) Shared library: [libc.so]
0x00000001 (NEEDED) Shared library: [libdl.so]
0x0000000e (SONAME) Library soname: [libgifflen.so]
0x00000010 (SYMBOLIC) 0x0
0x00000019 (INIT_ARRAY) 0x6394
0x0000001b (INIT_ARRAYSZ) 12 (bytes)
0x0000001a (FINI_ARRAY) 0x63a0
0x0000001c (FINI_ARRAYSZ) 12 (bytes)
0x00000004 (HASH) 0xd4
0x00000005 (STRTAB) 0xf54
0x00000006 (SYMTAB) 0x564
0x0000000a (STRSZ) 2464 (bytes)
0x0000000b (SYMENT) 16 (bytes)
0x00000003 (PLTGOT) 0x649c
0x00000002 (PLTRELSZ) 176 (bytes)
0x00000014 (PLTREL) REL
0x00000017 (JMPREL) 0x19e4
0x00000011 (REL) 0x18f4
0x00000012 (RELSZ) 240 (bytes)
0x00000013 (RELENT) 8 (bytes)
0x00000016 (TEXTREL) 0x0
0x6ffffffa (RELCOUNT) 28
0x00000000 (NULL) 0x0
Any help would be greatly appreciated and I thank you for your time in advance,
cheers!
Please use the Q&A Forum for questions Thanks
Moving to Q&A

RUU 3.11.605.22 - Reboots - kmsg log hel

I am running RUU 3.11.605.22 rooted, running on GSM frequencies (WCDMA preffered)
I have random reboots and the last time I pulled the kmsg log
Code:
[14454.206604] [PM] hTC PM Statistic
[14454.206939] 03-23 23:49:44
[14454.207519] 17: 857 gp_timer
[14454.208892] 48: 51 msmgpio
[14454.209991] 54: 185 pm_drv
[14454.211090] 69: 6 smd_dev
[14454.212463] 107: 123 MDP
[14454.213562] 112: 116 kgsl-3d0
[14454.214660] 133: 598 mmc3
[14454.215484] , msm-sdcc (pio)
[14454.218872] 136: 380 mmc0
[14454.219696] , msm-sdcc (pio)
[14454.220581] 187: 1 qup_err_intr
[14454.221679] 199: 224 msmdatamover
[14454.223052] 220: 90 mmc4
[14454.223876] , msm-sdcc (pio)
[14454.224670] 228: 97 qup_err_intr
[14454.225799] 244: 281 kgsl-2d1
[14454.228698] 302: 49 bcmsdh_sdmmc
[14454.229888] 355: 1 msm-sdccsdiowakeup
[14454.231018] 373: 1 atmel_mxt224e
[14454.233154] C0: 825 2645ms
[14454.233428] C1: 69 460ms
[14454.233703] C2: 192 3869ms
[14454.233978] CPU0 usage: 30
[14454.234527] MPSS avtive (5451481ms)
[14454.234802] LPASS sleep (14579197ms)
[14454.235076] 518, 0 swapper hrtimer_start_range_ns (tick_sched_
timer)
[14454.238464] 1310 total events, 130.465 events/sec
[14454.238800] wakelock: 'main' 'wlan_rx_wake', time left 38;
[14454.248138] CPU Usage PID Name
[14454.248443] 11% 13915 uoord.tapatalk2
114
[14454.248748] 5% 14219 ag.trackchecker
54
[14454.249267] 3% 122 surfaceflinger
40
[14454.249572] 1% 572 ndroid.systemui
16
[14454.250091] 1% 260 system_server
15
[14454.719238] [DISP] [SR] 1
[14455.469665] [DISP] WV
[14455.470031] [DISP] [SR] 0
[14457.054046] [DISP] [SR] 1
[14461.236328] [VIB] pm8xxx_vib_enable, InputReader(parent:zygote): vibrates 0 m
sec
[14461.244049] [VIB] pm8xxx_vib_enable, Thread-299(parent:zygote): vibrates 10 m
sec
[14461.244598] [ATS][set_vibration][successful]
[14461.255310] [VIB]pm8xxx_vib_timer_func
[14461.279357] [VIB] pm8xxx_vib_enable, Thread-299(parent:zygote): vibrates 30 m
sec
[14461.279632] [ATS][set_vibration][successful]
[14461.310150] [VIB]pm8xxx_vib_timer_func
[14461.645965] [DISP] WV
[14461.646545] [DISP] [SR] 0
[14464.246185] [PM] hTC PM Statistic
[14464.246307] 03-23 23:49:54
[14464.246490] 17: 861 gp_timer
[14464.246887] 48: 177 msmgpio
[14464.247344] 54: 154 pm_drv
[14464.247711] 69: 10 smd_dev
[14464.248107] 107: 104 MDP
[14464.248443] 112: 2 kgsl-3d0
[14464.248901] 114: 14 MIPI_DSI
[14464.249267] 133: 1443 mmc3
[14464.249572] , msm-sdcc (pio)
[14464.249847] 136: 1470 mmc0
[14464.250183] , msm-sdcc (pio)
[14464.250488] 187: 49 qup_err_intr
[14464.250885] 199: 399 msmdatamover
[14464.251342] 220: 64 mmc4
[14464.251617] , msm-sdcc (pio)
[14464.251892] 228: 97 qup_err_intr
[14464.252288] 244: 248 kgsl-2d1
[14464.252746] 284: 4 vsync
[14464.253143] 302: 122 bcmsdh_sdmmc
[14464.253540] 355: 2 msm-sdccsdiowakeup
[14464.253906] 373: 49 atmel_mxt224e
[14464.254547] C0: 836 2166ms
[14464.254638] C1: 21 144ms
[14464.254760] C2: 164 4964ms
[14464.254913] CPU0 usage: 27
[14464.255035] MPSS avtive (5451481ms)
[14464.255126] LPASS sleep (14589218ms)
[14464.255218] 454, 0 swapper hrtimer_start_range_ns (tick_sched_
timer)
[14464.255767] 1333 total events, 133.087 events/sec
[14464.255889] wakelock: 'main' 'wlan_rx_wake', time left 97;
[14464.261291] CPU Usage PID Name
[14464.261413] 14% 13915 uoord.tapatalk2
149
[14464.261596] 3% 260 system_server
31
[14464.261688] 2% 14219 ag.trackchecker
21
[14464.261779] 1% 122 surfaceflinger
19
[14464.261962] 0% 3 ksoftirqd/0
6
[14466.632843] [DISP] [SR] 1
[14468.820678] [DISP] WV
[14468.821319] [DISP] [SR] 0
[14470.638793] [DISP] [SR] 1
[14474.286407] [PM] hTC PM Statistic
[14474.286682] 03-23 23:50:04
[14474.287231] 17: 645 gp_timer
[14474.288574] 48: 185 msmgpio
[14474.289642] 54: 151 pm_drv
[14474.290771] 107: 28 MDP
[14474.291839] 114: 9 MIPI_DSI
[14474.293151] 133: 2034 mmc3
[14474.293945] , msm-sdcc (pio)
[14474.294738] 136: 190 mmc0
[14474.295532] , msm-sdcc (pio)
[14474.299163] 199: 566 msmdatamover
[14474.300292] 228: 93 qup_err_intr
[14474.301361] 244: 56 kgsl-2d1
[14474.302703] 284: 2 vsync
[14474.303771] 302: 183 bcmsdh_sdmmc
[14474.305664] C0: 593 1811ms
[14474.305938] C1: 26 165ms
[14474.308074] C2: 163 5924ms
[14474.309356] CPU0 usage: 20
[14474.309661] MPSS avtive (5451481ms)
[14474.309936] LPASS sleep (14599272ms)
[14474.310455] 376, 0 swapper hrtimer_start_range_ns (tick_sched_
timer)
[14474.311828] 1077 total events, 107.121 events/sec
[14474.312408] wakelock: 'main'
[14474.320739] CPU Usage PID Name
[14474.321044] 11% 13915 uoord.tapatalk2
114
[14474.321563] 2% 14219 ag.trackchecker
21
[14474.321838] 1% 163 dhd_dpc 15
[14474.322113] 0% 260 system_server
8
[14474.322631] 0% 3 ksoftirqd/0
6
[14482.664825] [SMD] MODEM/AMSS has CRASHED
[14482.665161] [SMD] smem: DIAG 'MOD rr_main.c 00860
'
[14482.665771] pm8058_stay_on: set stay-on: rc = 0
[14482.766296] Going down for restart now
[14482.766784] arch_reset: mode 2
[14482.767059] arch_reset: restart command `force-hard'.
[14482.868103] subsystem-fatal-8x60: Q6 NMI was sent.
[14482.868621] msm_watchdog_suspend
[14482.868957] [<c00522b4>] (unwind_backtrace+0x0/0xf0) from [<c00c8874>] (arch_
reset+0x2e4/0x508)
[14482.869506] [<c00c8874>] (arch_reset+0x2e4/0x508) from [<c0063124>] (handle_m
odem_crash+0x3c/0x50)
[14482.870056] [<c0063124>] (handle_modem_crash+0x3c/0x50) from [<c006329c>] (sm
sm_irq_handler+0xac/0x188)
[14482.870361] [<c006329c>] (smsm_irq_handler+0xac/0x188) from [<c011222c>] (han
dle_irq_event_percpu+0x30/0x150)
[14482.871154] [<c011222c>] (handle_irq_event_percpu+0x30/0x150) from [<c0112388
>] (handle_irq_event+0x3c/0x5c)
[14482.871704] [<c0112388>] (handle_irq_event+0x3c/0x5c) from [<c0114e9c>] (hand
le_fasteoi_irq+0xd0/0x108)
[14482.872253] [<c0114e9c>] (handle_fasteoi_irq+0xd0/0x108) from [<c0111d68>] (g
eneric_handle_irq+0x2c/0x40)
[14482.872802] [<c0111d68>] (generic_handle_irq+0x2c/0x40) from [<c004d488>] (ha
ndle_IRQ+0x7c/0xc0)
[14482.873321] [<c004d488>] (handle_IRQ+0x7c/0xc0) from [<c004c58c>] (__irq_svc+
0x4c/0xe4)
[14482.873657] [<c004c58c>] (__irq_svc+0x4c/0xe4) from [<c009d2d8>] (msm_cpuidle
_enter+0x64/0x74)
[14482.874206] [<c009d2d8>] (msm_cpuidle_enter+0x64/0x74) from [<c034d03c>] (cpu
idle_idle_call+0xc8/0x130)
[14482.874725] [<c034d03c>] (cpuidle_idle_call+0xc8/0x130) from [<c004dab4>] (cp
u_idle+0x84/0xe8)
[14482.875274] [<c004dab4>] (cpu_idle+0x84/0xe8) from [<c0008944>] (start_kernel
+0x2b8/0x314)
[14482.875793] [<c0008944>] (start_kernel+0x2b8/0x314) from [<48808040>] (0x4880
8040)
[14482.876098] task PC stack pid father
[14482.876617] kworker/u:0 D c04dc9fc 0 5 2 0x00000000
[14482.877471] [<c04dc9fc>] (__schedule+0x4f8/0x5cc) from [<c00a3308>] (worker+0
x108/0x1fc)
[14482.878021] [<c00a3308>] (worker+0x108/0x1fc) from [<c00eb648>] (process_one_
work+0x248/0x3a4)
[14482.878570] [<c00eb648>] (process_one_work+0x248/0x3a4) from [<c00ebb80>] (wo
rker_thread+0x224/0x3e0)
[14482.879119] [<c00ebb80>] (worker_thread+0x224/0x3e0) from [<c00f14f4>] (kthre
ad+0x80/0x88)
[14482.879425] [<c00f14f4>] (kthread+0x80/0x88) from [<c004d69c>] (kernel_thread
_exit+0x0/0x8)
[14482.879974] kworker/u:1 D c04dc9fc 0 74 2 0x00000000
[14482.881042] [<c04dc9fc>] (__schedule+0x4f8/0x5cc) from [<c00a3308>] (worker+0
x108/0x1fc)
[14482.881347] [<c00a3308>] (worker+0x108/0x1fc) from [<c00eb648>] (process_one_
work+0x248/0x3a4)
[14482.881896] [<c00eb648>] (process_one_work+0x248/0x3a4) from [<c00ebb80>] (wo
rker_thread+0x224/0x3e0)
[14482.882446] [<c00ebb80>] (worker_thread+0x224/0x3e0) from [<c00f14f4>] (kthre
ad+0x80/0x88)
[14482.882995] [<c00f14f4>] (kthread+0x80/0x88) from [<c004d69c>] (kernel_thread
_exit+0x0/0x8)
[14482.883300] kinteractiveup D c04dc9fc 0 94 2 0x00000000
[14482.884338] [<c04dc9fc>] (__schedule+0x4f8/0x5cc) from [<c00f14dc>] (kthread+
0x68/0x88)
[14482.884857] [<c00f14dc>] (kthread+0x68/0x88) from [<c004d69c>] (kernel_thread
_exit+0x0/0x8)
[14482.885253] krmt_storagecln D c04dc9fc 0 253 2 0x00000000
[14482.886322] [<c04dc9fc>] (__schedule+0x4f8/0x5cc) from [<c0069c74>] (__msm_rp
c_read+0x120/0x708)
[14482.886871] [<c0069c74>] (__msm_rpc_read+0x120/0x708) from [<c006a26c>] (msm_
rpc_read+0x10/0x78)
[14482.887176] [<c006a26c>] (msm_rpc_read+0x10/0x78) from [<c006c5d4>] (rpc_clie
nts_thread+0x54/0x204)
[14482.887725] [<c006c5d4>] (rpc_clients_thread+0x54/0x204) from [<c00f14f4>] (k
thread+0x80/0x88)
[14482.888244] [<c00f14f4>] (kthread+0x80/0x88) from [<c004d69c>] (kernel_thread
_exit+0x0/0x8)
[14482.888763] krmt_storagecln D c04dc9fc 0 254 2 0x00000000
[14482.889617] [<c04dc9fc>] (__schedule+0x4f8/0x5cc) from [<c006c460>] (rpc_clie
nts_cb_thread+0x84/0x1a4)
[14482.890167] [<c006c460>] (rpc_clients_cb_thread+0x84/0x1a4) from [<c00f14f4>]
(kthread+0x80/0x88)
[14482.890686] [<c00f14f4>] (kthread+0x80/0x88) from [<c004d69c>] (kernel_thread
_exit+0x0/0x8)
[14482.891265] kworker/u:5 D c04dc9fc 0 286 2 0x00000000
[14482.892089] [<c04dc9fc>] (__schedule+0x4f8/0x5cc) from [<c0067e54>] (rr_read+
0x128/0x154)
[14482.892639] [<c0067e54>] (rr_read+0x128/0x154) from [<c0067fa8>] (do_read_dat
a+0x20/0xcc4)
[14482.893188] [<c0067fa8>] (do_read_data+0x20/0xcc4) from [<c00eb648>] (process
_one_work+0x248/0x3a4)
[14482.893707] [<c00eb648>] (process_one_work+0x248/0x3a4) from [<c00ebb80>] (wo
rker_thread+0x224/0x3e0)
[14482.894042] [<c00ebb80>] (worker_thread+0x224/0x3e0) from [<c00f14f4>] (kthre
ad+0x80/0x88)
[14482.894561] [<c00f14f4>] (kthread+0x80/0x88) from [<c004d69c>] (kernel_thread
_exit+0x0/0x8)
[14482.895080] krmt_storagecln D c04dc9fc 0 290 2 0x00000000
[14482.895904] [<c04dc9fc>] (__schedule+0x4f8/0x5cc) from [<c0069c74>] (__msm_rp
c_read+0x120/0x708)
[14482.896453] [<c0069c74>] (__msm_rpc_read+0x120/0x708) from [<c006a26c>] (msm_
rpc_read+0x10/0x78)
[14482.896972] [<c006a26c>] (msm_rpc_read+0x10/0x78) from [<c006c5d4>] (rpc_clie
nts_thread+0x54/0x204)
[14482.897521] [<c006c5d4>] (rpc_clients_thread+0x54/0x204) from [<c00f14f4>] (k
thread+0x80/0x88)
[14482.898040] [<c00f14f4>] (kthread+0x80/0x88) from [<c004d69c>] (kernel_thread
_exit+0x0/0x8)
[14482.898345] krmt_storagecln D c04dc9fc 0 291 2 0x00000000
[14482.899383] [<c04dc9fc>] (__schedule+0x4f8/0x5cc) from [<c006c460>] (rpc_clie
nts_cb_thread+0x84/0x1a4)
[14482.899932] [<c006c460>] (rpc_clients_cb_thread+0x84/0x1a4) from [<c00f14f4>]
(kthread+0x80/0x88)
[14482.900238] [<c00f14f4>] (kthread+0x80/0x88) from [<c004d69c>] (kernel_thread
_exit+0x0/0x8)
[14482.900939] kworker/u:3 D c04dc9fc 0 8328 2 0x00000000
[14482.902008] [<c04dc9fc>] (__schedule+0x4f8/0x5cc) from [<c0067e54>] (rr_read+
0x128/0x154)
[14482.902313] [<c0067e54>] (rr_read+0x128/0x154) from [<c0067fa8>] (do_read_dat
a+0x20/0xcc4)
[14482.902832] [<c0067fa8>] (do_read_data+0x20/0xcc4) from [<c00eb648>] (process
_one_work+0x248/0x3a4)
[14482.903381] [<c00eb648>] (process_one_work+0x248/0x3a4) from [<c00ebb80>] (wo
rker_thread+0x224/0x3e0)
[14482.903930] [<c00ebb80>] (worker_thread+0x224/0x3e0) from [<c00f14f4>] (kthre
ad+0x80/0x88)
[14482.904449] [<c00f14f4>] (kthread+0x80/0x88) from [<c004d69c>] (kernel_thread
_exit+0x0/0x8)
[14482.904907] [wq_list] events[0]: 0x0
[14482.905426] [wq_list] events[-1]: 0x0
[14482.905700] [wq_list] events[-2]: 0x0
[14482.905975] [wq_list] events[-3]: 0x0
[14482.906463] [wq_list] events[-4]: 0x0
[14482.906738] [wq_list] events[-5]: 0x0
[14482.907012] [wq_list] events[-6]: 0x0
[14482.907531] [wq_list] events[-7]: 0x0
[14482.907806] [wq_list] events[-8]: 0x0
[14482.908081] [wq_list] events[-9]: 0x0
[14482.908599] [wq_list] events[-10]: 0x0
[14482.908874] [wq_list] events[-11]: 0x0
[14482.909149] [wq_list] events[-12]: 0x0
[14482.909423] [wq_list] events[-13]: 0x0
[14482.909698] [wq_list] events[-14]: 0x0
[14482.909973] [wq_list] events[-15]: 0x0
[14482.910247] [wq_list] events[-16]: 0x0
[14482.910766] [wq_list] events[-17]: 0x0
[14482.911041] [wq_list] events[-18]: 0x0
[14482.911315] [wq_list] events[-19]: 0x0
[14482.911804] msm_watchdog_resume
[14489.100463] charm_panic_wait_mdm_shutdown: MDM2AP_ERRFATAL never went high in
6000(ms)!
[14489.101013]
[14489.101287] Restarting Linux version 3.0.16-g4a9c8a3 ([email protected]
-144) (gcc version 4.4.3 (GCC) ) #1 SMP PREEMPT Sat Mar 10 02:14:49 CST 2012
[14489.101318]
[14489.152191] restart: Console was locked!
No errors detected
Any dev or someone that can help tell me what is happening?
Modem crash (?) and a possible fix maybe
TIA
kmsg is kernel log.....kernel logs would do good if we had kernel source but we dont so they dont really do anything a logcat would be better atm
How can I capture a logcat since it reboots? Boot to recovery and pull it before it erases it?
Sent from my ADR6425LVW using Tapatalk 2 Beta-2

[Q] Can't Run Compiled Cm10 4.1.2 On Emulator. No Suitable Kernel?

I have compiled the cm10 "deviced" generic/armv7-a. AND FOLLOW the instruction to run on emulator:http://wiki.cyanogen...ogenMod_(Linux)
try to run in the emulator with both the SDK android-16 kernel-qemu AND THE KERNEL in CM's repo prebuilts/qemu-kernel/arm/kernel-qemu-armv7
, but failed with black screen,not even textual "A N D R O I D". I dumped the kernel log
<6>Initializing cgroup subsys cpu
<5>Linux version 2.6.29-gc497e41 ([email protected]) (gcc version 4.4.3 (GCC) ) #2 Thu Dec 8 15:07:43 PST 2011
<4>CPU: ARMv7 Processor [410fc080] revision 0 (ARMv7), cr=10c5387f
<4>CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
<4>Machine: Goldfish
<4>Memory policy: ECC disabled, Data cache writeback
<7>On node 0 totalpages: 87808
<7>free_area_init_node: node 0, pgdat c02f5a20, node_mem_map c0382000
<7> Normal zone: 686 pages used for memmap
<7> Normal zone: 0 pages reserved
<7> Normal zone: 87122 pages, LIFO batch:15
<4>Built 1 zonelists in Zone order, mobility grouping on. Total pages: 87122
<5>Kernel command line: qemu.gles=1 qemu=1 console=ttyS0 android.qemud=ttyS1 android.checkjni=1 ndns=1
<3>Unknown boot option `qemu.gles=1': ignoring
<3>Unknown boot option `android.qemud=ttyS1': ignoring
<3>Unknown boot option `android.checkjni=1': ignoring
<4>PID hash table entries: 2048 (order: 11, 8192 bytes)
<4>Console: colour dummy device 80x30
<6>Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
<6>Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
<6>Memory: 343MB = 343MB total
<5>Memory: 344064KB available (2756K code, 683K data, 108K init)
<6>Calibrating delay loop... 558.69 BogoMIPS (lpj=2793472)
<4>Mount-cache hash table entries: 512
<6>Initializing cgroup subsys debug
<6>Initializing cgroup subsys cpuacct
<6>Initializing cgroup subsys freezer
<6>CPU: Testing write buffer coherency: ok
<6>net_namespace: 716 bytes
<6>NET: Registered protocol family 16
<4>bio: create slab <bio-0> at 0
<7>Switched to high resolution mode on CPU 0
<6>NET: Registered protocol family 2
<6>IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
<6>TCP established hash table entries: 16384 (order: 5, 131072 bytes)
<6>TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
<6>TCP: Hash tables configured (established 16384 bind 16384)
<6>TCP reno registered
<6>NET: Registered protocol family 1
<6>checking if image is initramfs... it is
<6>Freeing initrd memory: 164K
<4>goldfish_new_pdev goldfish_interrupt_controller at ff000000 irq -1
<4>goldfish_new_pdev goldfish_device_bus at ff001000 irq 1
<4>goldfish_new_pdev goldfish_timer at ff003000 irq 3
<4>goldfish_new_pdev goldfish_rtc at ff010000 irq 10
<4>goldfish_new_pdev goldfish_tty at ff002000 irq 4
<4>goldfish_new_pdev goldfish_tty at ff011000 irq 11
<4>goldfish_new_pdev goldfish_tty at ff012000 irq 12
<4>goldfish_new_pdev smc91x at ff013000 irq 13
<4>goldfish_new_pdev goldfish_fb at ff014000 irq 14
<4>goldfish_new_pdev goldfish_audio at ff004000 irq 15
<4>goldfish_new_pdev goldfish_memlog at ff006000 irq -1
<4>goldfish_new_pdev goldfish_events at ff015000 irq 16
<4>goldfish_new_pdev goldfish_nand at ff016000 irq -1
<4>goldfish_new_pdev qemu_pipe at ff017000 irq 17
<4>goldfish_new_pdev goldfish-switch at ff019000 irq 18
<4>goldfish_new_pdev goldfish-switch at ff01a000 irq 19
<4>goldfish_pdev_worker registered goldfish_interrupt_controller
<4>goldfish_pdev_worker registered goldfish_device_bus
<4>goldfish_pdev_worker registered goldfish_timer
<4>goldfish_pdev_worker registered goldfish_rtc
<4>goldfish_pdev_worker registered goldfish_tty
<4>goldfish_pdev_worker registered goldfish_tty
<4>goldfish_pdev_worker registered goldfish_tty
<4>goldfish_pdev_worker registered smc91x
<4>goldfish_pdev_worker registered goldfish_fb
<4>goldfish_pdev_worker registered goldfish_audio
<4>goldfish_pdev_worker registered goldfish_memlog
<4>goldfish_pdev_worker registered goldfish_events
<4>goldfish_pdev_worker registered goldfish_nand
<4>goldfish_pdev_worker registered qemu_pipe
<4>goldfish_pdev_worker registered goldfish-switch
<4>goldfish_pdev_worker registered goldfish-switch
<6>ashmem: initialized
<6>Installing knfsd (copyright (C) 1996 [email protected]).
<4>yaffs Dec 8 2011 15:06:54 Installing.
<6>msgmni has been set to 672
<6>alg: No test for stdrng (krng)
<6>io scheduler noop registered
<6>io scheduler anticipatory registered (default)
<6>io scheduler deadline registered
<6>io scheduler cfq registered
<4>allocating frame buffer 480 * 800, got ffa00000
<6>console [ttyS0] enabled
<6>brd: module loaded
<6>loop: module loaded
<6>nbd: registered device at major 43
<4>goldfish_audio_probe
<6>tun: Universal TUN/TAP device driver, 1.6
<6>tun: (C) 1999-2004 Max Krasnyansky <[email protected]>
<4>smc91x.c: v1.1, sep 22 2004 by Nicolas Pitre <[email protected]>
<6>eth0 (smc91x): not using net_device_ops yet
<4>eth0: SMC91C11xFD (rev 1) at d580c000 IRQ 13 [nowait]
<4>eth0: Ethernet addr: 52:54:00:12:34:56
<7>eth0: No PHY found
<4>goldfish nand dev0: size c200000, page 2048, extra 64, erase 131072
<4>goldfish nand dev1: size c200000, page 2048, extra 64, erase 131072
<4>goldfish nand dev2: size 4000000, page 2048, extra 64, erase 131072
<6>mice: PS/2 mouse device common for all mice
<4>*** events probe ***
<4>events_probe() addr=0xd5814000 irq=16
<4>events_probe() keymap=qwerty2
<6>input: qwerty2 as /devices/virtual/input/input0
<6>goldfish_rtc goldfish_rtc: rtc core: registered goldfish_rtc as rtc0
<6>device-mapper: uevent: version 1.0.3
<6>device-mapper: ioctl: 4.14.0-ioctl (2008-04-23) initialised: [email protected]
<6>logger: created 64K log 'log_main'
<6>logger: created 256K log 'log_events'
<6>logger: created 64K log 'log_radio'
<6>TCP cubic registered
<6>NET: Registered protocol family 10
<6>IPv6 over IPv4 tunneling driver
<6>NET: Registered protocol family 17
<6>NET: Registered protocol family 15
<6>RPC: Registered udp transport module.
<6>RPC: Registered tcp transport module.
<6>802.1Q VLAN Support v1.8 Ben Greear <[email protected]>
<6>All bugs added by David S. Miller <[email protected]>
<6>VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 0
<6>goldfish_rtc goldfish_rtc: setting system clock to 2012-12-07 07:15:01 UTC (1354864501)
<6>Freeing init memory: 108K
<3>init: could not import file '/init.trace.rc' from '/init.rc'
<3>init: could not import file '/init.cm.rc' from '/init.rc'
<3>init: cannot open '/initlogo.rle'
<6>yaffs: dev is 32505856 name is "mtdblock0"
<6>yaffs: passed flags ""
<4>yaffs: Attempting MTD mount on 31.0, "mtdblock0"
<4>yaffs_read_super: isCheckpointed 0
<4>save exit: isCheckpointed 1
<6>yaffs: dev is 32505857 name is "mtdblock1"
<6>yaffs: passed flags ""
<4>yaffs: Attempting MTD mount on 31.1, "mtdblock1"
<4>yaffs_read_super: isCheckpointed 0
<6>yaffs: dev is 32505858 name is "mtdblock2"
<6>yaffs: passed flags ""
<4>yaffs: Attempting MTD mount on 31.2, "mtdblock2"
<4>yaffs_read_super: isCheckpointed 0
<3>init: cannot find '/system/bin/rild', disabling 'ril-daemon'
<6>eth0: link up
<6>request_suspend_state: wakeup (3->0) at 5024537940 (2012-12-07 07:15:05.946403531 UTC)
<6>request_suspend_state: wakeup (0->0) at 8038153272 (2012-12-07 07:15:08.960029916 UTC)
<3>init: untracked pid 203 exited
<7>eth0: no IPv6 routers present
<6>request_suspend_state: wakeup (0->0) at 13093743275 (2012-12-07 07:15:14.015619616 UTC)
<3>init: untracked pid 267 exited
<6>request_suspend_state: wakeup (0->0) at 18172982800 (2012-12-07 07:15:19.094859343 UTC)
<3>init: untracked pid 336 exited
<6>request_suspend_state: wakeup (0->0) at 23250891897 (2012-12-07 07:15:24.172746412 UTC)
<3>init: untracked pid 407 exited
<6>request_suspend_state: wakeup (0->0) at 28342599390 (2012-12-07 07:15:29.264476245 UTC)
<3>init: untracked pid 477 exited
<6>request_suspend_state: wakeup (0->0) at 33350444560 (2012-12-07 07:15:34.272321003 UTC)
<3>init: untracked pid 540 exited
WHAT'S WRONG? SOMEONE can help ME?

[Q] Test minimal Android build on emulator

I build a minimal android distribution using a modified mako build(with embedded.mk instead of full aosp). When i tried to test this image on the emulator i run into the problem that the kernel cannot mount my system partition[1]. I started the emulator with "emulator -show-kernel -data userdata.img -ramdisk ramdisk.img @nexus4"(both images are from my build and the configuration is for nexus4). So how can i test my custom build?
[1]
serial0 console
Uncompressing Linux... done, booting the kernel.
Booting Linux on physical CPU 0
Initializing cgroup subsys cpu
Linux version 3.4.0-gd853d22 ([email protected]) (gcc version 4.6.x-google 20120106 (prerelease) (GCC) ) #1 PREEMPT Tue Jul 9 17:46:46 PDT 2013
CPU: ARMv7 Processor [410fc080] revision 0 (ARMv7), cr=10c53c7d
CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
Machine: Goldfish
Truncating RAM at 00000000-772fffff to -2f7fffff (vmalloc region overlap).
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 193040
Kernel command line: qemu.gles=0 qemu=1 console=ttyS0 android.qemud=ttyS1 android.checkjni=1 ndns=2
PID hash table entries: 4096 (order: 2, 16384 bytes)
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 760MB = 760MB total
Memory: 764912k/764912k available, 13328k reserved, 0K highmem
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
vmalloc : 0xf0000000 - 0xff000000 ( 240 MB)
lowmem : 0xc0000000 - 0xef800000 ( 760 MB)
.text : 0xc0008000 - 0xc044a190 (4361 kB)
.init : 0xc044b000 - 0xc0470000 ( 148 kB)
.data : 0xc0470000 - 0xc04a8fc0 ( 228 kB)
.bss : 0xc04a9000 - 0xc05f33c8 (1321 kB)
NR_IRQS:256
sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 4294967286ms
Console: colour dummy device 80x30
Calibrating delay loop... 242.07 BogoMIPS (lpj=1210368)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux: Initializing.
Mount-cache hash table entries: 512
Initializing cgroup subsys debug
Initializing cgroup subsys cpuacct
Initializing cgroup subsys freezer
CPU: Testing write buffer coherency: ok
Setting up static identity map for 0x35e610 - 0x35e668
NET: Registered protocol family 16
bio: create slab <bio-0> at 0
Switching to clocksource goldfish_timer
NET: Registered protocol family 2
IP route cache hash table entries: 32768 (order: 5, 131072 bytes)
TCP established hash table entries: 131072 (order: 8, 1048576 bytes)
TCP bind hash table entries: 65536 (order: 6, 262144 bytes)
TCP: Hash tables configured (established 131072 bind 65536)
TCP: reno registered
UDP hash table entries: 512 (order: 1, 8192 bytes)
UDP-Lite hash table entries: 512 (order: 1, 8192 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 312K
goldfish_new_pdev goldfish_interrupt_controller at ff000000 irq -1
goldfish_new_pdev goldfish_device_bus at ff001000 irq 1
goldfish_new_pdev goldfish_timer at ff003000 irq 3
goldfish_new_pdev goldfish_rtc at ff010000 irq 10
goldfish_new_pdev goldfish_tty at ff002000 irq 4
goldfish_new_pdev goldfish_tty at ff011000 irq 11
goldfish_new_pdev goldfish_tty at ff012000 irq 12
goldfish_new_pdev smc91x at ff013000 irq 13
goldfish_new_pdev goldfish_fb at ff014000 irq 14
goldfish_new_pdev goldfish_audio at ff004000 irq 15
goldfish_new_pdev goldfish_memlog at ff006000 irq -1
goldfish_new_pdev goldfish-battery at ff015000 irq 16
goldfish_new_pdev goldfish_events at ff016000 irq 17
goldfish_new_pdev goldfish_nand at ff017000 irq -1
goldfish_new_pdev qemu_pipe at ff018000 irq 18
goldfish_new_pdev goldfish-switch at ff01a000 irq 19
goldfish_new_pdev goldfish-switch at ff01b000 irq 20
goldfish_pdev_worker registered goldfish_interrupt_controller
goldfish_pdev_worker registered goldfish_device_bus
goldfish_pdev_worker registered goldfish_timer
goldfish_pdev_worker registered goldfish_rtc
goldfish_pdev_worker registered goldfish_tty
goldfish_pdev_worker registered goldfish_tty
audit: initializing netlink socket (disabled)
type=2000 audit(0.380:1): initialized
goldfish_pdev_worker registered goldfish_tty
goldfish_pdev_worker registered smc91x
goldfish_pdev_worker registered goldfish_fb
goldfish_pdev_worker registered goldfish_audio
goldfish_pdev_worker registered goldfish_memlog
goldfish_pdev_worker registered goldfish-battery
goldfish_pdev_worker registered goldfish_events
goldfish_pdev_worker registered goldfish_nand
goldfish_pdev_worker registered qemu_pipe
goldfish_pdev_worker registered goldfish-switch
goldfish_pdev_worker registered goldfish-switch
Installing knfsd (copyright (C) 1996 [email protected]).
fuse init (API version 7.18)
msgmni has been set to 1494
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
allocating frame buffer 768 * 1280, got ffa00000
console [ttyS0] enabled
brd: module loaded
loop: module loaded
nbd: registered device at major 43
goldfish_audio_probe
goldfish nand dev0: size c200000, page 2048, extra 64, erase 131072
goldfish nand dev1: size c200000, page 2048, extra 64, erase 131072
goldfish nand dev2: size 4000000, page 2048, extra 64, erase 131072
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <[email protected]>
smc91x.c: v1.1, sep 22 2004 by Nicolas Pitre <[email protected]>
eth0: SMC91C11xFD (rev 1) at fe013000 IRQ 13 [nowait]
eth0: Ethernet addr: 52:54:00:12:34:56
mousedev: PS/2 mouse device common for all mice
*** events probe ***
events_probe() addr=0xfe016000 irq=17
events_probe() keymap=qwerty2
input: qwerty2 as /devices/virtual/input/input0
goldfish_rtc goldfish_rtc: rtc core: registered goldfish_rtc as rtc0
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.22.0-ioctl (2011-10-19) initialised: [email protected]
ashmem: initialized
logger: created 256K log 'log_main'
logger: created 256K log 'log_events'
logger: created 256K log 'log_radio'
logger: created 256K log 'log_system'
Netfilter messages via NETLINK v0.30.
nf_conntrack version 0.5.0 (11956 buckets, 47824 max)
ctnetlink v0.93: registering with nfnetlink.
NF_TPROXY: Transparent proxy support initialized, version 4.1.0
NF_TPROXY: Copyright (c) 2006-2007 BalaBit IT Ltd.
xt_time: kernel timezone is -0000
ip_tables: (C) 2000-2006 Netfilter Core Team
arp_tables: (C) 2002 David S. Miller
TCP: cubic registered
NET: Registered protocol family 10
ip6_tables: (C) 2000-2006 Netfilter Core Team
IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
NET: Registered protocol family 15
8021q: 802.1Q VLAN Support v1.8
VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 0
goldfish_rtc goldfish_rtc: setting system clock to 2014-04-14 09:21:14 UTC (1397467274)
Freeing init memory: 148K
type=1403 audit(1397467274.720:2): policy loaded auid=4294967295 ses=4294967295
SELinux: Loaded policy from /sepolicy
type=1404 audit(1397467274.750:3): enforcing=1 old_enforcing=0 auid=4294967295 ses=4294967295
init (1): /proc/1/oom_adj is deprecated, please use /proc/1/oom_score_adj instead.
init: /dev/hw_random not found
init: cannot open '/initlogo.rle'
goldfish_nand_read: invalid read, start 0, len 200, dev_size c200000, write_size 800
end_request: I/O error, dev mtdblock0, sector 2
EXT4-fs (mtdblock0): unable to read superblock
fs_mgr: Cannot mount filesystem on /dev/block/mtdblock0 at /system
init: fs_mgr_mount_all returned an error
init: /dev/hw_random not found
init: Unable to open persistent property directory /data/property errno: 2
init: cannot find '/system/bin/servicemanager', disabling 'servicemanager'
init: cannot find '/system/bin/vold', disabling 'vold'
init: cannot find '/system/bin/qemu-props', disabling 'qemu-props'
init: cannot find '/system/bin/netd', disabling 'netd'
init: cannot find '/system/bin/debuggerd', disabling 'debuggerd'
init: cannot find '/system/bin/rild', disabling 'ril-daemon'
type=1400 audit(1397467281.760:4): avc: denied { entrypoint } for pid=33 comm="init" path="/sbin/healthd" dev="rootfs" ino=1232 scontext=u:r:healthd:s0 tcontext=ubject_r:rootfs:s0 tclass=file
init: cannot find '/system/bin/surfaceflinger', disabling 'surfaceflinger'
init: cannot find '/system/bin/app_process', disabling 'zygote'
init: cannot find '/system/bin/drmserver', disabling 'drm'
init: cannot find '/system/bin/mediaserver', disabling 'media'
init: cannot find '/system/bin/installd', disabling 'installd'
init: cannot find '/system/etc/install-recovery.sh', disabling 'flash_recovery'
init: cannot find '/system/bin/keystore', disabling 'keystore'
type=1405 audit(1397467281.790:5): bool=in_qemu val=1 old_val=0 auid=4294967295 ses=4294967295
init: cannot find '/system/bin/qemud', disabling 'qemud'
init: cannot find '/system/bin/logcat', disabling 'goldfish-logcat'
init: cannot find '/system/etc/init.goldfish.sh', disabling 'goldfish-setup'
init: property 'sys.powerctl' doesn't exist while expanding '${sys.powerctl}'
init: powerctl: cannot expand '${sys.powerctl}'
healthd: wakealarm_init: timerfd_create failed
init: property 'sys.sysctl.extra_free_kbytes' doesn't exist while expanding '${sys.sysctl.extra_free_kbytes}'
init: cannot expand '${sys.sysctl.extra_free_kbytes}' while writing to '/proc/sys/vm/extra_free_kbytes'
init: cannot find '/system/bin/sh', disabling 'console'
healthd: BatteryVoltagePath not found
healthd: BatteryTemperaturePath not found
binder: 33:33 transaction failed 29189, size 0-0
Click to expand...
Click to collapse
I exchange all files(taken from android build). Also this configuration stops during the boot. Now i get a nice kernel panic[1].
[1]kernel panic
serial0 console
Uncompressing Linux... done, booting the kernel.
Booting Linux on physical CPU 0
Initializing cgroup subsys cpu
Linux version 3.4.0-gfb3ea4f ([email protected]) (gcc version 4.7 (GCC) ) #1 Tue Apr 2 17:27:47 PDT 2013
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00093177
CPU: VIVT data cache, VIVT instruction cache
Machine: Goldfish
Truncating RAM at 00000000-3fffffff to -2f7fffff (vmalloc region overlap).
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 193040
Kernel command line: qemu.gles=0 qemu=1 console=ttyS0 android.qemud=ttyS1 android.checkjni=1 ndns=2
PID hash table entries: 4096 (order: 2, 16384 bytes)
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 760MB = 760MB total
Memory: 765100k/765100k available, 13140k reserved, 0K highmem
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
vmalloc : 0xf0000000 - 0xff000000 ( 240 MB)
lowmem : 0xc0000000 - 0xef800000 ( 760 MB)
.text : 0xc0008000 - 0xc03f83e8 (4033 kB)
.init : 0xc03f9000 - 0xc041c000 ( 140 kB)
.data : 0xc041c000 - 0xc0452760 ( 218 kB)
.bss : 0xc0452784 - 0xc0599fd0 (1311 kB)
NR_IRQS:256
sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 4294967286ms
Console: colour dummy device 80x30
Calibrating delay loop... 243.30 BogoMIPS (lpj=1216512)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
Initializing cgroup subsys debug
Initializing cgroup subsys cpuacct
Initializing cgroup subsys freezer
CPU: Testing write buffer coherency: ok
Setting up static identity map for 0x319390 - 0x3193e8
NET: Registered protocol family 16
bio: create slab <bio-0> at 0
Switching to clocksource goldfish_timer
NET: Registered protocol family 2
IP route cache hash table entries: 32768 (order: 5, 131072 bytes)
TCP established hash table entries: 131072 (order: 8, 1048576 bytes)
TCP bind hash table entries: 65536 (order: 6, 262144 bytes)
TCP: Hash tables configured (established 131072 bind 65536)
TCP: reno registered
UDP hash table entries: 512 (order: 1, 8192 bytes)
UDP-Lite hash table entries: 512 (order: 1, 8192 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 484K
goldfish_new_pdev goldfish_interrupt_controller at ff000000 irq -1
goldfish_new_pdev goldfish_device_bus at ff001000 irq 1
goldfish_new_pdev goldfish_timer at ff003000 irq 3
goldfish_new_pdev goldfish_rtc at ff010000 irq 10
goldfish_new_pdev goldfish_tty at ff002000 irq 4
goldfish_new_pdev goldfish_tty at ff011000 irq 11
goldfish_new_pdev goldfish_tty at ff012000 irq 12
goldfish_new_pdev smc91x at ff013000 irq 13
goldfish_new_pdev goldfish_fb at ff014000 irq 14
goldfish_new_pdev goldfish_audio at ff004000 irq 15
goldfish_new_pdev goldfish_memlog at ff006000 irq -1
goldfish_new_pdev goldfish-battery at ff015000 irq 16
goldfish_new_pdev goldfish_events at ff016000 irq 17
goldfish_new_pdev goldfish_nand at ff017000 irq -1
goldfish_new_pdev qemu_pipe at ff018000 irq 18
goldfish_new_pdev goldfish-switch at ff01a000 irq 19
goldfish_new_pdev goldfish-switch at ff01b000 irq 20
goldfish_pdev_worker registered goldfish_interrupt_controller
goldfish_pdev_worker registered goldfish_device_bus
goldfish_pdev_worker registered goldfish_timer
goldfish_pdev_worker registered goldfish_rtc
goldfish_pdev_worker registered goldfish_tty
goldfish_pdev_worker registered goldfish_tty
goldfish_pdev_worker registered goldfish_tty
goldfish_pdev_worker registered smc91x
goldfish_pdev_worker registered goldfish_fb
goldfish_pdev_worker registered goldfish_audio
goldfish_pdev_worker registered goldfish_memlog
goldfish_pdev_worker registered goldfish-battery
goldfish_pdev_worker registered goldfish_events
goldfish_pdev_worker registered goldfish_nand
goldfish_pdev_worker registered qemu_pipe
goldfish_pdev_worker registered goldfish-switch
goldfish_pdev_worker registered goldfish-switch
Installing knfsd (copyright (C) 1996 [email protected]).
fuse init (API version 7.18)
msgmni has been set to 1495
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
allocating frame buffer 480 * 800, got ffc00000
console [ttyS0] enabled
brd: module loaded
loop: module loaded
nbd: registered device at major 43
goldfish_audio_probe
goldfish nand dev0: size 5aea0000, page 2048, extra 64, erase 131072
goldfish nand dev1: size 5aea0000, page 2048, extra 64, erase 131072
goldfish nand dev2: size 4000000, page 2048, extra 64, erase 131072
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <[email protected]>
smc91x.c: v1.1, sep 22 2004 by Nicolas Pitre <[email protected]>
eth0: SMC91C11xFD (rev 1) at fe013000 IRQ 13 [nowait]
eth0: Ethernet addr: 52:54:00:12:34:56
mousedev: PS/2 mouse device common for all mice
*** events probe ***
events_probe() addr=0xfe016000 irq=17
events_probe() keymap=qwerty2
input: qwerty2 as /devices/virtual/input/input0
goldfish_rtc goldfish_rtc: rtc core: registered goldfish_rtc as rtc0
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.22.0-ioctl (2011-10-19) initialised: [email protected]
ashmem: initialized
logger: created 256K log 'log_main'
logger: created 256K log 'log_events'
logger: created 256K log 'log_radio'
logger: created 256K log 'log_system'
Netfilter messages via NETLINK v0.30.
nf_conntrack version 0.5.0 (11962 buckets, 47848 max)
ctnetlink v0.93: registering with nfnetlink.
NF_TPROXY: Transparent proxy support initialized, version 4.1.0
NF_TPROXY: Copyright (c) 2006-2007 BalaBit IT Ltd.
xt_time: kernel timezone is -0000
ip_tables: (C) 2000-2006 Netfilter Core Team
arp_tables: (C) 2002 David S. Miller
TCP: cubic registered
NET: Registered protocol family 10
ip6_tables: (C) 2000-2006 Netfilter Core Team
IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
NET: Registered protocol family 15
8021q: 802.1Q VLAN Support v1.8
VFP support v0.3: implementor 41 architecture 1 part 10 variant 9 rev 0
goldfish_rtc goldfish_rtc: setting system clock to 2014-04-15 11:52:05 UTC (1397562725)
Freeing init memory: 140K
Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004
[<c0011ac4>] (unwind_backtrace+0x0/0xe0) from [<c03143cc>] (panic+0x6c/0x1ac)
[<c03143cc>] (panic+0x6c/0x1ac) from [<c001c384>] (do_exit+0x2dc/0x6ec)
[<c001c384>] (do_exit+0x2dc/0x6ec) from [<c001c840>] (do_group_exit+0x80/0xbc)
[<c001c840>] (do_group_exit+0x80/0xbc) from [<c00277c4>] (get_signal_to_deliver+0x478/0x4e8)
[<c00277c4>] (get_signal_to_deliver+0x478/0x4e8) from [<c000fd60>] (do_signal+0xcc/0x510)
[<c000fd60>] (do_signal+0xcc/0x510) from [<c001063c>] (do_notify_resume+0x18/0x4c)
[<c001063c>] (do_notify_resume+0x18/0x4c) from [<c000d9b4>] (work_pending+0x24/0x28)
Click to expand...
Click to collapse
[2] emulator call
emulator -show-kernel -sysdir build -system build\system.img -ramdisk build\ramdisk.img -data build\userdata.img -kernel build\kernel-qemu -sdcard sdcard.img -skindir C:\adt-bundle-windows-x86_64-20131030\sdk\platforms\android-19\skins -skin WVGA800 -scale 0.7 -memory 1024 -partition-size 1500
Click to expand...
Click to collapse

Problem while building ipset binary to android

Hello,
I am losing my mind while building ipset binary to android, i am worked on it at least two hours, i have successfully builded kernel module for ipset, it is working fine but i cannot run ipset binary on my device. (nexus 5)
Code:
PKG_CONFIG_PATH=/storage/android/lib/pkgconfig CC=/storage/arm-linux-gnueabi-linaro_4.9.1-2014.06/bin/arm-eabi-cc ./configure --with-kmod=no --enable-shared=no --host=arm-linux-gnueabi --prefix=/storage/android
With this configuration command, ipset builds fine, but when i push it to /system/bin/ipset, i can not execute it from here.
Code:
/system/bin # ./ipset
/sbin/sh: ./ipset: not found
readelf -hd ipset output
Code:
ELF Header:
Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
Class: ELF32
Data: 2's complement, little endian
Version: 1 (current)
OS/ABI: UNIX - System V
ABI Version: 0
Type: EXEC (Executable file)
Machine: ARM
Version: 0x1
Entry point address: 0x92a1
Start of program headers: 52 (bytes into file)
Start of section headers: 365580 (bytes into file)
Flags: 0x5000202, has entry point, Version5 EABI, soft-float ABI
Size of this header: 52 (bytes)
Size of program headers: 32 (bytes)
Number of program headers: 8
Size of section headers: 40 (bytes)
Number of section headers: 38
Section header string table index: 35
Dynamic section at offset 0x171e0 contains 25 entries:
Tag Type Name/Value
0x00000001 (NEEDED) Shared library: [libdl.so.2]
0x00000001 (NEEDED) Shared library: [libc.so.6]
0x0000000c (INIT) 0x8b98
0x0000000d (FINI) 0x1038c
0x00000019 (INIT_ARRAY) 0x271d4
0x0000001b (INIT_ARRAYSZ) 4 (bytes)
0x0000001a (FINI_ARRAY) 0x271d8
0x0000001c (FINI_ARRAYSZ) 4 (bytes)
0x00000004 (HASH) 0x818c
0x00000005 (STRTAB) 0x86ec
0x00000006 (SYMTAB) 0x831c
0x0000000a (STRSZ) 576 (bytes)
0x0000000b (SYMENT) 16 (bytes)
0x00000015 (DEBUG) 0x0
0x00000003 (PLTGOT) 0x272d0
0x00000002 (PLTRELSZ) 440 (bytes)
0x00000014 (PLTREL) REL
0x00000017 (JMPREL) 0x89e0
0x00000011 (REL) 0x89c8
0x00000012 (RELSZ) 24 (bytes)
0x00000013 (RELENT) 8 (bytes)
0x6ffffffe (VERNEED) 0x89a8
0x6fffffff (VERNEEDNUM) 1
0x6ffffff0 (VERSYM) 0x892c
0x00000000 (NULL) 0x0
readelf -hd iptables output (the one that comes with android, works fine)
Code:
ELF Header:
Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
Class: ELF32
Data: 2's complement, little endian
Version: 1 (current)
OS/ABI: UNIX - System V
ABI Version: 0
Type: DYN (Shared object file)
Machine: ARM
Version: 0x1
Entry point address: 0x5348
Start of program headers: 52 (bytes into file)
Start of section headers: 223636 (bytes into file)
Flags: 0x5000000, Version5 EABI
Size of this header: 52 (bytes)
Size of program headers: 32 (bytes)
Number of program headers: 8
Size of section headers: 40 (bytes)
Number of section headers: 27
Section header string table index: 26
Dynamic section at offset 0x32cec contains 26 entries:
Tag Type Name/Value
0x00000003 (PLTGOT) 0x33e44
0x00000002 (PLTRELSZ) 864 (bytes)
0x00000017 (JMPREL) 0x4a00
0x00000014 (PLTREL) REL
0x00000011 (REL) 0x1080
0x00000012 (RELSZ) 14720 (bytes)
0x00000013 (RELENT) 8 (bytes)
0x6ffffffa (RELCOUNT) 1835
0x00000015 (DEBUG) 0x0
0x00000006 (SYMTAB) 0x148
0x0000000b (SYMENT) 16 (bytes)
0x00000005 (STRTAB) 0x8c8
0x0000000a (STRSZ) 1098 (bytes)
0x00000004 (HASH) 0xd14
0x00000001 (NEEDED) Shared library: [libc.so]
0x00000001 (NEEDED) Shared library: [libm.so]
0x00000001 (NEEDED) Shared library: [libstdc++.so]
0x00000020 (PREINIT_ARRAY) 0x33c6c
0x00000021 (PREINIT_ARRAYSZ) 0x8
0x00000019 (INIT_ARRAY) 0x33c74
0x0000001b (INIT_ARRAYSZ) 8 (bytes)
0x0000001a (FINI_ARRAY) 0x33c7c
0x0000001c (FINI_ARRAYSZ) 8 (bytes)
0x0000001e (FLAGS) BIND_NOW
0x6ffffffb (FLAGS_1) Flags: NOW
0x00000000 (NULL) 0x0
I think the problem is libraries, i also pushed the libc.so.6 and libdl to /system/lib with no success.
Could someone point out where i am doing the mistake?
Thanks.

Categories

Resources