sm6225-common: Update rootdir to devon_g T2SN33.73-22-3

Change-Id: I00acebe92cf52b76991d5d53acbbcbfbc9b069bb
This commit is contained in:
Michael Bestas 2023-11-27 18:21:44 +02:00
parent e94986d22b
commit 757b8c471e
No known key found for this signature in database
GPG key ID: CC95044519BE6669
6 changed files with 79 additions and 21 deletions

View file

@ -26,6 +26,10 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# #
#Changes from Qualcomm Innovation Center are provided under the following license:
#Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
#SPDX-License-Identifier: BSD-3-Clause-Clear
#
export PATH=/vendor/bin export PATH=/vendor/bin
@ -370,7 +374,11 @@ case "$target" in
setprop vendor.display.enhance_idle_time 1 setprop vendor.display.enhance_idle_time 1
setprop vendor.netflix.bsp_rev "" setprop vendor.netflix.bsp_rev ""
;; ;;
518) 518|561|586)
setprop vendor.media.target.version 3
;;
585)
setprop vendor.media.target.version 4
;; ;;
esac esac
;; ;;

View file

@ -26,6 +26,10 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# #
# Changes from Qualcomm Innovation Center are provided under the following license:
# Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
# SPDX-License-Identifier: BSD-3-Clause-Clear
#
function 8953_sched_dcvs_eas() function 8953_sched_dcvs_eas()
{ {
@ -1114,6 +1118,36 @@ case "$target" in
;; ;;
esac esac
# For Kodiak target for which cdsp is defective, we read remote cdsp status from fastrpc node
# and if its value is false we disable cdsp daemon by setting the cdsp disable propety to true
case "$target" in
"lahaina")
if [ -f /sys/devices/soc0/chip_family ]; then
chip_family_id=`cat /sys/devices/soc0/chip_family`
else
chip_family_id=-1
fi
echo "adsprpc : chip_family_id : $chip_faily_id" > /dev/kmsg
case "$chip_family_id" in
"0x76")
if [ -f /sys/devices/platform/soc/soc:qcom,msm_fastrpc/remote_cdsp_status ]; then
remote_cdsp_status=`cat /sys/devices/platform/soc/soc:qcom,msm_fastrpc/remote_cdsp_status`
else
remote_cdsp_status=-1
fi
echo "adsprpc : remote_cdsp_status : $remote_cdsp_status" > /dev/kmsg
if [ $remote_cdsp_status -eq 0 ]; then
setprop vendor.fastrpc.disable.cdsprpcd.daemon 1
echo "adsprpc : Disabled cdsp daemon" > /dev/kmsg
fi
esac
;;
esac
case "$target" in case "$target" in
"msm7201a_ffa" | "msm7201a_surf") "msm7201a_ffa" | "msm7201a_surf")
echo 500000 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate echo 500000 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate
@ -4287,7 +4321,7 @@ case "$target" in
#power/perf tunings for khaje #power/perf tunings for khaje
case "$soc_id" in case "$soc_id" in
"518" ) "518" | "561" | "585" | "586" )
# Core control parameters on big # Core control parameters on big
echo 0 > /sys/devices/system/cpu/cpu0/core_ctl/enable echo 0 > /sys/devices/system/cpu/cpu0/core_ctl/enable
@ -5264,7 +5298,7 @@ case "$target" in
"msmnile") "msmnile")
# cpuset parameters # cpuset parameters
target_varient=`getprop ro.build.product` target_varient=`getprop ro.build.product`
if [ "$target_varient" == "msmnile_gvmq" ]; then if [ "$target_varient" == "msmnile_gvmq" ] || [ "$target_varient" == "msmnile_gvmgh" ]; then
echo 4-7 > /dev/cpuset/background/cpus echo 4-7 > /dev/cpuset/background/cpus
echo 4-7 > /dev/cpuset/system-background/cpus echo 4-7 > /dev/cpuset/system-background/cpus
@ -5316,14 +5350,11 @@ case "$target" in
echo 85 85 > /proc/sys/kernel/sched_downmigrate echo 85 85 > /proc/sys/kernel/sched_downmigrate
echo 100 > /proc/sys/kernel/sched_group_upmigrate echo 100 > /proc/sys/kernel/sched_group_upmigrate
echo 10 > /proc/sys/kernel/sched_group_downmigrate echo 10 > /proc/sys/kernel/sched_group_downmigrate
echo 1 > /proc/sys/kernel/sched_walt_rotate_big_tasks
echo 0-3 > /dev/cpuset/background/cpus echo 0-3 > /dev/cpuset/background/cpus
echo 0-3 > /dev/cpuset/system-background/cpus echo 0-3 > /dev/cpuset/system-background/cpus
# Turn off scheduler boost at the end
echo 0 > /proc/sys/kernel/sched_boost
# configure governor settings for silver cluster # configure governor settings for silver cluster
echo "schedutil" > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor echo "schedutil" > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor
@ -5415,6 +5446,10 @@ case "$target" in
done done
done done
fi fi
# Turn off scheduler boost at the end
echo 0 > /proc/sys/kernel/sched_boost
echo 1 > /proc/sys/kernel/sched_walt_rotate_big_tasks
# memlat specific settings are moved to seperate file under # memlat specific settings are moved to seperate file under
# device/target specific folder # device/target specific folder
setprop vendor.dcvs.prop 1 setprop vendor.dcvs.prop 1

