summaryrefslogtreecommitdiff
path: root/test/ums/README
diff options
context:
space:
mode:
authorLukasz Majewski <l.majewski@samsung.com>2014-08-18 12:12:28 +0200
committerMarek Vasut <marex@denx.de>2014-08-20 13:10:33 +0200
commit801123fe50464156103774a6e6d068ee4352a10b (patch)
tree9afe03294ba288f897a2dfe899899f9c76661701 /test/ums/README
parent4c984c8136695958eb2038d44095e612a60421ca (diff)
downloadu-boot-imx-801123fe50464156103774a6e6d068ee4352a10b.zip
u-boot-imx-801123fe50464156103774a6e6d068ee4352a10b.tar.gz
u-boot-imx-801123fe50464156103774a6e6d068ee4352a10b.tar.bz2
test: ums: Add script for testing UMS gadget operation
This commit adds new test for UMS USB gadget to u-boot mainline tree. It is similar in operation to the one already available in test/dfu directory. Signed-off-by: Lukasz Majewski <l.majewski@samsung.com> Acked-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'test/ums/README')
-rw-r--r--test/ums/README30
1 files changed, 30 insertions, 0 deletions
diff --git a/test/ums/README b/test/ums/README
new file mode 100644
index 0000000..c80fbfe
--- /dev/null
+++ b/test/ums/README
@@ -0,0 +1,30 @@
+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.