2015-10-20 27 views
0

我想編譯金魚android內核並運行它與模擬器。 (Android內核使用Android模擬器進行編譯和測試,如何編譯android goldfish 3.4內核並在模擬器上運行)。我昨天遵循提示,並且成功地用午餐模擬了android-emulator。但是今天當我再次啓動模擬器時,它不起作用。啓動日誌顯示它卡在「QEMU Pipe Device:rw,wait_event error」中,誰能幫助我?真心提前感謝。Android模擬器啓動卡在「QEMU管道設備:rw,wait_event錯誤」

環境:VMware10,ubuntu14.04,goldfish3.4,ASOP_arm,Android4.4

啓動日誌的部分:

Freeing init memory: 148K 
type=1403 audit(1445259070.600:2): policy loaded auid=4294967295 ses=4294967295 
SELinux: Loaded policy from /sepolicy 
type=1404 audit(1445259070.620: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' 
EXT4-fs (mtdblock0): mounted filesystem with ordered data mode. Opts: barrier=1 
EXT4-fs (mtdblock1): VFS: Can't find ext4 filesystem 
fs_mgr: Running /system/bin/e2fsck on /dev/block/mtdblock1 
e2fsck: executing /system/bin/e2fsck failed: No such file or directory 
e2fsck: e2fsck terminated by exit(255) 
EXT4-fs (mtdblock1): VFS: Can't find ext4 filesystem 
fs_mgr: Cannot mount filesystem on /dev/block/mtdblock1 at /data 
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 
type=1400 audit(1445259074.030:4): avc: denied { entrypoint } for pid=36 comm="init" path="/sbin/healthd" dev="rootfs" ino=1232 scontext=u:r:healthd:s0 tcontext=u:object_r:rootfs:s0 tclass=file 
healthd: wakealarm_init: timerfd_create failed 
healthd: BatteryVoltagePath not found 
healthd: BatteryTemperaturePath not found 
binder: 36:36 transaction failed 29189, size 0-0 
init: cannot find '/system/etc/install-recovery.sh', disabling 'flash_recovery' 
type=1405 audit(1445259074.370:5): bool=in_qemu val=1 old_val=0 auid=4294967295 ses=4294967295 
avc: received policyload notice (seqno=2) 
init: property 'sys.powerctl' doesn't exist while expanding '${sys.powerctl}' 
init: powerctl: cannot expand '${sys.powerctl}' 
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' 
type=1400 audit(1445259075.370:6): avc: denied { 0x10 } for pid=36 comm="healthd" capability=36 scontext=u:r:healthd:s0 tcontext=u:r:healthd:s0 tclass=capability2 
eth0: link up 
warning: `rild' uses 32-bit capabilities (legacy support in use) 
[email protected]:/ $ QEMU Pipe Device:rw, wait_event error 
QEMU Pipe Device:rw, wait_event error 
QEMU Pipe Device:rw, wait_event error 
QEMU Pipe Device:rw, wait_event error 
QEMU Pipe Device:rw, wait_event error 

回答

0

我解決了這個問題由我自己。這個錯誤的原因是因爲android-emulator的開關參數。所以如果你這樣做:

[email protected]:/work/android4.4/out/target/product/generic# mv userdata.img userdata.img.bak 

然後重新啓動模擬器,模擬器不能使用該userdata.img。 都是因爲userdata.img。這個細節我不知道。也許有人會在未來告訴我們。