-
Notifications
You must be signed in to change notification settings - Fork 7
/
init.sun4i.rc
executable file
·98 lines (80 loc) · 3.08 KB
/
init.sun4i.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
import init.sun4i.usb.rc
on early-init
export EXTERNAL_STORAGE /mnt/sdcard
mkdir /mnt/sdcard 0000 system system
# for backwards compatibility
symlink /mnt/sdcard /sdcard
mkdir /mnt/extsd 0000 system system
mkdir /mnt/usbhost1 0000 system system
on fs
mount ext4 /dev/block/nandd /system wait noatime nodev barrier=0
# try to mount /data
wait /dev/block/nande
mount ext4 /dev/block/nande /data wait noatime nosuid nodev barrier=0
setupfs /dev/block/nande
umount /data
exec /system/bin/logwrapper /system/bin/e2fsck -y /dev/block/nande
exec /system/bin/busybox mount -t ext4 -o noatime,nosuid,nodev,barrier=0,journal_checksum,noauto_da_alloc /dev/block/nande /data
# try to mount /cache
mount ext4 /dev/block/nandh /cache wait noatime nosuid nodev barrier=0
setupfs /dev/block/nandh
umount /cache
exec /system/bin/logwrapper /system/bin/e2fsck -y /dev/block/nandh
exec /system/bin/busybox mount -t ext4 -o noatime,nosuid,nodev,barrier=0,journal_checksum,noauto_da_alloc /dev/block/nandh /cache
format_userdata /dev/block/nandi crane-evb
on boot
#insmod key & tp driver
insmod /system/vendor/modules/sun4i-ts.ko
# insmod /system/vendor/modules/sun4i-keyboard.ko
# insmod mali driver
insmod /system/vendor/modules/ump.ko
insmod /system/vendor/modules/mali.ko
#csi module
insmod /system/vendor/modules/videobuf-core.ko
insmod /system/vendor/modules/videobuf-dma-contig.ko
insmod /system/vendor/modules/gc0308.ko
insmod /system/vendor/modules/sun4i_csi0.ko
#network module
insmod /system/vendor/modules/usbnet.ko
insmod /system/vendor/modules/asix.ko
insmod /system/vendor/modules/qf9700.ko
insmod /system/vendor/modules/mcs7830.ko
insmod /system/vendor/modules/rtl8150.ko
# -------- bluetooth related services ----------
#chmod 0666 /dev/ttyS1
#chmod 0777 /system/bin/hciattach
#change rfkill permissions for bluetooth power management
# chown system system /sys/class/rfkill/rfkill0/state
# chmod 0660 /sys/class/rfkill/rfkill0/state
# write /sys/class/rfkill/rfkill0/state 0
# setprop rw.bluetooth.status "0"
# --- used for usi bm01a 3in1 module's bluetooth attach
#service hciattach /system/bin/hciattach -n -s 115200 /dev/ttyS1 bcm4329 1500000
# user root
# group bluetooth net_bt_admin
# disabled
# oneshot
# --- used for huawei mw269v2 3in1 module's bluetooth attach
#service hciattach /system/bin/brcm_patchram_plus --enable_hci \
# --baudrate 1500000 \
# --patchram /system/vendor/modules/bcm4330.hcd \
# --enable_lpm /dev/ttyS1
# user root
# group bluetooth net_bt_admin
# disabled
# --- used for samsung swb-a31 2in1 module's bluetooth attach
#service bccmd /system/bin/bccmd -t bcsp -b 115200 -d /dev/ttyS1 psload -r /system/vendor/modules/ath6k/AR6003/A31_Script.psr
# user root
# group bluetooth net_bt_admin
# disabled
# oneshot
#
#service hciattach /system/bin/hciattach -s 1500000 /dev/ttyS1 bcsp 1500000 flow
# user root
# group bluetooth net_bt_admin
# disabled
# oneshot
#service abtfilt /system/bin/abtfilt -d -z -n -v -b -s
# disabled
# oneshot
# -------- bluetooth related services end ----------