-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.rk3588.rc
83 lines (61 loc) · 3.49 KB
/
init.rk3588.rc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
on property:sys.boot_completed=1
chown system system /sys/class/devfreq/fb000000.gpu/governor
chown system system /sys/class/devfreq/fb000000.gpu/min_freq
chown system system /sys/class/devfreq/fb000000.gpu/max_freq
chmod 0664 /sys/class/devfreq/fb000000.gpu/governor
chmod 0664 /sys/class/devfreq/fb000000.gpu/min_freq
chmod 0664 /sys/class/devfreq/fb000000.gpu/max_freq
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 0
write /sys/devices/system/cpu/cpu4/cpufreq/scaling_min_freq 0
write /sys/devices/system/cpu/cpu6/cpufreq/scaling_min_freq 0
write /sys/devices/system/cpu/cpufreq/policy0/scaling_governor schedutil
write /sys/devices/system/cpu/cpufreq/policy4/scaling_governor schedutil
write /sys/devices/system/cpu/cpufreq/policy6/scaling_governor schedutil
write /sys/class/devfreq/dmc/governor dmc_ondemand
write /dev/vehicle 88
on charger
chown system system /sys/class/devfreq/fb000000.gpu/governor
chown system system /sys/class/devfreq/fb000000.gpu/min_freq
chown system system /sys/class/devfreq/fb000000.gpu/max_freq
chmod 0664 /sys/class/devfreq/fb000000.gpu/governor
chmod 0664 /sys/class/devfreq/fb000000.gpu/min_freq
chmod 0664 /sys/class/devfreq/fb000000.gpu/max_freq
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 0
write /sys/devices/system/cpu/cpu4/cpufreq/scaling_min_freq 0
write /sys/devices/system/cpu/cpu6/cpufreq/scaling_min_freq 0
write /sys/devices/system/cpu/cpufreq/policy0/scaling_governor schedutil
write /sys/devices/system/cpu/cpufreq/policy4/scaling_governor schedutil
write /sys/devices/system/cpu/cpufreq/policy6/scaling_governor schedutil
write /sys/class/devfreq/dmc/governor dmc_ondemand
on boot
chown system system /sys/class/thermal/thermal_zone0/policy
chown system system /sys/class/thermal/thermal_zone1/policy
chown system system /sys/class/thermal/thermal_zone2/policy
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/top-app/cpus 0-7
# reduce schedul time to improve io performance
write /sys/kernel/debug/sched_features NO_ENERGY_AWARE
chown system system /sys/devices/platform/fd5d0000.syscon/fd5d0000.syscon:usb2-phy@0/otg_mode
chmod 0660 /sys/devices/platform/fd5d0000.syscon/fd5d0000.syscon:usb2-phy@0/otg_mode
# The initial load of RT process, set the range of 0-1024, set the RT task above 300 will preferentially run on the cpuB(cpu4-cpu7)
write /proc/sys/kernel/sched_util_clamp_min_rt_default 0
write /proc/sys/vm/dirty_ratio 10
write /proc/sys/vm/dirty_background_ratio 1
write /proc/sys/vm/dirty_writeback_centisecs 100
write /proc/sys/vm/dirty_expire_centisecs 500
on init
# Increased power consumption and CPU in exchange for memory
write /proc/sys/vm/swappiness 100
write /sys/block/zram0/comp_algorithm lz4
chown system system /sys/system_monitor/system_status
chmod 0666 /sys/system_monitor/system_status
chown system system /sys/class/devfreq/dmc/system_status
chmod 0666 /sys/class/devfreq/dmc/system_status
on early-init
write /sys/devices/system/cpu/cpufreq/policy0/scaling_governor performance
write /sys/devices/system/cpu/cpufreq/policy4/scaling_governor performance
write /sys/devices/system/cpu/cpufreq/policy6/scaling_governor performance
write /sys/class/devfreq/dmc/governor performance