README 977 B

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