-
Notifications
You must be signed in to change notification settings - Fork 4
/
init.odroidc4.board.rc
77 lines (63 loc) · 1.81 KB
/
init.odroidc4.board.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
on early-init
start watchdogd
loglevel 3
mount configfs configfs /sys/kernel/config
#mount usbfs none /proc/bus/usb
insmod /vendor/lib/modules/mali.ko
insmod /vendor/lib/modules/spidev.ko
insmod /vendor/lib/modules/spi-meson-spicc.ko
on init
on late-init
#optimize android app runtime performance and user experience
write /dev/cpuset/foreground/cpus 2-5
write /dev/cpuset/top-app/cpus 2-5
on post-fs-data
insmod /vendor/lib/modules/cfg80211.ko
insmod /vendor/lib/dovi.ko
insmod /vendor/lib/sl_hdr.ko
on boot
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor interactive
write /sys/class/freq_limit/limit 0
#HDMI IN
chmod 666 /sys/class/sii9233a/port
chmod 666 /sys/class/sii9233a/enable
chmod 666 /sys/module/tvin_vdin/parameters/max_buf_num
# chmod 0666 /dev/ge2d
chmod 666 /dev/cec
#NET LED
chmod 666 sys/class/leds/net_green/brightness
chmod 666 sys/class/leds/net_red/brightness
on fs
service makebootini /vendor/bin/makebootini
class core
user root
group root
disabled
oneshot
service makedefaultprop /vendor/bin/makedefaultprop
class core
user root
group root
disabled
oneshot
service afrd /vendor/bin/afrd
class core
user root
group root
disabled
oneshot
service usb_modeswitch /vendor/bin/usb_modeswitch -W -c /odm/usb_modeswitch.conf
class main
disabled
oneshot
on property:dev.bootcomplete=1
start makebootini
start makedefaultprop
on property:dev.usbhub.reset=1
write /sys/devices/platform/gpio-reset/reset-usb_hub/control "reset"
setprop dev.usbhub.reset 0
on post-fs-data
insmod /vendor/lib/modules/btrtl.ko
insmod /vendor/lib/modules/btusb.ko
insmod /vendor/lib/modules/hid-multitouch.ko
insmod /vendor/lib/modules/dwav-usb-mt.ko