blob: 4ea0b3b64547754b8aa6d477a941d1a02525f539 [file] [log] [blame]
Lukasz Majewskia4c86bb2014-06-18 11:38:56 +02001DFU TEST CASE DESCRIPTION:
2
Stephen Warren7ad67e52014-06-10 16:28:10 -06003The prerequisites for running this script are assured by
4dfu_gadget_test_init.sh, which is automatically invoked by dfu_gadget_test.sh.
Lukasz Majewskia4c86bb2014-06-18 11:38:56 +02005In this file user is able to generate their own set of test files by altering
6the default set of TEST_FILES_SIZES variable.
7The dfu_gadget_test_init.sh would generate test images only if they are not
8already generated.
9
Stephen Warren7ad67e52014-06-10 16:28:10 -060010On the target device, environment variable "dfu_alt_info" must contain at
11least:
Lukasz Majewskia4c86bb2014-06-18 11:38:56 +020012
Stephen Warren7ad67e52014-06-10 16:28:10 -060013 dfu_test.bin fat 0 6;dfudummy.bin fat 0 6
14
15Depending on your device, you may need to replace "fat" with
16"ext4", and "6" with the relevant partition number. For reference please
17consult the config file for TRATS/TRATS2 devices
18(../../include/configs/trats{2}.h)
19
20One can use fat, ext4 or any other supported file system supported by U-Boot.
21These can be created by exporting storage devices via UMS (ums 0 mmc 0) and
22using standard tools on host (like mkfs.ext4).
Lukasz Majewskia4c86bb2014-06-18 11:38:56 +020023
24Example usage:
251. On the target:
Stephen Warren7ad67e52014-06-10 16:28:10 -060026 setenv dfu_alt_info dfu_test.bin fat 0 6\;dfudummy.bin fat 0 6
Lukasz Majewskia4c86bb2014-06-18 11:38:56 +020027 dfu 0 mmc 0
282. On the host:
Stephen Warren7ad67e52014-06-10 16:28:10 -060029 test/dfu/dfu_gadget_test.sh dfu_test.bin dfudummy.bin
Lukasz Majewskia4c86bb2014-06-18 11:38:56 +020030
Stephen Warren7ad67e52014-06-10 16:28:10 -060031... where dfu_test.bin and dfudummy.bin are the names of the alt settings from
32$dfu_alt_info.