|
@@ -26,12 +26,19 @@ Example usage:
|
|
setenv dfu_alt_info dfu_test.bin fat 0 6\;dfudummy.bin fat 0 6
|
|
setenv dfu_alt_info dfu_test.bin fat 0 6\;dfudummy.bin fat 0 6
|
|
dfu 0 mmc 0
|
|
dfu 0 mmc 0
|
|
2. On the host:
|
|
2. On the host:
|
|
- test/dfu/dfu_gadget_test.sh X Y [test file name]
|
|
|
|
|
|
+ test/dfu/dfu_gadget_test.sh X Y [test file name] [usb device vendor:product]
|
|
e.g. test/dfu/dfu_gadget_test.sh 0 1
|
|
e.g. test/dfu/dfu_gadget_test.sh 0 1
|
|
or
|
|
or
|
|
e.g. test/dfu/dfu_gadget_test.sh 0 1 ./dat_960.img
|
|
e.g. test/dfu/dfu_gadget_test.sh 0 1 ./dat_960.img
|
|
|
|
+ or
|
|
|
|
+ e.g. test/dfu/dfu_gadget_test.sh 0 1 0451:d022
|
|
|
|
+ or
|
|
|
|
+ e.g. test/dfu/dfu_gadget_test.sh 0 1 ./dat_960.img 0451:d022
|
|
|
|
|
|
... where X and Y are dfu_test.bin's and dfudummy.bin's alt setting numbers.
|
|
... where X and Y are dfu_test.bin's and dfudummy.bin's alt setting numbers.
|
|
They can be obtained from dfu-util -l or $dfu_alt_info.
|
|
They can be obtained from dfu-util -l or $dfu_alt_info.
|
|
It is also possible to pass optional [test file name] to force the script to
|
|
It is also possible to pass optional [test file name] to force the script to
|
|
test one particular file.
|
|
test one particular file.
|
|
|
|
+If many DFU devices are connected, it may be useful to filter on USB
|
|
|
|
+vendor/product ID (0451:d022).
|
|
|
|
+One can get them by running "lsusb" command on a host PC.
|