and the logcat is attached.
On Friday, July 28, 2017 at 9:55:03 PM UTC+4:30, Shayan Pakzad wrote:
>
>
> 0down votefavorite
> <https://stackoverflow.com/questions/45378886/build-a-goldfish-3-18-kernel-for-android-emulator#>
>
> I currently want to run my compiled android kernel with emulator but
> emulator doesn't work correctly and just show black page on phone screen. I
> use these commands for downloading and compiling android kernel:
>
> 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
>
> after that i use emulator of SDK to run my kernel with these command: (I
> use 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
>
> but after that these text is coming on terminal (come and again come) and
> screen of mobile is showing boot animation.
>
> [ 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'...
>
> can anybody help?
>
--
--
You received this message because you are subscribed to the "Android Building"
mailing list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en
---
You received this message because you are subscribed to the Google Groups
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.
adb server is out of date. killing...
* daemon started successfully *
--------- beginning of main
07-28 17:49:43.310 1250 1250 W auditd : type=2000 audit(0.0:1): initialized
07-28 17:49:43.790 1250 1250 I auditd : type=1403 audit(0.0:2): policy
loaded auid=4294967295 ses=4294967295
07-28 17:49:43.790 1250 1250 W auditd : type=1404 audit(0.0:3): enforcing=1
old_enforcing=0 auid=4294967295 ses=4294967295
07-28 17:49:43.890 1 1 W init : type=1400 audit(0.0:4): avc: denied
{ module_request } for kmod="fs-cpuset" scontext=u:r:init:s0
tcontext=u:r:kernel:s0 tclass=system permissive=0
07-28 17:49:43.900 1245 1245 W init : type=1400 audit(0.0:5): avc: denied
{ mounton } for path="/cache" dev="rootfs" ino=37 scontext=u:r:init:s0
tcontext=u:object_r:cache_file:s0 tclass=dir permissive=0
07-28 17:49:43.930 1 1 W init : type=1400 audit(0.0:6): avc: denied
{ mounton } for path="/storage" dev="rootfs" ino=49 scontext=u:r:init:s0
tcontext=u:object_r:storage_file:s0 tclass=dir permissive=0
07-28 17:49:43.952 1263 1263 I qemu-props: connected to 'boot-properties'
qemud service.
07-28 17:49:43.952 1263 1263 I qemu-props: receiving..
07-28 17:49:43.952 1263 1263 I qemu-props: received:
ro.opengles.version=131072
07-28 17:49:43.955 1263 1263 I qemu-props: receiving..
07-28 17:49:43.955 1263 1263 I qemu-props: received: qemu.sf.fake_camera=both
07-28 17:49:43.955 1263 1263 I qemu-props: receiving..
07-28 17:49:43.955 1263 1263 I qemu-props: received: dalvik.vm.heapsize=320m
07-28 17:49:43.955 1263 1263 I qemu-props: receiving..
07-28 17:49:43.955 1263 1263 I qemu-props: received: qemu.hw.mainkeys=0
07-28 17:49:43.955 1263 1263 I qemu-props: receiving..
07-28 17:49:43.955 1263 1263 I qemu-props: received: qemu.sf.lcd_density=320
07-28 17:49:43.955 1263 1263 I qemu-props: receiving..
07-28 17:49:43.956 1263 1263 I qemu-props: exiting (5 properties set).
--------- beginning of system
07-28 17:49:43.957 1251 1251 I vold : Vold 3.0 (the awakening) firing up
07-28 17:49:43.957 1251 1251 V vold : Detected support for: ext4 vfat
07-28 17:49:43.961 1260 1260 I lowmemorykiller: Using in-kernel low memory
killer interface
07-28 17:49:43.961 1251 1270 D vold : Recognized experimental block major
ID 253 as virtio-blk (emulator's virtual SD card device)
07-28 17:49:43.961 1251 1270 V vold : /system/bin/sgdisk
07-28 17:49:43.961 1251 1270 V vold : --android-dump
07-28 17:49:43.961 1251 1270 V vold : /dev/block/vold/disk:253,64
07-28 17:49:43.971 1251 1270 V vold : DISK mbr
07-28 17:49:43.971 1251 1270 W vold : disk:253,64 has unknown partition
table; trying entire device
07-28 17:49:43.971 1251 1270 V vold : /system/bin/blkid
07-28 17:49:43.971 1251 1270 V vold : -c
07-28 17:49:43.971 1251 1270 V vold : /dev/null
07-28 17:49:43.971 1251 1270 V vold : -s
07-28 17:49:43.971 1251 1270 V vold : TYPE
07-28 17:49:43.971 1251 1270 V vold : -s
07-28 17:49:43.971 1251 1270 V vold : UUID
07-28 17:49:43.971 1251 1270 V vold : -s
07-28 17:49:43.971 1251 1270 V vold : LABEL
07-28 17:49:43.971 1251 1270 V vold : /dev/block/vold/disk:253,64
07-28 17:49:43.976 1251 1270 V vold : /dev/block/vold/disk:253,64:
LABEL="SDCARD" UUID="1814-3A1C" TYPE="vfat"
07-28 17:49:43.976 1262 1262 I SurfaceFlinger: SurfaceFlinger is starting
07-28 17:49:43.976 1262 1262 I SurfaceFlinger: SurfaceFlinger's main thread
ready to run. Initializing graphics H/W...
07-28 17:49:43.976 1262 1262 D libEGL : Emulator has host GPU support,
qemu.gles is set to 1.
07-28 17:49:43.976 1262 1262 E libEGL :
load_driver(/system/lib64/egl/libGLES_emulation.so): dlopen failed: library
"/system/lib64/egl/libGLES_emulation.so" not found
07-28 17:49:43.979 1262 1262 D libEGL : loaded
/system/lib64/egl/libEGL_emulation.so
07-28 17:49:43.980 1262 1262 D libEGL : loaded
/system/lib64/egl/libGLESv1_CM_emulation.so
07-28 17:49:43.983 1262 1262 D libEGL : loaded
/system/lib64/egl/libGLESv2_emulation.so
07-28 17:49:43.984 1262 1262 D : HostConnection::get() New Host
Connection established 0x7e9e9f9524e0, tid 1262
07-28 17:49:43.985 1262 1262 W : Unrecognized GLES max version string
in extensions: ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_dma_v1
07-28 17:49:43.987 1262 1262 I SurfaceFlinger: Using composer version 1.1
07-28 17:49:43.987 1262 1262 W SurfaceFlinger: no suitable EGLConfig found,
trying a simpler query
07-28 17:49:43.987 1262 1262 I SurfaceFlinger: EGL information:
07-28 17:49:43.987 1262 1262 I SurfaceFlinger: vendor : Android
07-28 17:49:43.987 1262 1262 I SurfaceFlinger: version : 1.4 Android
META-EGL
07-28 17:49:43.987 1262 1262 I SurfaceFlinger: extensions:
EGL_KHR_get_all_proc_addresses EGL_ANDROID_presentation_time
EGL_KHR_swap_buffers_with_damage EGL_KHR_image_base EGL_KHR_gl_texture_2D_image
EGL_KHR_fence_sync EGL_ANDROID_image_native_buffer EGL_ANDROID_recordable
07-28 17:49:43.987 1262 1262 I SurfaceFlinger: Client API: OpenGL_ES
07-28 17:49:43.987 1262 1262 I SurfaceFlinger: EGLSurface: 8-8-8-8, config=0x3
07-28 17:49:43.989 1262 1262 D EGL_emulation: eglCreateContext:
0x7e9e9f95d140: maj 2 min 0 rcv 2
07-28 17:49:43.990 1262 1262 D EGL_emulation: eglMakeCurrent: 0x7e9e9f95d140:
ver 2 0 (tinfo 0x7e9e9f9511a0)
07-28 17:49:43.991 1262 1262 I SurfaceFlinger: OpenGL ES informations:
07-28 17:49:43.991 1262 1262 I SurfaceFlinger: vendor : Google (Intel Open
Source Technology Center)
07-28 17:49:43.991 1262 1262 I SurfaceFlinger: renderer : Android Emulator
OpenGL ES Translator (Mesa DRI Intel(R) Haswell Mobile )
07-28 17:49:43.991 1262 1262 I SurfaceFlinger: version : OpenGL ES 2.0 (3.0
Mesa 17.0.3)
07-28 17:49:43.991 1262 1262 I SurfaceFlinger: extensions:
GL_EXT_debug_marker GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_depth24
GL_OES_depth32 GL_OES_element_index_uint GL_OES_texture_float
GL_OES_texture_float_linear GL_OES_compressed_paletted_texture
GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth_texture
GL_OES_texture_half_float GL_OES_texture_half_float_linear
GL_OES_packed_depth_stencil GL_OES_vertex_half_float GL_OES_texture_npot
GL_OES_rgb8_rgba8 ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_dma_v1
07-28 17:49:43.992 1262 1262 I SurfaceFlinger: GL_MAX_TEXTURE_SIZE = 16384
07-28 17:49:43.992 1262 1262 I SurfaceFlinger: GL_MAX_VIEWPORT_DIMS = 32768
07-28 17:49:43.993 1262 1262 E cutils-trace: Error opening trace file:
Permission denied (13)
07-28 17:49:43.993 1262 1262 D gralloc_ranchu: gralloc_alloc: Creating ashmem
region of size 4096
07-28 17:49:43.998 1262 1262 D EGL_emulation: eglMakeCurrent: 0x7e9e9f95d140:
ver 2 0 (tinfo 0x7e9e9f9511a0)
07-28 17:49:43.999 1262 1262 D SurfaceFlinger: Set power mode=2, type=0
flinger=0x7e9e9f943c00
07-28 17:49:44.030 1326 1326 W BootAnimation: type=1400 audit(0.0:7): avc:
denied { write } for name="property_service" dev="tmpfs" ino=23
scontext=u:r:bootanim:s0 tcontext=u:object_r:property_socket:s0
tclass=sock_file permissive=0
07-28 17:49:44.030 1262 1311 E SurfaceFlinger: ro.sf.lcd_density must be
defined as a build property
07-28 17:49:44.031 1326 1329 D libEGL : Emulator has host GPU support,
qemu.gles is set to 1.
07-28 17:49:44.031 1326 1329 E libEGL :
load_driver(/system/lib64/egl/libGLES_emulation.so): dlopen failed: library
"/system/lib64/egl/libGLES_emulation.so" not found
07-28 17:49:44.032 1326 1329 D libEGL : loaded
/system/lib64/egl/libEGL_emulation.so
07-28 17:49:44.033 1326 1329 D libEGL : loaded
/system/lib64/egl/libGLESv1_CM_emulation.so
07-28 17:49:44.034 1326 1329 D libEGL : loaded
/system/lib64/egl/libGLESv2_emulation.so
07-28 17:49:44.036 1326 1329 D : HostConnection::get() New Host
Connection established 0x7252941928c0, tid 1329
07-28 17:49:44.037 1326 1329 W : Unrecognized GLES max version string
in extensions: ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_dma_v1
07-28 17:49:44.037 1326 1329 E cutils-trace: Error opening trace file:
Permission denied (13)
07-28 17:49:44.038 1262 1313 D : HostConnection::get() New Host
Connection established 0x7e9e9f9542e0, tid 1313
07-28 17:49:44.038 1262 1313 W : Unrecognized GLES max version string
in extensions: ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_dma_v1
07-28 17:49:44.047 1326 1329 D EGL_emulation: eglCreateContext:
0x725294189640: maj 1 min 0 rcv 1
07-28 17:49:44.050 1326 1329 D EGL_emulation: eglMakeCurrent: 0x725294189640:
ver 1 0 (tinfo 0x72529418e160)
07-28 17:49:44.071 1262 1311 D : HostConnection::get() New Host
Connection established 0x7e9e9f492180, tid 1311
07-28 17:49:44.072 1262 1311 W : Unrecognized GLES max version string
in extensions: ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_dma_v1
07-28 17:49:44.129 1262 1262 D SurfaceFlinger: shader cache generated - 24
shaders in 91.604973 ms
07-28 17:49:44.137 1262 1262 D gralloc_ranchu: gralloc_alloc: Creating ashmem
region of size 4096
07-28 17:50:43.004 1262 1317 D hwcomposer: hw_composer sent 1211 syncs in 60s
07-28 17:51:43.080 1262 1317 D hwcomposer: hw_composer sent 1230 syncs in 60s
07-28 17:52:43.063 1262 1317 D hwcomposer: hw_composer sent 1198 syncs in 60s