blob: f8c1a74bbd5eadd2b8f775ef1da8f9bd630fda7e [file] [log] [blame]
Lukasz Majewskia4c86bb2014-06-18 11:38:56 +02001DFU TEST CASE DESCRIPTION:
2
3The prerequisites for running this script are assured by dfu_gadget_test_init.sh.
4In this file user is able to generate their own set of test files by altering
5the default set of TEST_FILES_SIZES variable.
6The dfu_gadget_test_init.sh would generate test images only if they are not
7already generated.
8
9Moreover, on a target device the "dfu_alt_info" env variable should be extended
10to have "dfu_test.bin fat 0 6;" \ entry ([1]). For reference please consult the
11config file for TRATS/TRATS2 devices (./include/configs/trats{2}.h)
12
13One can use fat, ext4 or any other supported file system, which can be
14created in a convenient way with exporting partitions via UMS (ums 0 mmc 0)
15and using standard tools on host (like mkfs.ext4).
16
17Example usage:
181. On the target:
19 env default -a
20 dfu 0 mmc 0
212. On the host:
22 ./dfu_gadget_test.sh 11 [test_file]
23
24where 11 is the mumber of alt setting corresponding to entry [1] and [test_file]
25is an optional parameter, with which one can explicitly indicate the test file
26to be used.
27
28The number of the alt setting entry can be obtained with dfu-util -l command.
29In its output one should look for the 'name="dfu_test1.bin"' and corresponding
30alt=11.