-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathinit.omap4.rc
107 lines (87 loc) · 2.84 KB
/
init.omap4.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
on early-init
mount debugfs debugfs /sys/kernel/debug
symlink /data/tombstones /tombstones
on init
loglevel 7
# See storage config details at http://source.android.com/tech/storage/
mkdir /mnt/shell/emulated 0700 shell shell
mkdir /storage/emulated 0555 root root
# create removable USB Mass Storage mountpoints
mkdir /storage/usb0 0555 root root
mkdir /storage/usb1 0555 root root
on fs
# zRAM read only 1 page at a time
write /proc/sys/vm/page-cluster 0
# lower swappiness when using swap
write /proc/sys/vm/swappiness 10
# pvr module
insmod /system/lib/modules/pvrsrvkm_sgx540_120.ko
insmod /system/lib/modules/pvrsrvkm_sgx544_112.ko
insmod /system/lib/modules/omaplfb_sgx540_120.ko
insmod /system/lib/modules/omaplfb_sgx544_112.ko
start pvrsrvinit
# change permissions for ION driver
chmod 0777 /dev/ion
# Change permissions on the cmdline (this is for debug only)
chmod 444 /proc/cmdline
chown root system /proc/net/ip_conntrack
on post-fs
# H264 Encoder Profile setting
# 1 - Base Profile
# 2 - Main Profile
# 8 - High Profile
setprop video.h264enc.profile 1
# symlink egl.cfg
symlink /sys/egl/egl.cfg /system/lib/egl/egl.cfg
on post-fs-data
# make dir for trace
mkdir /cache/trace 0777 system system
chmod 0777 /cache/trace
on early-boot
# set RLIMIT_MEMLOCK to 64MB
setrlimit 8 67108864 67108864
on boot
mount debugfs /sys/kernel/debug /sys/kernel/debug
chmod 0666 /dev/pvrsrvkm
# wifi
mkdir /data/misc/wifi 0770 wifi wifi
mkdir /data/misc/wifi/sockets 0770 wifi wifi
mkdir /data/misc/dhcp 0770 dhcp dhcp
chown dhcp dhcp /data/misc/dhcp
service pvrsrvinit /system/bin/pvrsrvinit
class core
user root
group root
oneshot
disabled
# create filesystems if necessary
service setup_fs /system/bin/setup_fs \
/dev/block/platform/omap/omap_hsmmc.1/by-name/cache \
/dev/block/platform/omap/omap_hsmmc.1/by-name/userdata
class core
user root
group root
oneshot
###################################################
# MSHIELD SMC Daemon - component required to store persistent data coming
# from the SMC PA to the device persistent storage
###################################################
service tf_daemon /system/bin/tf_daemon \
-d -c /system/etc/smc_normal_world_android_cfg.ini
class main
user root
group root
oneshot
disabled
###################################################
# MSHIELD SMC PA Control - installs the SMC PA into the Secure Environment
###################################################
service smc_pa /system/bin/smc_pa_ctrl \
-c /system/etc/smc_normal_world_android_cfg.ini \
start /vendor/firmware/smc_pa.ift
class core
user root
group root
oneshot
on property:init.svc.smc_pa=stopped
start tf_daemon