diff options
author | Niranjan Reddy Dumbala <ndumba@codeaurora.org> | 2017-03-17 17:54:52 +0530 |
---|---|---|
committer | Vara Prasad A V S G <vavsg@codeaurora.org> | 2017-03-24 12:13:47 +0530 |
commit | ba549c4e0d0f12d153b296fa2b9ed93c0fb67cd2 (patch) | |
tree | 2119ebc16f377428e70c8eeeb16c65f2c55b4318 /init.target.rc | |
parent | fad70d44341ff96b5a3580a65685cbad5de263f0 (diff) |
SDM660_64: Intial bring up.
Intial bring up changes
Change-Id: I789911a6cd9edacdf73df41b39a80b096b9f1077
Diffstat (limited to 'init.target.rc')
-rwxr-xr-x[-rw-r--r--] | init.target.rc | 149 |
1 files changed, 119 insertions, 30 deletions
diff --git a/init.target.rc b/init.target.rc index 909f6f2..f33e1f0 100644..100755 --- a/init.target.rc +++ b/init.target.rc @@ -1,4 +1,4 @@ -# Copyright (c) 2013-2016, The Linux Foundation. All rights reserved. +# Copyright (c) 2013-2017, The Linux Foundation. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are @@ -28,14 +28,19 @@ # on early-init - mkdir /firmware 0771 system system - mkdir /bt_firmware 0771 system system symlink /data/tombstones /tombstones - mkdir /dsp 0771 media media + +on init + write /dev/stune/foreground/schedtune.sched_boost_no_override 1 + write /dev/stune/top-app/schedtune.sched_boost_no_override 1 + write /dev/stune/schedtune.colocate 0 + write /dev/stune/background/schedtune.colocate 0 + write /dev/stune/system-background/schedtune.colocate 0 + write /dev/stune/foreground/schedtune.colocate 0 + write /dev/stune/top-app/schedtune.colocate 1 on fs - wait /dev/block/platform/soc/1da4000.ufshc - symlink /dev/block/platform/soc/1da4000.ufshc /dev/block/bootdevice + wait /dev/block/bootdevice mount_all fstab.qcom swapon_all fstab.qcom @@ -43,27 +48,23 @@ on fs # these partition flashed on the device. Failure to mount any partition in fstab file # results in failure to launch late-start class. - wait /dev/block/bootdevice/by-name/cache - mount ext4 /dev/block/bootdevice/by-name/cache /cache nosuid nodev barrier=1 - wait /dev/block/bootdevice/by-name/persist mount ext4 /dev/block/bootdevice/by-name/persist /persist nosuid nodev barrier=1 mkdir /persist/data 0700 system system mkdir /persist/bms 0700 root system restorecon_recursive /persist - wait /dev/block/bootdevice/by-name/dsp mount ext4 /dev/block/bootdevice/by-name/dsp /dsp ro nosuid nodev barrier=1 - - wait /dev/block/bootdevice/by-name/modem - mount vfat /dev/block/bootdevice/by-name/modem /firmware ro shortname=lower,uid=1000,gid=1000,dmask=227,fmask=337,context=u:object_r:firmware_file:s0 - - wait /dev/block/bootdevice/by-name/bluetooth - mount vfat /dev/block/bootdevice/by-name/bluetooth /bt_firmware ro shortname=lower,uid=1002,gid=3002,dmask=227,fmask=337,context=u:object_r:bt_firmware_file:s0 + mount ext4 /dev/block/bootdevice/by-name/dsp_a /dsp ro nosuid nodev barrier=1 on post-fs + start qseecomd + exec - root root root -- /system/bin/init.qti.qseecomd.sh write /dev/ipa 1 +on init + write /sys/module/qpnp_rtc/parameters/poweron_alarm 1 + on post-fs-data mkdir /data/tombstones 0771 system system mkdir /tombstones/modem 0771 system system @@ -71,21 +72,66 @@ on post-fs-data mkdir /tombstones/wcnss 0771 system system mkdir /tombstones/dsps 0771 system system mkdir /data/misc/hbtp 0750 system system + mkdir /data/misc/seemp 0700 system system + mkdir /data/misc/tloc 0700 system drmrpc +# For cpusets initialize for Silver Only first and then Silver + Gold +# Silver Only configuration cannot work with 0-7 on boot start rmt_storage start rfs_access + write /dev/cpuset/top-app/cpus 0-3 + write /dev/cpuset/foreground/cpus 0-3 + write /dev/cpuset/foreground/boost/cpus 0-3 + write /dev/cpuset/background/cpus 0-3 + write /dev/cpuset/system-background/cpus 0-3 write /dev/cpuset/top-app/cpus 0-7 write /dev/cpuset/foreground/cpus 0-7 write /dev/cpuset/foreground/boost/cpus 0-7 - write /dev/cpuset/background/cpus 0-7 - write /dev/cpuset/system-background/cpus 0-7 + write /dev/cpuset/background/cpus 0 + write /dev/cpuset/system-background/cpus 0-2 + ####Regionalization config and prop files#### + chmod 0644 /persist/speccfg/spec + chmod 0644 /persist/speccfg/devicetype + chmod 0644 /persist/speccfg/mbnversion + chmod 0644 /persist/speccfg/.not_triggered + chmod 0644 /persist/speccfg/vendor_ro.prop + chmod 0644 /persist/speccfg/vendor_persist.prop + chmod 0644 /persist/speccfg/submask + chmod 0644 /persist/speccfg/partition + chown system system /persist/speccfg/spec + chown system system /persist/speccfg/devicetype + chown system system /persist/speccfg/mbnversion + chown system system /persist/speccfg/.not_triggered + chown system system /persist/speccfg/vendor_ro.prop + chown system system /persist/speccfg/vendor_persist.prop + chown system system /persist/speccfg/submask + chown system system /persist/speccfg/partition + +#Peripheral manager +service per_mgr /system/bin/pm-service + class core + user system + group system + ioprio rt 4 + +service per_proxy /system/bin/pm-proxy + class core + user system + group system + disabled + +on property:init.svc.per_mgr=running + start per_proxy + +on property:sys.shutdown.requested=* + stop per_proxy #start camera server as daemon -service qcamerasvr /system/bin/mm-qcamera-daemon - class late_start - user camera - group camera system inet input graphics +#service qcamerasvr /system/bin/mm-qcamera-daemon +# class late_start +# user camera +# group camera system inet input graphics ## import cne init file #on post-fs @@ -130,6 +176,9 @@ service qseecomd /system/bin/qseecomd service thermal-engine /system/vendor/bin/thermal-engine class main user root + socket thermal-send-client stream 0666 system system + socket thermal-recv-client stream 0660 system system + socket thermal-recv-passive-client stream 0666 system system group root #service security-check1 /sbin/security_boot_check system @@ -156,10 +205,10 @@ service hbtp /system/vendor/bin/hbtp_daemon group system disabled -#service audiod /system/bin/audiod -# class late_start -# user system -# group system +service audiod /system/bin/audiod + class late_start + user system + group system # #service usf_tester /system/bin/usf_tester # user system @@ -226,13 +275,13 @@ service imsqmidaemon /system/bin/imsqmidaemon class main user system socket ims_qmid stream 0660 system radio - group radio net_raw log diag + group radio log diag service imsdatadaemon /system/bin/imsdatadaemon class main user system socket ims_datad stream 0660 system radio - group system wifi radio inet net_raw log diag net_admin + group system wifi radio inet log diag disabled # #service mdm_helper /system/bin/mdm_helper @@ -275,6 +324,18 @@ service imsdatadaemon /system/bin/imsdatadaemon #service gnss-detect /system/vendor/bin/gnss.qca1530.sh detect # class core # oneshot + +service energy-awareness /system/bin/energy-awareness + class main + user system + group system + oneshot + +service mdtpd /system/vendor/bin/mdtpd + class late_start + user root + group system radio drmrpc + service pd_mapper /system/vendor/bin/pd-mapper class core @@ -298,7 +359,7 @@ service ims_rtp_daemon /system/bin/ims_rtp_daemon class main user system socket ims_rtpd stream 0660 system radio - group radio net_raw diag inet log + group radio diag inet log disabled service imscmservice /system/bin/imscmservice @@ -309,7 +370,8 @@ service imscmservice /system/bin/imscmservice on property:sys.ims.DATA_DAEMON_STATUS=1 start ims_rtp_daemon -# + start imscmservice + service ppd /system/vendor/bin/mm-pp-dpps class late_start @@ -336,6 +398,11 @@ on property:init.svc.zygote=running on property:init.svc.zygote=restarting stop ppd +on charger + load_system_props + start qcom-post-boot + start hvdcp_opti + # #service nqs /system/bin/nqs # class late_start @@ -354,3 +421,25 @@ on property:init.svc.zygote=restarting # socket vqtss stream 0660 system system # user system # group system + +service seempd /system/bin/seempd +class late_start +user system +group system sdcard_rw +socket seempdw dgram 0666 system system + +service tlocd /system/bin/tloc_daemon + class late_start + user system + group drmrpc + +service hvdcp_opti /system/bin/hvdcp_opti + class main + user root + group system wakelock + +service smcinvoked /system/vendor/bin/smcinvoked + class main + user system + group system + |