blob: 4ea0b3b64547754b8aa6d477a941d1a02525f539 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
DFU TEST CASE DESCRIPTION:
The prerequisites for running this script are assured by
dfu_gadget_test_init.sh, which is automatically invoked by dfu_gadget_test.sh.
In this file user is able to generate their own set of test files by altering
the default set of TEST_FILES_SIZES variable.
The dfu_gadget_test_init.sh would generate test images only if they are not
already generated.
On the target device, environment variable "dfu_alt_info" must contain at
least:
dfu_test.bin fat 0 6;dfudummy.bin fat 0 6
Depending on your device, you may need to replace "fat" with
"ext4", and "6" with the relevant partition number. For reference please
consult the config file for TRATS/TRATS2 devices
(../../include/configs/trats{2}.h)
One can use fat, ext4 or any other supported file system supported by U-Boot.
These can be created by exporting storage devices via UMS (ums 0 mmc 0) and
using standard tools on host (like mkfs.ext4).
Example usage:
1. On the target:
setenv dfu_alt_info dfu_test.bin fat 0 6\;dfudummy.bin fat 0 6
dfu 0 mmc 0
2. On the host:
test/dfu/dfu_gadget_test.sh dfu_test.bin dfudummy.bin
... where dfu_test.bin and dfudummy.bin are the names of the alt settings from
$dfu_alt_info.
|