-
Notifications
You must be signed in to change notification settings - Fork 5
/
init.sun4i.rc
executable file
·69 lines (50 loc) · 2 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
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 Novo7
on boot
#insmod key & tp driver
insmod /system/vendor/modules/goodix_touch.ko
# touch key
insmod /system/vendor/modules/hv2605.ko
# insmod mali driver
insmod /system/vendor/modules/ump.ko
insmod /system/vendor/modules/mali.ko
#insmod gsensor driver
insmod /system/vendor/modules/bma250.ko
# insmod vibrator
insmod /system/vendor/modules/sun4i-vibrator.ko
chmod 777 /sys/class/timed_output/sun4i-vibrator/enable
#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/gt2005.ko
insmod /system/vendor/modules/sun4i_csi1.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