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