i.MX6 Android N7.1.2_2.0.0 boot up SurfaceFlinger crash

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i.MX6 Android N7.1.2_2.0.0 boot up SurfaceFlinger crash

2,095 Views
wanqi
Contributor I

Hi All,

I'm working on Android Nougat N7.1.2_2.0.0 with i.MX6DL.
Android can't boot up, surfaceFlinger always crash.
I've already porting android 6.0.1 and 7.1.1 on the same hw platform, it's all ok.
my cmdline is: console=ttymxc0,115200 init=/init video=mxcfb0:dev=ldb,fbpix=RGB32,bpp=32 video=mxcfb1:off video=mxcfb2:off video=mxcfb3:off vmalloc=128M androidboot.console=ttymxc0 consoleblank=0 androidboot.hardware=freescale cma=448M
The error message is as follows(kmsg&logcat):
----------------------------------------------------------------------------------------------
01-01 00:00:49.661 648 648 I Radio-JNI: register_android_hardware_Radio DONE
01-01 00:00:49.666 689 689 I SurfaceFlinger: SurfaceFlinger is starting
01-01 00:00:49.666 689 689 I SurfaceFlinger: SurfaceFlinger's main thread ready to run. Initializing graphics H/W...
01-01 00:00:49.672 648 648 I SamplingProfilerIntegration: Profiling disabled.
01-01 00:00:49.688 689 689 D libEGL : loaded /system/lib/egl/libEGL_VIVANTE.so
01-01 00:00:49.698 648 648 D Zygote : begin preload
01-01 00:00:49.698 648 648 I Zygote : Installing ICU cache reference pinning...
01-01 00:00:49.698 648 648 I Zygote : Preloading ICU data...
01-01 00:00:49.709 689 689 D libEGL : loaded /system/lib/egl/libGLESv1_CM_VIVANTE.so
01-01 00:00:49.790 648 648 I Zygote : Preloading classes...
01-01 00:00:49.807 650 650 I ServiceManager: Waiting for service media.camera.proxy...
01-01 00:00:49.816 648 648 W Zygote : Class not found for preloading: [Landroid.view.Display$ColorTransform;
01-01 00:00:49.851 689 689 D libEGL : loaded /system/lib/egl/libGLESv2_VIVANTE.so
01-01 00:00:49.960 689 689 D v_gal : HAL user version 6.2.2 build 96445
01-01 00:00:49.960 689 689 D v_gal : HAL kernel version 6.2.0 build 79565
01-01 00:00:49.974 689 689 E gralloc : int gralloc1_device_open(const struct hw_module_t *, const char *, hw_device_t **) invalid name:fb0
01-01 00:00:49.975 689 689 I hwcomposer: hwc_device_open,435
01-01 00:00:49.975 689 689 I SurfaceFlinger: Using composer version 1.3
01-01 00:00:49.978 689 689 E : g2d user version 6.2.2 build 96445 Aug 3 2017 13:31:56
01-01 00:00:49.978 689 689 E : gpu kernel version 6.2.0 build 79565
01-01 00:00:49.978 689 689 E : g2d_open: fail with status -24
01-01 00:00:49.979 689 689 E : g2d user version 6.2.2 build 96445 Aug 3 2017 13:31:56
01-01 00:00:49.979 689 689 E : gpu kernel version 6.2.0 build 79565
01-01 00:00:49.979 689 689 E : g2d_open: fail with status -24
01-01 00:00:49.980 689 689 E : g2d user version 6.2.2 build 96445 Aug 3 2017 13:31:56
01-01 00:00:49.980 689 689 E : gpu kernel version 6.2.0 build 79565
01-01 00:00:49.980 689 689 E : g2d_open: fail with status -24
01-01 00:00:49.981 689 689 E : g2d user version 6.2.2 build 96445 Aug 3 2017 13:31:56
01-01 00:00:49.981 689 689 E : gpu kernel version 6.2.0 build 79565
01-01 00:00:49.982 689 689 E : g2d_open: fail with status -24
01-01 00:00:49.983 689 689 E : g2d user version 6.2.2 build 96445 Aug 3 2017 13:31:56
01-01 00:00:49.983 689 689 E : gpu kernel version 6.2.0 build 79565
01-01 00:00:49.983 689 689 E : g2d_open: fail with status -24
01-01 00:00:49.984 689 689 E : g2d user version 6.2.2 build 96445 Aug 3 2017 13:31:56
01-01 00:00:49.984 689 689 E : gpu kernel version 6.2.0 build 79565
01-01 00:00:49.984 689 689 E : g2d_open: fail with status -24
01-01 00:00:49.985 689 689 E : g2d user version 6.2.2 build 96445 Aug 3 2017 13:31:56
01-01 00:00:49.985 689 689 E : gpu kernel version 6.2.0 build 79565
01-01 00:00:49.985 689 689 E : g2d_open: fail with status -24
01-01 00:00:49.986 689 689 E : g2d user version 6.2.2 build 96445 Aug 3 2017 13:31:56
01-01 00:00:49.987 689 689 E : gpu kernel version 6.2.0 build 79565
01-01 00:00:49.987 689 689 E : g2d_open: fail with status -24
01-01 00:00:49.988 689 689 E : g2d user version 6.2.2 build 96445 Aug 3 2017 13:31:56
01-01 00:00:49.988 689 689 E : gpu kernel version 6.2.0 build 79565
01-01 00:00:49.988 689 689 E : g2d_open: fail with status -24
01-01 00:00:49.989 689 689 E : g2d user version 6.2.2 build 96445 Aug 3 2017 13:31:56
01-01 00:00:49.989 689 689 E : gpu kernel version 6.2.0 build 79565
01-01 00:00:49.989 689 689 E : g2d_open: fail with status -24
01-01 00:00:49.991 689 689 E : g2d user version 6.2.2 build 96445 Aug 3 2017 13:31:56
01-01 00:00:49.991 689 689 E : gpu kernel version 6.2.0 build 79565
01-01 00:00:49.991 689 689 E : g2d_open: fail with status -24
01-01 00:00:49.992 689 689 E : g2d user version 6.2.2 build 96445 Aug 3 2017 13:31:56
01-01 00:00:49.992 689 689 E : gpu kernel version 6.2.0 build 79565
01-01 00:00:49.992 689 689 E : g2d_open: fail with status -24
01-01 00:00:49.993 689 689 E : g2d user version 6.2.2 build 96445 Aug 3 2017 13:31:56
01-01 00:00:49.993 689 689 E : gpu kernel version 6.2.0 build 79565
01-01 00:00:49.993 689 689 E : g2d_open: fail with status -24
01-01 00:00:49.994 689 689 E : g2d user version 6.2.2 build 96445 Aug 3 2017 13:31:56
01-01 00:00:49.994 689 689 E : gpu kernel version 6.2.0 build 79565
01-01 00:00:49.994 689 689 E : g2d_open: fail with status -24
01-01 00:00:49.996 689 689 E : g2d user version 6.2.2 build 96445 Aug 3 2017 13:31:56
01-01 00:00:49.996 689 689 E : gpu kernel version 6.2.0 build 79565
01-01 00:00:49.996 689 689 E : g2d_open: fail with status -24
01-01 00:00:49.997 689 689 E : g2d user version 6.2.2 build 96445 Aug 3 2017 13:31:56
01-01 00:00:49.997 689 689 E : gpu kernel version 6.2.0 build 79565
01-01 00:00:49.997 689 689 E : g2d_open: fail with status -24
01-01 00:00:49.999 689 689 E : g2d user version 6.2.2 build 96445 Aug 3 2017 13:31:56
01-01 00:00:49.999 689 689 E : gpu kernel versioninit: Service 'surfaceflinger' (pid 689) killed by signal 11
6.2.0 build 79565
01-01 00:00:4init: Service 'surfaceflinger' (pid 689) killing any children in process group
9.999 689 689 E : g2dinit: Service 'zygote' is being killed...
_open: fail with status -24
01-01 00:00:50.000 689 689 E : g2d user version 6.2.2 build 96445 Aug 3 2017 13:31:56
01-01 00:00:50.000 689 689 E : gpu kernel version 6.2.0 build 79565
01-01 00:00:50.001 689 689 E : g2d_open: fail with status -24
01-01 00:00:50.002 689 689 E : g2d user version 6.2.2 build 96445 Aug 3 2017 13:31:56
01-01 00:00:50.002 689 689 E : gpu kernel version 6.2.0 build 79565
01-01 00:00:50.002 689 689 E : g2d_open: fail with status -24
01-01 00:00:50.004 689 689 E : g2d user version 6.2.2 build 96445 Aug 3 2017 13:31:56
01-01 00:00:50.004 689 689 E : gpu kernel version 6.2.0 build 79565
01-01 00:00:50.004 689 689 E : g2d_init: Service 'zygote' (pid 648) killed by signal 9
open: fail with status -24
01-01init: Service 'zygote' (pid 648) killing any children in process group
00:00:50.005 689 689 E init: write_file: Unable to open '/sys/android_power/request_state': No such file or directory
: g2d user version 6.2.2 buildinit: write_file: Unable to write to '/sys/power/state': Invalid argument
96445 Aug 3 2017 13:31:56
01-0init: Service 'audioserver' is being killed...
1 00:00:50.005 689 689 E : gpu kernel version 6.2.0 build 79565
01-01 00:00:50.005 init: Service 'cameraserver' is being killed...
689 689 E : g2d_open: fail with status -24
01-01 00:0init: Service 'media' is being killed...
0:50.006 689 689 E : init: Service 'netd' is being killed...
g2d user version 6.2.2 build 96445 Aug 3 2017 13:31:56
01-01 00init: Service 'audioserver' (pid 649) killed by signal 9
:00:50.007 689 689 E init: Service 'audioserver' (pid 649) killing any children in process group
: gpu kernel version 6.2.0 build init: Service 'cameraserver' (pid 650) killed by signal 9
79565
01-01 00:00:50.007 689 init: Service 'cameraserver' (pid 650) killing any children in process group
689 E : g2d_open: fail winit: Service 'media' (pid 664) killed by signal 9
ith status -24
01-01 00:00:50.00init: Service 'media' (pid 664) killing any children in process group
8 689 689 E : g2d useinit: Service 'netd' (pid 665) killed by signal 9
r version 6.2.2 build 96445 Aug init: Service 'netd' (pid 665) killing any children in process group
3 2017 13:31:56
01-01 00:00:50.0init: Untracked pid 726 exited with status 0
08 689 689 E : gpu kernel version 6.2.0 build 79565
01-01 00:00:50.008 689 689 E : g2d_open: fail with status -24
01-01 00:00:50.009 689 689 E : g2d user version 6.2.2 build 96445 Aug 3 2017 13:31:56
01-01 00:00:50.009 689 689 E : gpu kernel version 6.2.0 build 79565
01-01 00:00:50.009 689 689 E : g2d_open: fail with status -24
01-01 00:00:50.011 689 689 E : g2d user version 6.2.2 build 96445 Aug 3 2017 13:31:56
01-01 00:00:50.011 689 689 E : gpu kernel version 6.2.0 build 79565
01-01 00:00:50.011 689 689 E : g2d_open: fail with status -24
01-01 00:00:50.012 689 689 E : g2d user version 6.2.2 build 96445 Aug 3 2017 13:31:56
01-01 00:00:50.012 689 689 E : gpu kernel version 6.2.0 build 79565
01-01 00:00:50.012 689 689 E : g2d_open: fail with status -24
01-01 00:00:50.013 689 689 I display : entry:fb0 get fb0
01-01 00:00:50.013 689 689 I display : fb0 is ldb
01-01 00:00:50.013 689 689 I display : device
01-01 00:00:50.014 689 689 W display : xres = 1024 px
01-01 00:00:50.014 689 689 W display : yres = 768 px
01-01 00:00:50.014 689 689 W display : fps = 46.95 Hz
01-01 00:00:50.014 689 689 W display : bpp = 32
01-01 00:00:50.014 689 689 W display : r = 0:8
01-01 00:00:50.014 689 689 W display : g = 8:8
01-01 00:00:50.014 689 689 W display : b = 16:8
01-01 00:00:50.016 689 689 I display : GPUManager exists
01-01 00:00:50.017 689 689 F libc : Fatal signal 11 (SIGSEGV), code 1, fault addr 0x10c in tid 689 (surfaceflinger)
01-01 00:00:50.017 197 197 W : debuggerd: handling request: pid=689 uid=1000 gid=1003 tid=689
01-01 00:00:50.030 713 713 E : debuggerd: Unable to connect to activity manager (connect failed: No such file or directory)
01-01 00:00:50.032 713 713 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
01-01 00:00:50.032 713 713 F DEBUG : Build fingerprint: 'Android/sabresd_6dq/sabresd_6dq:7.1.2/2.0.0-rfp-rc6/20170930:userdebug/release-keys'
01-01 00:00:50.032 713 713 F DEBUG : Revision: '0'
01-01 00:00:50.032 713 713 F DEBUG : ABI: 'arm'
01-01 00:00:50.032 713 713 F DEBUG : pid: 689, tid: 689, name: surfaceflinger >>> /system/bin/surfaceflinger <<<
01-01 00:00:50.032 713 713 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x10c
01-01 00:00:50.032 713 713 F DEBUG : r0 00000000 r1 ec36a433 r2 00000000 r3 000002b1
01-01 00:00:50.033 713 713 F DEBUG : r4 00000094 r5 00000132 r6 00000200 r7 00000001
01-01 00:00:50.033 713 713 F DEBUG : r8 00000001 r9 00000132 sl ac948040 fp ac94803c
01-01 00:00:50.033 713 713 F DEBUG : ip b564da60 sp be969380 lr b55effa9 pc b55a8d64 cpsr 600f0030
01-01 00:00:50.049 713 713 F DEBUG :
01-01 00:00:50.049 713 713 F DEBUG : backtrace:
01-01 00:00:50.049 713 713 F DEBUG : #00 pc 00017d64 /system/lib/libGAL.so (gcoHAL_QuerySeparated2D+7)
01-01 00:00:50.049 713 713 F DEBUG : #01 pc 0005efa5 /system/lib/libGAL.so
01-01 00:00:50.049 713 713 F DEBUG : #02 pc 0001a0b3 /system/lib/libGAL.so
01-01 00:00:50.049 713 713 F DEBUG : #03 pc 000199c1 /system/lib/libGAL.so (gcoSURF_Construct+232)
01-01 00:00:50.049 713 713 F DEBUG : #04 pc 00002565 /system/lib/hw/gralloc_viv.imx6.so (gc_gralloc_alloc+660)
01-01 00:00:50.049 713 713 F DEBUG : #05 pc 0000ab31 /system/lib/libfsldisplay.so (_ZN3fsl10GPUManager11allocMemoryERNS_10MemoryDescEPPNS_6MemoryE+224)
01-01 00:00:50.049 713 713 F DEBUG : #06 pc 0000857d /system/lib/libfsldisplay.so (_ZN3fsl9FbDisplay20prepareTargetsLockedEv+128)
01-01 00:00:50.049 713 713 F DEBUG : #07 pc 0000837b /system/lib/libfsldisplay.so (_ZN3fsl9FbDisplay6openFbEv+250)
01-01 00:00:50.049 713 713 F DEBUG : #08 pc 0000742f /system/lib/libfsldisplay.so (_ZN3fsl14DisplayManager12enumDisplaysEv+274)
01-01 00:00:50.050 713 713 F DEBUG : #09 pc 000072b7 /system/lib/libfsldisplay.so (_ZN3fsl14DisplayManagerC1Ev+98)
01-01 00:00:50.050 713 713 F DEBUG : #10 pc 0000722b /system/lib/libfsldisplay.so (_ZN3fsl14DisplayManager11getInstanceEv+30)
01-01 00:00:50.050 713 713 F DEBUG : #11 pc 000014cd /system/lib/hw/hwcomposer.imx6.so
01-01 00:00:50.050 713 713 F DEBUG : #12 pc 0003141f /system/lib/libsurfaceflinger.so
01-01 00:00:50.050 713 713 F DEBUG : #13 pc 00027bd9 /system/lib/libsurfaceflinger.so (_ZN7android14SurfaceFlinger4initEv+312)
01-01 00:00:50.050 713 713 F DEBUG : #14 pc 00000fdd /system/bin/surfaceflinger
01-01 00:00:50.050 713 713 F DEBUG : #15 pc 00016c4d /system/lib/libc.so (__libc_init+48)
01-01 00:00:50.050 713 713 F DEBUG : #16 pc 00000e90 /system/bin/surfaceflinger
01-01 00:00:50.399 197 197 W : debuggerd: resuming target 689
01-01 00:00:50.536 209 209 I ServiceManager: service 'media.sound_trigger_hw' died
01-01 00:00:50.536 209 209 I ServiceManager: service 'media.radio' died
01-01 00:00:50.536 209 209 I ServiceManager: service 'media.audio_flinger' died
01-01 00:00:50.536 209 209 I ServiceManager: service 'media.audio_policy' died
01-01 00:00:50.562 209 209 I ServiceManager: service 'media.player' died
01-01 00:00:50.562 209 209 I ServiceManager: service 'media.resource_manager' died
----------------------------------------------------------------------------------------------

Does anyone know how to solve this problem?
Regards,
ww

Labels (2)
0 Kudos
1 Reply

1,254 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hi Wangqi,

      In android BSP, default build is for eMMC on board. If you are using SD card, you should adjust source code. Detailed information, see android user's guide,  please!

Have a nice day!

TIC

Weidong

0 Kudos