View file

@ -27,6 +27,9 @@
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# #
# Changes from Qualcomm Innovation Center are provided under the following license:
# Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
# SPDX-License-Identifier: BSD-3-Clause-Clear
soc_id=`cat /sys/devices/soc0/soc_id` 2> /dev/null soc_id=`cat /sys/devices/soc0/soc_id` 2> /dev/null
@ -39,7 +42,7 @@ elif [ "$soc_id" -eq 417 ]; then
setprop ro.vendor.qti.soc_model SM4250 setprop ro.vendor.qti.soc_model SM4250
elif [ "$soc_id" -eq 441 ]; then elif [ "$soc_id" -eq 441 ]; then
setprop ro.vendor.qti.soc_model SM4125 setprop ro.vendor.qti.soc_model SM4125
elif [ "$soc_id" -eq 518 ]; then elif [ "$soc_id" -eq 518 ] || [ "$soc_id" -eq 561 ]; then
setprop ro.vendor.qti.soc_model SM6225 setprop ro.vendor.qti.soc_model SM6225
elif [ "$soc_id" -eq 469 ]; then elif [ "$soc_id" -eq 469 ]; then
setprop ro.vendor.qti.soc_model QCM4290 setprop ro.vendor.qti.soc_model QCM4290
@ -53,4 +56,6 @@ elif [ "$soc_id" -eq 497 ]; then
setprop ro.vendor.qti.soc_model QCM6490 setprop ro.vendor.qti.soc_model QCM6490
elif [ "$soc_id" -eq 498 ]; then elif [ "$soc_id" -eq 498 ]; then
setprop ro.vendor.qti.soc_model QCS6490 setprop ro.vendor.qti.soc_model QCS6490
elif [ "$soc_id" -eq 585 ]; then
setprop ro.vendor.qti.soc_model SG4150P
fi fi

View file

