-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathinit.sun4i_sdcard.rc
executable file
·134 lines (111 loc) · 4.52 KB
/
init.sun4i_sdcard.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
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
122
123
124
125
126
127
128
129
130
131
import init.sun4i.usb.rc
on early-init
export EXTERNAL_STORAGE /mnt/sdcard
mkdir /mnt/sdcard 0000 system system
mkdir /mnt/extsd 0000 system system
mkdir /mnt/usbhost1 0000 system system
symlink /mnt/sdcard /sdcard
on fs
symlink /dev/block/nandc /dev/block/boot
symlink /dev/block/nandd /dev/block/system
symlink /dev/block/nande /dev/block/data
symlink /dev/block/nandg /dev/block/recovery
symlink /dev/block/nandh /dev/block/cache
mount vfat /dev/block/nandi /mnt/sdcard rw utf8 noatime nodiratime
mount ext4 loop@/sdcard/multiboot/system.img /system rw noatime nodiratime
mount ext4 loop@/sdcard/multiboot/data.img /data rw noatime nodiratime
mount ext4 loop@/sdcard/multiboot/cache.img /cache rw noatime nodiratime
on post-fs
# bluetooth power up/down interface
chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type
chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state
chmod 0660 /sys/class/rfkill/rfkill0/state
chown bluetooth bluetooth /sys/class/rfkill/rfkill1/type
chown bluetooth bluetooth /sys/class/rfkill/rfkill1/state
chmod 0660 /sys/class/rfkill/rfkill1/state
write /sys/class/rfkill/rfkill0/state 0
setprop rw.bluetooth.status "0"
on boot
exec "dd if=/dev/zero count=1 | tr '\000' '\377' > /dev/block/nandf"
insmod /system/lib/modules/sun4i-vibrator.ko #Vibrator
insmod /system/lib/modules/ump.ko #Mail 400M
insmod /system/lib/modules/mali.ko #Mail 400M
insmod /system/lib/modules/videobuf-core.ko
insmod /system/lib/modules/videobuf-dma-contig.ko
insmod /system/lib/modules/mma7660.ko #Gsensor
insmod /system/lib/modules/gt2005.ko
insmod /system/lib/modules/sun4i_csi0.ko
insmod /system/lib/modules/usbnet.ko #USB Internet sharing
insmod /system/lib/modules/asix.ko
insmod /system/lib/modules/qf9700.ko
insmod /system/lib/modules/mcs7830.ko
insmod /system/lib/modules/rtl8150.ko #Ethernet Controller
insmod /system/lib/modules/ft5x_ts.ko #Ft5x Touchscreen
insmod /system/lib/modules/goodix_touch.ko #Goodix Touchscreen
insmod /system/lib/modules/btusb.ko
insmod /system/lib/modules/pl2303.ko
insmod /system/lib/modules/tun.ko
#for stock roms
insmod /system/vendor/modules/sun4i-vibrator.ko #Vibrator
insmod /system/vendor/modules/ump.ko #Mail 400M
insmod /system/vendor/modules/mali.ko #Mail 400M
insmod /system/vendor/modules/videobuf-core.ko
insmod /system/vendor/modules/videobuf-dma-contig.ko
insmod /system/vendor/modules/mma7660.ko #Gsensor
insmod /system/vendor/modules/gt2005.ko
insmod /system/vendor/modules/sun4i_csi0.ko
insmod /system/vendor/modules/usbnet.ko #USB Internet sharing
insmod /system/vendor/modules/asix.ko
insmod /system/vendor/modules/qf9700.ko
insmod /system/vendor/modules/mcs7830.ko
insmod /system/vendor/modules/rtl8150.ko #Ethernet Controller
insmod /system/vendor/modules/ft5x_ts.ko #Ft5x Touchscreen
insmod /system/vendor/modules/goodix_touch.ko #Goodix Touchscreen
insmod /system/vendor/modules/btusb.ko
insmod /system/vendor/modules/pl2303.ko
insmod /system/vendor/modules/tun.ko
chown system system /sys/class/timed_output/sun4i-vibrator/enable
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor fantasy
# wifi related service
service wpa_supplicant /system/bin/wpa_supplicant -Dwext -iwlan0 \
-c/data/misc/wifi/wpa_supplicant.conf -e/data/misc/wifi/entropy.bin
class main
socket wpa_wlan0 dgram 660 wifi wifi
group system wifi inet
disabled
oneshot
# dhcpcd daemons
service dhcpcd_wlan0 /system/bin/dhcpcd -ABKL
class main
disabled
oneshot
service iprenew_wlan0 /system/bin/dhcpcd -n
class main
disabled
oneshot
service dhcpcd_eth0 /system/bin/dhcpcd -ABKL
class main
disabled
oneshot
service iprenew_eth0 /system/bin/dhcpcd -n
class main
disabled
oneshot
service u3gmonitor /system/bin/u3gmonitor
class main
user root
group root
oneshot
service hciattach /system/bin/hciattach -n -s 115200 /dev/ttyS1 rda 1500000
class main
user root
group bluetooth net_bt_admin
disabled
oneshot
# adb over network
on property:service.adb.tcp.port=5555
stop adbd
start adbd
on property:service.adb.tcp.port=-1
stop adbd
start adbd