blob: c80fbfefbf52f689e0ae0a3c4ef9877ba961f620 [file] [log] [blame]
Lukasz Majewski801123f2014-08-18 12:12:28 +02001UMS test script.
2
3ums_gadget_test.sh
4==================
5
6Example usage:
71. On the target:
8 create UMS exportable partitions (with e.g. gpt write), or specify a
9 partition number (PART_NUM) as "-" to use the entire device
10 ums 0 mmc 0
112. On the host:
12 sudo test/ums/ums_gadget_test.sh VID PID PART_NUM [-f FILE_SYSTEM] [test_file]
13 e.g. sudo test/ums/ums_gadget_test.sh 0525 a4a5 6 -f vfat ./dat_14M.img
14
15... where:
16 VID - UMS device USB Vendor ID
17 PID - UMS device USB Product ID
18 PART_NUM - is the partition number on which UMS operates or "-" to use the
19 whole device
20
21Information about available partitions on the target one can read with using
22the 'mmc part' or 'part list' commands.
23
24The partition num (PART_NUM) can be specified as '-' for using the whole device.
25
26The [-f FILE_SYSTEM] optional switch allows for formatting target partition to
27FILE_SYSTEM.
28
29The last, optional [test_file] parameter is for specifying the exact test file
30to use.