u-boot/test/ums
Lukasz Majewski fbd3b79d77 test: ums: Add sleep before unmount directory
This change helps to run script on machines with quite long uptime.
Without this the following error emerges:

File: ./dat_14M.img
umount: /mnt/tmp-ums-test: device is busy.
        (In some cases useful info about processes that use
         the device is found by lsof(8) or fuser(1))
TX: md5sum:083d3d22b542d3ecba61b12d17e03f9f
mount: /dev/sdd6 already mounted or /mnt/tmp-ums-test busy
mount: according to mtab, /dev/sdd6 is already mounted on /mnt/tmp-ums-test

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
2014-11-14 21:09:12 +01:00
..
README test: ums: Add script for testing UMS gadget operation 2014-08-20 13:10:33 +02:00
ums_gadget_test.sh test: ums: Add sleep before unmount directory 2014-11-14 21:09:12 +01:00

UMS test script.

ums_gadget_test.sh
==================

Example usage:
1. On the target:
   create UMS exportable partitions (with e.g. gpt write), or specify a
   partition number (PART_NUM) as "-" to use the entire device
   ums 0 mmc 0
2. On the host:
   sudo test/ums/ums_gadget_test.sh VID PID PART_NUM [-f FILE_SYSTEM] [test_file]
   e.g. sudo test/ums/ums_gadget_test.sh 0525 a4a5 6 -f vfat ./dat_14M.img

... where:
    VID - UMS device USB Vendor ID
    PID - UMS device USB Product ID
    PART_NUM - is the partition number on which UMS operates or "-" to use the
	       whole device

Information about available partitions on the target one can read with using
the 'mmc part' or 'part list' commands.

The partition num (PART_NUM) can be specified as '-' for using the whole device.

The [-f FILE_SYSTEM] optional switch allows for formatting target partition to
FILE_SYSTEM.

The last, optional [test_file] parameter is for specifying the exact test file
to use.