Zygote在使用custm内核运行的Android模拟器中循环

时间:2017-07-28 17:02:43

标签: android android-emulator kernel emulation android-kernel

我目前想用模拟器运行我编译的android内核,但模拟器无法正常工作,只是在手机屏幕上显示黑页。 我使用这些命令下载和编译android内核:

git clone https://android.googlesource.com/kernel/goldfish/ -b android goldfish-3.18
git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9
cd goldfish
export CROSS_COMPILE=x86_64-linux-android-
export ARCH=x86_64
export PATH=$PATH:/path/to/x86_64-linux-android-4.9/bin
make x86_64_ranchu_defconfig
make menuconfig  # enable overlayfs and namespaces support here
make -j8

之后我使用SDK的模拟器来运行我的内核并使用以下命令: (我使用Android 7.0 x86_64 google api level 24 for Nexus_5X_API_23)

./emulator -avd Nexus_5_API_24 -kernel ~/Desktop/goldfish/arch/x86/boot/bzImage -show-kernel

但是之后这些文字出现在终端上(来了又来了),移动设备的屏幕显示了启动动画。

[  270.896420] init: Service 'audioserver' is being killed...
[  270.897184] init: Service 'cameraserver' is being killed...
[  270.897986] init: Service 'media' is being killed...
[  270.898725] init: Service 'netd' is being killed...
[  270.899573] init: Service 'audioserver' (pid 6354) killed by signal 9
[  270.900441] init: Service 'audioserver' (pid 6354) killing any children in process group
[  270.901661] init: Service 'cameraserver' (pid 6355) killed by signal 9
[  270.902456] init: Service 'cameraserver' (pid 6355) killing any children in process group
[  270.903456] init: Service 'media' (pid 6356) killed by signal 9
[  270.904071] init: Service 'media' (pid 6356) killing any children in process group
[  270.904909] init: Service 'netd' (pid 6357) killed by signal 9
[  270.905518] init: Service 'netd' (pid 6357) killing any children in process group
[  270.915485] init: Service 'zygote_secondary' (pid 6587) killed by signal 11
[  270.916367] init: Service 'zygote_secondary' (pid 6587) killing any children in process group
[  271.918795] init: Starting service 'audioserver'...
[  271.919822] init: Starting service 'cameraserver'...
[  271.920826] type=1400 audit(1501255007.918:530): avc: denied { getattr } for pid=6598 comm="audioserver" path="/vendor" dev="rootfs" ino=6328 scontext=u:r:audioserver:s0 tcontext=u:object_r:rootfs:s0 tclass=lnk_file permissive=0
[  271.920848] init: couldn't write 6599 to /dev/cpuset/camera-daemon/tasks: No such file or directory
[  271.920871] init: Starting service 'media'...
[  271.921227] init: Starting service 'netd'...
[  271.927633] type=1400 audit(1501255007.918:531): avc: denied { getattr } for pid=6599 comm="cameraserver" path="/vendor" dev="rootfs" ino=6328 scontext=u:r:cameraserver:s0 tcontext=u:object_r:rootfs:s0 tclass=lnk_file permissive=0
[  272.523185] type=1400 audit(1501255008.518:532): avc: denied { module_request } for pid=6601 comm="netd" kmod="netdev-dummy0" scontext=u:r:netd:s0 tcontext=u:r:kernel:s0 tclass=system permissive=0
[  272.524725] type=1400 audit(1501255008.518:533): avc: denied { module_request } for pid=6601 comm="netd" kmod="net-pf-16-proto-5" scontext=u:r:netd:s0 tcontext=u:r:kernel:s0 tclass=system permissive=0
[  275.926349] init: Starting service 'ipv6proxy'...
[  275.927882] init: Starting service 'emu_hostapd'...
[  275.929091] init: Starting service 'zygote'...
[  275.930412] init: Starting service 'zygote_secondary'...

logcat在这里:link

任何人都可以帮忙吗?

0 个答案:

没有答案