summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'init.am43xevmboard.rc')
-rw-r--r--init.am43xevmboard.rc134
1 files changed, 134 insertions, 0 deletions
diff --git a/init.am43xevmboard.rc b/init.am43xevmboard.rc
new file mode 100644
index 0000000..9b154ff
--- /dev/null
+++ b/init.am43xevmboard.rc
@@ -0,0 +1,134 @@
1import /init.am43xevmboard.usb.rc
2
3on early-init
4 mount debugfs /sys/kernel/debug /sys/kernel/debug mode=755
5
6on init
7 # Support legacy paths
8 symlink /sdcard /mnt/sdcard
9 symlink /sdcard /storage/sdcard0
10
11on post-fs
12 # HACK: for SD card boot mounting rootfs as rw and setuid for su
13 mount rootfs rootfs / rw remount
14 chmod 6755 /system/xbin/su
15 chown dhcp shell /system/etc/dhcpcd/dhcpcd-run-hooks
16
17
18on post-fs-data
19
20 mkdir /data/media 0770 media_rw media_rw
21
22 setprop vold.post_fs_data_done 1
23 mkdir /data/misc/dhcp 0770 dhcp dhcp
24 chown dhcp dhcp /data/misc/dhcp
25 mkdir /data/lad 0770 media system
26 mkdir /data/lad/LAD 0770 media system
27
28# enabling thermal zone for mpu
29 write /sys/class/thermal/thermal_zone0/mode enabled
30
31on boot
32 # execute script to set cpuset configuration
33 exec - root root system -- /system/bin/init.am43xevmboard.cpuset.sh
34
35 # wi-fi
36 mkdir /data/misc/wifi/sockets 0770 wifi wifi
37 mkdir /data/misc/dhcp 0770 dhcp dhcp
38
39 # CMEM for Radio
40 insmod /system/lib/modules/cmemk.ko phys_start=0x95400000 phys_end=0x95800000 pools=20x65536,40x4096 allowOverlap=1
41
42 # 2d blitter
43 insmod /system/lib/modules/galcore.ko physSize=0xc0000000
44
45 # Set up kernel tracing, but disable it by default
46 chmod 0222 /sys/kernel/debug/tracing/trace_marker
47 write /sys/kernel/debug/tracing/tracing_on 0
48 chmod 0755 /sys/kernel/debug/tracing
49
50
51on fs
52 mount_all /fstab.am43xevmboard
53
54service pvrsrvinit /vendor/bin/pvrsrvinit
55 class core
56 user root
57 group root
58 oneshot
59
60#shared transport user space mgr service for Bluetooth, FM and GPS
61service uim /system/bin/uim-sysfs
62 class core
63 user root
64 group bluetooth net_bt_admin
65
66service p2p_supplicant /system/bin/wpa_supplicant \
67 -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
68 -I/system/etc/wifi/wpa_supplicant_overlay.conf \
69 -O/data/misc/wifi/sockets -pp2p_device=1\
70 -e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0
71 socket wpa_wlan0 dgram 660 wifi wifi
72 class late_start
73 disabled
74 oneshot
75
76service wpa_supplicant /system/bin/wpa_supplicant \
77 -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
78 -I/system/etc/wifi/wpa_supplicant_overlay.conf \
79 -O/data/misc/wifi/sockets \
80 -e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0
81 socket wpa_wlan0 dgram 660 wifi wifi
82 class late_start
83 disabled
84 oneshot
85
86service dhcpcd_wlan0 /system/bin/dhcpcd -aABDKL
87 class main
88 disabled
89 oneshot
90
91service iprenew_wlan0 /system/bin/dhcpcd -n
92 class main
93 disabled
94 oneshot
95
96service dhcpcd_eth0 /system/bin/dhcpcd -ABDKL
97 class main
98 disabled
99 oneshot
100
101service dhcpcd_eth1 /system/bin/dhcpcd -ABDKL
102 class main
103 disabled
104 oneshot
105
106service dhcpcd_bnep0 /system/bin/dhcpcd -ABKL
107 class main
108 disabled
109 oneshot
110
111service iprenew_bnep0 /system/bin/dhcpcd -n
112 class main
113 disabled
114 oneshot
115
116service hostapd_bin /system/bin/hostapd -d /data/misc/wifi/hostapd.conf
117 socket wpa_wlan0 dgram 660 wifi wifi
118 class main
119 disabled
120 oneshot
121
122service lad_dra7xx /system/bin/lad_dra7xx -g
123 class main
124 user media
125 group system
126 oneshot
127
128service radio_app /system/bin/RadioApp -h eth
129 class main
130 user media
131 group system inet
132 disabled
133 oneshot
134