-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinit.am335xevm.rc
93 lines (72 loc) · 2.7 KB
/
init.am335xevm.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
import init.am335xevm.usb.rc
on early-init
mount debugfs debugfs /sys/kernel/debug
on init
# See storage config details at http://source.android.com/tech/storage/
mkdir /mnt/shell/emulated 0700 shell shell
mkdir /storage/emulated 0555 root root
export EXTERNAL_STORAGE /storage/emulated/legacy
export EMULATED_STORAGE_SOURCE /mnt/shell/emulated
export EMULATED_STORAGE_TARGET /storage/emulated
# Support legacy paths
symlink /storage/emulated/legacy /sdcard
symlink /storage/emulated/legacy /mnt/sdcard
symlink /storage/emulated/legacy /storage/sdcard0
symlink /mnt/shell/emulated/0 /storage/emulated/legacy
# create directory for mounting usb drives
mkdir /storage/usb1 0666 system system
symlink /storage/usb1 /usbdrive
symlink /storage/usb1 /mnt/usb1
on post-fs-data
mkdir /data/misc/dhcp 0770 dhcp dhcp
chown dhcp dhcp /data/misc/dhcp
mkdir /data/misc/camera 0770 media media
# we will remap this as /storage/sdcard0 with the sdcard fuse tool
mkdir /data/media 0770 media_rw media_rw
chown media_rw media_rw /data/media
# Set indication (checked by vold) that we have finished this action
setprop vold.post_fs_data_done 1
on boot
# Boost cpu speed to 1GHz
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed 1000000
# Default Read Ahead value for sdcards
write /sys/block/mmcblk0/queue/read_ahead_kb 2048
# PWM-Backlight for display brightness on LCD7 Cape
chmod 0666 /sys/class/backlight/pwm-backlight/brightness
# PWM-Backlight for display brightness on LCD3 Cape
chmod 0666 /sys/class/backlight/tps65217-bl/brightness
on fs
mount_all /fstab.am335xevm
# This board does not have battery, force battery-level to 100%
setprop hw.nobattery true
# Set Camera permission
chmod 0666 /dev/video0
chown root root /dev/video0
service pvr /system/bin/sgx/rc.pvr start
class core
oneshot
service dhcpcd_eth0 /system/bin/dhcpcd -ABKL -f/system/etc/dhcpcd/dhcpcd.conf
disabled
oneshot
service iprenew_eth0 /system/bin/dhcpcd -n
disabled
oneshot
# virtual sdcard daemon running as media_rw (1023)
service sdcard /system/bin/sdcard /data/media /mnt/shell/emulated 1023 1023
class late_start
# VNC Server service
service androidvncserver /system/bin/androidvncserver
disabled
oneshot
# Bluetooth Service
#service dbus /system/bin/dbus-daemon --system --nofork
# class main
# socket dbus stream 660 bluetooth bluetooth
# user bluetooth
# group bluetooth net_bt_admin
#service bluetoothd /system/bin/bluetoothd -n
# class main
# socket bluetooth stream 660 bluetooth bluetooth
# socket dbus_bluetooth stream 660 bluetooth bluetooth
# group bluetooth net_bt_admin misc
# disabled