Google Android-N porting on iMX6D-SabreSDB

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

Google Android-N porting on iMX6D-SabreSDB

2,908 Views
amarnadhbandi
Contributor II

Hi All,

 

I am trying to brig-up Android-N on iMX6D-SabreSDB

As part of above activity , I am able to apply patches on Google Android-N successfully, but minimal changes taken in frameworks module. Then code built successfully images are ready, Images are built for SD card bootable mode.

 

Coming to actual issue Kernel Boot Screen seen with small Icons "ANDROID" and then init Process calling Zygote.. followed by Zygote restarting as blow logs

looks like I am facing problem with SELinux as blow snippet of logs , Any one has idea about this issues

Logs: 

init: SELinux: Could not set context for /sys/kernel/debug/tracing/trace_marker: Operation not supported on transport endpoint
random: logd urandom read with 29 bits of entropy available
zram0: detected capacity change from 0 to 314572800
logd.auditd: start
logd.klogd: 19059463335

type=1400 audit(14.810:3): avc: denied { read write } for pid=206 comm="mkswap" name="zram0" dev="tmpfs" ino=8620 scontext=u:r:toolbox:s0 tcontext=u:object_r:ram_device:s0 tclass=blk_file permissive=1
type=1400 audit(14.810:4): avc: denied { open } for pid=206 comm="mkswap" path="/dev/block/zram0" dev="tmpfs" ino=8620 scontext=u:r:toolbox:s0 tcontext=u:object_r:ram_device:s0 tclass=blk_file permissive=1
type=1400 audit(14.810:5): avc: denied { getattr } for pid=206 comm="mkswap" path="/dev/block/zram0" dev="tmpfs" ino=8620 scontext=u:r:toolbox:s0 tcontext=u:object_r:ram_device:s0 tclass=blk_file permissive=1
type=1400 audit(14.810:6): avc: denied { write } for pid=1 comm="init" name="zram0" dev="tmpfs" ino=8620 scontext=u:r:init:s0 tcontext=u:object_r:ram_device:s0 tclass=blk_file permissive=1
init: (Loading properties from /factory/factory.prop took 0.00s.)

....

init: Starting service 'vold'...
init: Not bootcharting.
SELinux: Context u:object_r:dalvikcache_profiles_data_file:s0 is not valid (left unmapped).
init: Starting service 'exec 1 (/system/bin/tzdatacheck)'...
init: Service 'exec 1 (/system/bin/tzdatacheck)' (pid 221) exited with status 0
init: (Loading properties from /data/local.prop took 0.00s.)

.......

type=1400 audit(25.030:8): avc: denied { write } for pid=231 comm="zygote" name="trace_marker" dev="tracefs" ino=121 scontext=u:r:zygote:s0 tcontext=u:object_r:debugfs_tracing:s0 tclass=file permissive=1
type=1400 audit(25.030:9): avc: denied { open } for pid=231 comm="zygote" path="/sys/kernel/debug/tracing/trace_marker" dev="tracefs" ino=121 scontext=u:r:zygote:s0 tcontext=u:object_r:debugfs_tracing:s0 tclass=file permissive=1
init: Service 'bootanim' (pid 352) exited with status 0
capability: warning: `main' uses 32-bit capabilities (legacy support in use)
random: nonblocking pool is initialized
type=1400 audit(43.240:10): avc: denied { getattr } for pid=231 comm="main" path="/sys/kernel/debug/tracing/trace_marker" dev="tracefs" ino=121 scontext=u:r:zygote:s0 tcontext=u:object_r:debugfs_tracing:s0 tclass=file permissive=1
type=1400 audit(43.240:11): avc: denied { getattr } for pid=231 comm="main" path="/dev/galcore" dev="tmpfs" ino=8595 scontext=u:r:zygote:s0 tcontext=u:object_r:gpu_device:s0 tclass=chr_file permissive=1
init: Service 'zygote' (pid 231) killed by signal 6
init: Service 'zygote' (pid 231) killing any children in process group
init: write_file: Unable to open '/sys/android_power/request_state': No such file or directory
init: write_file: Unable to write to '/sys/power/state': Invalid argument
init: Service 'audioserver' is being killed...
init: Service 'cameraserver' is being killed...
init: Service 'media' is being killed...
init: Service 'netd' is being killed...
init: Service 'audioserver' (pid 232) killed by signal 9

 

Original Attachment has been moved to: all_our_images.txt.zip

6 Replies

1,373 Views
amarnadhbandi
Contributor II

Hi All,

I have ported Android N on to IMX6Q-SDB Successfully.. 

-Regards

Amarnadh 

7829387551

1,373 Views
mehulshah
Contributor III

Hi Amarnadh bandi , can you please tell me , what you did to sort out the SElinux permission issue ?....i am facing the same issue .Please find the attached log.

0 Kudos

1,373 Views
amarnadhbandi
Contributor II

Hi mehulshah

Sorry for late reply ,

I hope you might already done porting Android N on iMX6 ?
In case you need my help , please let me know

Regards

Amarnadh

0 Kudos

1,373 Views
amarnadhbandi
Contributor II

Hello NXP Team,

Could you please make visible this issue to all community members,  so that I may get solution from any one of them..

Thanks & Regards

Amarnadh

+91-7829387551

0 Kudos

1,373 Views
igorpadykov
NXP Employee
NXP Employee

Hi Amarnadh

what kernel is based this android, do you have appropriate gpu

drivers for that version.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

1,373 Views
amarnadhbandi
Contributor II

Hi Igor,

 

Thanks for reply.

Kernel version is 4.1.15 as below snippet of code, And also I am having proper GPU driver.

I have taken this kernel and GPU driver from working Android-M Source Tree (Freescale  SabreSDB-6QD).

Makefile snippet:

VERSION = 4
PATCHLEVEL = 1
SUBLEVEL = 15
EXTRAVERSION =
NAME = Series 4800

 

-Thanks & Regards

Amarnadh

0 Kudos