forked from nemomobile/buteo-mtp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
50 lines (32 loc) · 1.11 KB
/
README
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
This file is meant to contain up-to-date information about
MTP stack & its dependencies
----------------------------------------------
It Contains the following sections
1. Running the stack in device
2. GadgetFS
-----------------------------------------------
1. Running the stack in device
------------------------------
When running the test application in the device
run: source /tmp/session_bus_address.user
Otherwise it will crash.
2. GadgetFS
----------------------------
Here's the full procedure to build the gadgetfs module:
$ apt-get source kernel-source
$ cd kernel-<version>
$ make -C /usr/src/kernel-headers CONFIG_USB_GADGETFS=m M=`pwd`/drivers/usb/gad$
The result is drivers/usb/gadget/gadgetfs.ko
Copy this file to the device to /lib/modules/current/
Type 'depmod -a'
Type 'lsof | grep ttyG may help'
Kill all processes which are displayed.
Then type lsof etc. again.
If there are some processed displayed
rename /lib/modules/current/g_nokia to something else and
kill the process again.
Do 'mkdir dev/gadget'
'rmmod g_nokia'
'rmmod g_file_storage'
'modprobe gadgetfs'
'mount -t gadgetfs none /dev/gadget'