blob: 58d1d471230e040e860af19d359340b2d1111629 (
plain)
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
|
on init
# mount debugfs
mount debugfs /sys/kernel/debug /sys/kernel/debug
# power management
# Enable off mode by default
#write /sys/kernel/debug/pm_debug/enable_off_mode 1
# Enable Smart Reflex in debugfs
write /sys/kernel/debug/pm_debug/smartreflex/sr_core/autocomp 1
write /sys/kernel/debug/pm_debug/smartreflex/sr_iva/autocomp 1
write /sys/kernel/debug/pm_debug/smartreflex/sr_mpu/autocomp 1
on boot
setprop hw.nobattery true
setprop ro.build.product exynos4
setprop ro.product.device exynos4
setprop wifi.interface wlan0
# create dhcpcd dir
mkdir /data/misc/dhcp 0770 dhcp dhcp
chmod 0770 /data/misc/dhcp
chmod 0666 /dev/pvrsrvkm
# switch CPUfreq from performance to hotplug
#write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor hotplug
#write /sys/devices/system/cpu/cpufreq/hotplug/down_threshold 30
#Give system ownership and permission to boost clock for specified timeout
#Note boost_timeout cannot be changed from application because of dynamic sysfs creation. It will have default value of 3 sec.
chown system system /sys/devices/system/cpu/cpu0/cpufreq/boost_cpufreq
chmod 0664 /sys/devices/system/cpu/cpu0/cpufreq/boost_cpufreq
# Boost the CPU for 60 sec for boot optimization
#write /sys/devices/system/cpu/cpufreq/hotplug/boost_timeout 60000000
#write /sys/devices/system/cpu/cpu0/cpufreq/boost_cpufreq 1
# change permissions for alsa nodes
chmod 0777 /dev/snd/pcmC0D0c
chmod 0777 /dev/snd/pcmC0D0p
chmod 0777 /dev/snd/controlC0
chmod 0777 /dev/snd/timer
#change permissions for alsa nodes for audio modem
chmod 0777 /dev/snd/pcmC0D5c
chmod 0777 /dev/snd/pcmC0D5p
#change permissions for alsa nodes for HDMI
chmod 777 /dev/snd/pcmC0D7p
# change permissions for Overlay
chown system system /dev/video1
chown system system /dev/video2
chown system system /dev/video3
# change permissions for Tiler driver
chown media media /dev/tiler
chmod 0660 /dev/tiler
chmod 0660 /dev/dmm
# Revert the boost_timeout to the default value of 3 sec. Note this won't affect the prev boost
# request for boot time reduction
# write /sys/devices/system/cpu/cpufreq/hotplug/boost_timeout 3000000
# Enable hotplug detection for HDMI
# write /sys/devices/platform/omapdss/display2/hpd_enabled 1
chown system system /sys/class/graphics/fb0/overlays
chown system system /sys/class/graphics/fb0/fit_to_screen
chown system system /sys/class/graphics/fb1/overlays
chmod 0666 /dev/pvrsrvkm
# Add for wifi
mkdir /data/misc/wifi
mkdir /data/misc/wifi/sockets
chmod 0770 /data/misc/wifi
chmod 0770 /data/misc/wifi/sockets
chmod 0660 /data/misc/wifi/wpa_supplicant.conf
chown wifi wifi /data/misc/wifi
chown wifi wifi /data/misc/wifi/sockets
chown wifi wifi /data/misc/wifi/wpa_supplicant.conf
# wpa_supplicant socket (unix socket mode)
mkdir /data/system
mkdir /data/system/wpa_supplicant
chmod 0775 /data/system
chmod 0771 /data/system/wpa_supplicant
chown system system /data/system
chown wifi wifi /data/system/wpa_supplicant
# insmod wifi module
insmod /system/modules/cfg80211.ko
# insmod /system/modules/ath6kl.ko
# Initialize the SGX driver
service pvrsrvinit /system/bin/pvrsrvinit
user root
oneshot
service faketsd /system/bin/faketsd
user bluetooth
group bluetooth
oneshot
service wpa_supplicant /system/bin/wpa_supplicant -Dwext -iwlan0 -c/data/misc/wifi/wpa_supplicant.conf -dd
group system wifi inet
disabled
oneshot
service dhcpcd_wlan0 /system/bin/dhcpcd -d -B wlan0
group system dhcp
disabled
oneshot
# For Samsung Origen Bluetooth Feature
service bccmd /system/bin/bccmd -t bcsp -d /dev/ttySAC0 psload -r /system/etc/bluetooth/origen.psr
disable
oneshot
service hciattach /system/bin/hciattach -s 921600 /dev/ttySAC0 bcsp 921600 flow
disable
oneshot
|