summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNishanth Menon2014-11-11 17:30:19 -0600
committerNishanth Menon2014-11-11 17:30:19 -0600
commit6dda8ce023c6ababe251699eef2da06a6beeb2d4 (patch)
tree417d84388c40e51704ecd8637cd840d4a991d00a /init.beaglex15board.usb.rc
parent88fc70c0850794fb0bce52f63dfcc0d8f3d5062e (diff)
downloaddevice-ti-x15-6dda8ce023c6ababe251699eef2da06a6beeb2d4.tar.gz
device-ti-x15-6dda8ce023c6ababe251699eef2da06a6beeb2d4.tar.xz
device-ti-x15-6dda8ce023c6ababe251699eef2da06a6beeb2d4.zip
rename to x15
Signed-off-by: Nishanth Menon <nm@ti.com>
Diffstat (limited to 'init.beaglex15board.usb.rc')
-rw-r--r--init.beaglex15board.usb.rc97
1 files changed, 97 insertions, 0 deletions
diff --git a/init.beaglex15board.usb.rc b/init.beaglex15board.usb.rc
new file mode 100644
index 0000000..850dad4
--- /dev/null
+++ b/init.beaglex15board.usb.rc
@@ -0,0 +1,97 @@
1on boot
2 write /sys/class/android_usb/android0/iManufacturer ${ro.product.manufacturer}
3 write /sys/class/android_usb/android0/iProduct ${ro.product.model}
4 write /sys/class/android_usb/android0/iSerial ${ro.serialno}
5 write /sys/class/android_usb/android0/idVendor 0451
6 write /sys/class/android_usb/android0/idProduct D101
7 write /sys/class/android_usb/f_mass_storage/inquiry_string "Texas Instruments OMAP5 0100"
8
9on fs
10 mkdir /dev/usb-ffs 0770 shell shell
11 mkdir /dev/usb-ffs/adb 0770 shell shell
12 mount functionfs adb /dev/usb-ffs/adb uid=2000,gid=2000
13 write /sys/class/android_usb/android0/f_ffs/aliases adb
14
15on property:sys.usb.config=none
16 stop adbd
17 write /sys/class/android_usb/android0/enable 0
18 write /sys/class/android_usb/android0/bDeviceClass 0
19 setprop sys.usb.state ${sys.usb.config}
20
21on property:sys.usb.config=adb
22 write /sys/class/android_usb/android0/enable 0
23 write /sys/class/android_usb/android0/idVendor 0451
24 write /sys/class/android_usb/android0/idProduct D101
25 write /sys/class/android_usb/android0/functions ${sys.usb.config}
26 write /sys/class/android_usb/android0/enable 1
27 setprop sys.usb.state ${sys.usb.config}
28
29on property:sys.usb.config=mtp
30 write /sys/class/android_usb/android0/enable 0
31 write /sys/class/android_usb/android0/idVendor 0451
32 write /sys/class/android_usb/android0/idProduct D108
33 write /sys/class/android_usb/android0/functions ${sys.usb.config}
34 write /sys/class/android_usb/android0/enable 1
35 setprop sys.usb.state ${sys.usb.config}
36
37on property:sys.usb.config=mtp,adb
38 write /sys/class/android_usb/android0/enable 0
39 write /sys/class/android_usb/android0/idVendor 0451
40 write /sys/class/android_usb/android0/idProduct D109
41 write /sys/class/android_usb/android0/functions ${sys.usb.config}
42 write /sys/class/android_usb/android0/enable 1
43 start adbd
44 setprop sys.usb.state ${sys.usb.config}
45
46on property:sys.usb.config=rndis
47 write /sys/class/android_usb/android0/enable 0
48 write /sys/class/android_usb/android0/idVendor 0451
49 write /sys/class/android_usb/android0/idProduct D103
50 write /sys/class/android_usb/android0/functions ${sys.usb.config}
51 write /sys/class/android_usb/android0/bDeviceClass 224
52 write /sys/class/android_usb/android0/enable 1
53 setprop sys.usb.state ${sys.usb.config}
54
55on property:sys.usb.config=rndis,adb
56 write /sys/class/android_usb/android0/enable 0
57 write /sys/class/android_usb/android0/idVendor 0451
58 write /sys/class/android_usb/android0/idProduct D104
59 write /sys/class/android_usb/android0/functions ${sys.usb.config}
60 write /sys/class/android_usb/android0/bDeviceClass 224
61 write /sys/class/android_usb/android0/enable 1
62 start adbd
63 setprop sys.usb.state ${sys.usb.config}
64
65on property:sys.usb.config=ptp
66 write /sys/class/android_usb/android0/enable 0
67 write /sys/class/android_usb/android0/idVendor 0451
68 write /sys/class/android_usb/android0/idProduct D10D
69 write /sys/class/android_usb/android0/functions ${sys.usb.config}
70 write /sys/class/android_usb/android0/enable 1
71 setprop sys.usb.state ${sys.usb.config}
72
73on property:sys.usb.config=ptp,adb
74 write /sys/class/android_usb/android0/enable 0
75 write /sys/class/android_usb/android0/idVendor 0451
76 write /sys/class/android_usb/android0/idProduct D10E
77 write /sys/class/android_usb/android0/functions ${sys.usb.config}
78 write /sys/class/android_usb/android0/enable 1
79 start adbd
80 setprop sys.usb.state ${sys.usb.config}
81
82on property:sys.usb.config=mass_storage
83 write /sys/class/android_usb/android0/enable 0
84 write /sys/class/android_usb/android0/idVendor 0451
85 write /sys/class/android_usb/android0/idProduct D100
86 write /sys/class/android_usb/android0/functions ${sys.usb.config}
87 write /sys/class/android_usb/android0/enable 1
88 setprop sys.usb.state ${sys.usb.config}
89
90on property:sys.usb.config=mass_storage,adb
91 write /sys/class/android_usb/android0/enable 0
92 write /sys/class/android_usb/android0/idVendor 0451
93 write /sys/class/android_usb/android0/idProduct D102
94 write /sys/class/android_usb/android0/functions ${sys.usb.config}
95 write /sys/class/android_usb/android0/enable 1
96 start adbd
97 setprop sys.usb.state ${sys.usb.config}