@ -5,10 +5,13 @@ import /vendor/etc/init/hw/init.mmi.chipset.rc
import /vendor/etc/init/hw/init.mmi.overlay.rc import /vendor/etc/init/hw/init.mmi.overlay.rc
# Moto USB configuration # Moto USB configuration
# import /vendor/etc/init/hw/init.mmi.usb.rc #import /vendor/etc/init/hw/init.mmi.usb.rc
# Moto debugging # Moto debugging
import /vendor/etc/init/hw/init.mmi.debug.rc import /vendor/etc/init/hw/init.mmi.debug.rc
# Moto diag_mdlog configuration
#import /vendor/etc/init/hw/init.mmi.diag_mdlog.rc
#import /vendor/etc/init/hw/init.oem.rc #import /vendor/etc/init/hw/init.oem.rc
#import /vendor/etc/init/hw/init.mmi.common.rc #import /vendor/etc/init/hw/init.mmi.common.rc
#import /vendor/etc/init/hw/init.mmi.nonab.rc #import /vendor/etc/init/hw/init.mmi.nonab.rc
@ -77,6 +80,7 @@ on early-init
setprop ro.vendor.boot.powerup_reason ${ro.boot.powerup_reason} setprop ro.vendor.boot.powerup_reason ${ro.boot.powerup_reason}
setprop ro.vendor.boot.bl_state ${ro.boot.bl_state} setprop ro.vendor.boot.bl_state ${ro.boot.bl_state}
setprop ro.vendor.boot.serialno ${ro.boot.serialno} setprop ro.vendor.boot.serialno ${ro.boot.serialno}
setprop ro.vendor.boot.nal_id ${ro.boot.nal_id}
setprop ro.vendor.zygote ${ro.zygote} setprop ro.vendor.zygote ${ro.zygote}
# Make sure ro.boot.product.hardware.sku is set before hwservicemanager startup. # Make sure ro.boot.product.hardware.sku is set before hwservicemanager startup.
@ -112,6 +116,7 @@ on post-fs && property:ro.vendor.hw.fsg_super_image=yes
on post-fs on post-fs
mkdir /mnt/vendor/persist/camera 0755 vendor_tcmd vendor_tcmd mkdir /mnt/vendor/persist/camera 0755 vendor_tcmd vendor_tcmd
mkdir /mnt/vendor/persist/camera/iqtuning 0755 vendor_tcmd vendor_tcmd
mkdir /mnt/vendor/persist/camera/dualcal 0775 camera vendor_tcmd mkdir /mnt/vendor/persist/camera/dualcal 0775 camera vendor_tcmd
mkdir /mnt/vendor/persist/camera/focus 0775 camera vendor_tcmd mkdir /mnt/vendor/persist/camera/focus 0775 camera vendor_tcmd
mkdir /mnt/vendor/persist/camera/ledcal 0775 camera vendor_tcmd mkdir /mnt/vendor/persist/camera/ledcal 0775 camera vendor_tcmd
@ -261,6 +266,9 @@ on post-fs-data
# Imager tuning data for camera subsystem # Imager tuning data for camera subsystem
mkdir /data/vendor/misc/imager 0771 camera camera mkdir /data/vendor/misc/imager 0771 camera camera
# Imager tuning metadata for camera subsystem
mkdir /data/vendor/misc/imager/metadata 0771 camera camera
# NFC vendor data # NFC vendor data
mkdir /data/vendor/nfc 0770 nfc nfc mkdir /data/vendor/nfc 0770 nfc nfc
@ -345,8 +353,8 @@ on boot
#service vendor.bl_logs_copy /vendor/bin/apanic_copy.sh -i #service vendor.bl_logs_copy /vendor/bin/apanic_copy.sh -i
# class late_start # class late_start
# group log # group log
# oneshot # oneshot
# disabled # disabled
#service vendor.apanic_annotate /vendor/bin/apanic_save.sh build #service vendor.apanic_annotate /vendor/bin/apanic_save.sh build
# class late_start # class late_start
@ -360,7 +368,7 @@ service vendor.batt_health /vendor/bin/batt_health
group vendor_pwric cache net_admin log group vendor_pwric cache net_admin log
disabled disabled
on property:sys.boot_completed=1 on property:sys.boot_completed=1 && property:ro.product.is_production=false
start vendor.batt_health start vendor.batt_health
on property:sys.boot_completed=1 && property:ro.vendor.zram.swapon=true on property:sys.boot_completed=1 && property:ro.vendor.zram.swapon=true
@ -429,7 +437,8 @@ service vendor.mmi-boot-sh /vendor/bin/init.mmi.boot.sh
#service vendor.mmi-shutdown-sh /vendor/bin/init.mmi.shutdown.sh #service vendor.mmi-shutdown-sh /vendor/bin/init.mmi.shutdown.sh
# class core # class core
## oneshot # user root
# oneshot
# disabled # disabled
# translate MMI property in order to keep the consistent with QCOM # translate MMI property in order to keep the consistent with QCOM
@ -582,3 +591,10 @@ on shutdown
# IKSWQ-149109: Force shutter tone on Japan softbank carrier # IKSWQ-149109: Force shutter tone on Japan softbank carrier
on property:ro.carrier=softbank on property:ro.carrier=softbank
setprop audio.camerasound.force true setprop audio.camerasound.force true
# IKSWT-90913: Force shutter tone on Japan ymobile carrier
on property:ro.carrier=ymobile
setprop audio.camerasound.force true
on property:ro.vendor.hw.pvtui=*
setprop ro.hardware.device.pvtui ${ro.vendor.hw.pvtui}

