-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.amlogic.board.rc
82 lines (66 loc) · 2.4 KB
/
init.amlogic.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
78
79
80
81
import init.amlogic.usb.rc
on early-init
loglevel 3
insmod /boot/aml_nftl_dev.ko
#mount debugfs debugfs /sys/kernel/debug
mount configfs configfs /sys/kernel/config
#mount usbfs none /proc/bus/usb
insmod /boot/optee.ko
insmod /boot/optee_armtz.ko
on init
on post-fs-data
insmod /system/lib/mali.ko mali_debug_level=2 mali_shared_mem_size=0x40000000
on boot
setprop ro.radio.noril true
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq 2016000
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 96000
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor hotplug
write /sys/class/freq_limit/limit 0
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_dflt_freq 2016000
#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/amstream_sub_read
# insmod /system/lib/audio_data.ko
# chmod 0666 /dev/ge2d
chmod 666 /dev/cec
chmod 0666 /dev/opteearmtz00
chmod 0666 /dev/tee0
mount debugfs debugfs /sys/kernel/debug mode=755
on fs
on post-fs-data
mkdir /data/tee
service wpa_supplicant /system/bin/wpa_supplicant \
-iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
-I/system/etc/wifi/wpa_supplicant_overlay.conf \
-O/data/misc/wifi/sockets \
-e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0
# we will start as root and wpa_supplicant will switch to user wifi
# after setting up the capabilities required for WEXT
# user wifi
# group wifi inet keystore
class main
socket wpa_wlan0 dgram 660 wifi wifi
disabled
oneshot
service p2p_supplicant /system/bin/wpa_supplicant \
-ip2p0 -Dnl80211 -c /data/misc/wifi/p2p_supplicant.conf \
-m/data/misc/wifi/p2p_supplicant.conf \
-I/system/etc/wifi/p2p_supplicant_overlay.conf \
-O/data/misc/wifi/sockets \
-e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0 \
-N -puse_p2p_group_interface=1 \
-iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf
# we will start as root and wpa_supplicant will switch to user wifi
# after setting up the capabilities required for WEXT
# user wifi
# group wifi inet keystore
class main
socket wpa_wlan0 dgram 660 wifi wifi
disabled
oneshot
service tee_supplicant /system/bin/tee-supplicant
class main
oneshot
seclabel u:r:tee:s0