Lukasz Majewski | 801123f | 2014-08-18 12:12:28 +0200 | [diff] [blame^] | 1 | UMS test script. |
| 2 | |
| 3 | ums_gadget_test.sh |
| 4 | ================== |
| 5 | |
| 6 | Example usage: |
| 7 | 1. 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 |
| 11 | 2. 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 | |
| 21 | Information about available partitions on the target one can read with using |
| 22 | the 'mmc part' or 'part list' commands. |
| 23 | |
| 24 | The partition num (PART_NUM) can be specified as '-' for using the whole device. |
| 25 | |
| 26 | The [-f FILE_SYSTEM] optional switch allows for formatting target partition to |
| 27 | FILE_SYSTEM. |
| 28 | |
| 29 | The last, optional [test_file] parameter is for specifying the exact test file |
| 30 | to use. |