View file

@ -672,13 +672,6 @@ service qcom-post-boot /vendor/bin/init.qcom.post_boot.sh
disabled disabled
oneshot oneshot
service qti-testscripts /system/bin/sh /product/etc/init.qcom.testscripts.sh
class late_start
user root
disabled
oneshot
seclabel u:r:qti-testscripts:s0
service wifi-sdio-on /vendor/bin/init.qcom.sdio.sh service wifi-sdio-on /vendor/bin/init.qcom.sdio.sh
class late_start class late_start
group wifi inet group wifi inet
@ -693,7 +686,6 @@ service wifi-crda /vendor/bin/init.crda.sh
on property:sys.boot_completed=1 on property:sys.boot_completed=1
start qcom-post-boot start qcom-post-boot
start qti-testscripts
on property:ro.vendor.ril.mbn_copy_completed=1 on property:ro.vendor.ril.mbn_copy_completed=1
write /data/vendor/radio/copy_complete 1 write /data/vendor/radio/copy_complete 1

View file

@ -33,10 +33,10 @@ firmware_directories /vendor/firmware_mnt/image/
# the DIAG device node is not world writable/readable. # the DIAG device node is not world writable/readable.
/dev/diag 0660 system oem_2901 /dev/diag 0660 system oem_2901
/dev/mhi_*_pipe_4 0660 system system /dev/mhi_*_pipe_4 0660 system system
/dev/virt-eavb 0660 system audio
/dev/ttydiag0 0660 system oem_2901 /dev/ttydiag0 0660 system oem_2901
/dev/ttydiag1 0660 system oem_2901 /dev/ttydiag1 0660 system oem_2901
/dev/ttydiag2 0660 system oem_2901 /dev/ttydiag2 0660 system oem_2901
/dev/genlock 0666 system system /dev/genlock 0666 system system
/dev/wlan 0660 wifi wifi /dev/wlan 0660 wifi wifi
/dev/kgsl 0666 system system /dev/kgsl 0666 system system
@ -236,6 +236,7 @@ firmware_directories /vendor/firmware_mnt/image/
/dev/msm_preproc_ctl 0660 system audio /dev/msm_preproc_ctl 0660 system audio
/dev/msm_rtac 0660 system audio /dev/msm_rtac 0660 system audio
/dev/msm_voicememo 0660 system audio /dev/msm_voicememo 0660 system audio
/dev/virt_sndcard_ctl 0660 system audio
/dev/ttyHSL1 0660 system system /dev/ttyHSL1 0660 system system
/dev/ttyHS1 0660 system system /dev/ttyHS1 0660 system system
/dev/mdm 0660 system radio /dev/mdm 0660 system radio
@ -456,6 +457,7 @@ firmware_directories /vendor/firmware_mnt/image/
/sys/class/graphics/fb* hdmi_audio_cb 0600 audioserver audio /sys/class/graphics/fb* hdmi_audio_cb 0600 audioserver audio
/sys/class/graphics/fb* lineptr_value 0664 system graphics /sys/class/graphics/fb* lineptr_value 0664 system graphics
/sys/class/drm/sde-crtc-* lineptr_value 0664 system graphics
/sys/class/graphics/fb* msm_fb_persist_mode 0664 system graphics /sys/class/graphics/fb* msm_fb_persist_mode 0664 system graphics
/sys/class/graphics/fb0 idle_time 0664 system graphics /sys/class/graphics/fb0 idle_time 0664 system graphics