Lines Matching +full:run +full:- +full:in +full:- +full:wait

2 # Copyright (c) 2022-2024 Intel Corporation
3 # SPDX-License-Identifier: Apache-2.0
4 set -e
6 # Twister integration tool for a remote ssh-accessible cAVS audio DSP
8 # hook for both --device-serial-pty and --west-flash, for example:
15 # twister -p intel_adsp/cavs25 --device-testing \
16 # --device-serial-pty=$ZEPHYR_BASE/soc/intel/intel_adsp/tools/cavstwist.sh \
17 # --west-flash=$ZEPHYR_BASE/soc/intel/intel_adsp/tools/cavstwist.sh
19 # The CAVS_OLD_FLASHER is necessary because now the client-server-based
21 # the misc-flasher as the runner. Please remember to do the command
23 # client-server-based intel_adsp runner.
25 # The device at CAVS_HOST must be accessible via non-interactive ssh
26 # access and the remote account must have password-free sudo ability.
30 # The signing key must be correct for your device. In general we want
31 # to be using the SOF-curated "community" keys. Note that cAVS 2.5
37 # Alternatively, pass a built "zephyr.elf" file (in a complete build
45 # flash tool is run via west as part of the build, has a working
46 # directory in the build tree, and is passed the build directory as
47 # its command line argument. The console/serial tool is run globally
48 # in $ZEPHYR_BASE. But the console script has no arguments, and thus
50 # asynchronous and may start in either order, but our console script
51 # can't be allowed to run until after the flash. If it does, it will
52 # pull old data (from the last test run!) out of the buffer and
58 # console script then just has to wait for the binary to appear (which
60 # confuse the next test run), and emit the adsplog output as expected.
62 # And notice the race protection: it's possible twister will run a
65 # yet. So we add an extra wait step in the signing path for the
73 if [ -z "$CAVS_HOST" -o -z "$CAVS_KEY" -o -z "$CAVS_RIMAGE" ]; then
88 # Twister --device-serial-pty mode
96 # Twister --west-flash mode
102 # Wait for the last flasher to accept the old file
103 while [ -e $IMAGE ]; do
110 west sign --tool-data=$CAVS_RIMAGE/config -t rimage -- -k $CAVS_KEY)
115 while [ ! -e $IMAGE ]; do
123 rm -f $IMAGE2
129 ssh ssh://$CAVS_HOST "sudo pkill -9 -f cavstool" ||: