blob: 9dfed629946c070ebdc9a46f86329ae2d5a368a2 (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
#!/usr/bin/env bash
# This proprietary software may be used only as authorised by a licensing
# agreement from ARM Limited
# (C) COPYRIGHT 2019 ARM Limited
# The entire notice above must be reproduced on all authorised copies and
# copies may only be made to the extent permitted by a licensing agreement from
# ARM Limited.
# Set your ARMLMD_LICENSE_FILE License path for FVP licenses before running this script
# Get full absolute path to the directory of this file
pushd $(dirname "$0")
BASEDIR=$(pwd)
popd
help() {
echo "usage: run_model.sh \${FVP executable path} [ -u ]"
echo " -u: Run unit test selector"
echo " No additional argument: load and execute model"
exit 1
}
# Ensure that an FVP path has been provided
if [ -z "$1" ]
then
help
fi
cs700="Corstone-700"
a5ds="CA5DS"
if [[ $1 =~ $cs700 ]]; then
OUTDIR=${BASEDIR}/../build-iota-tiny/tmp-iota_tiny/deploy/images/corstone700
DIRNAME=corstone700
else
OUTDIR=${BASEDIR}/../build-iota-tiny/tmp-iota_tiny/deploy/images/a5ds
DIRNAME=a5ds
fi
if [ -z "$2" ]
then
if [[ $1 =~ $cs700 ]]; then
echo "================== Launching Corstone700 Model ==============================="
$1 \
-C se.trustedBootROMloader.fname="${OUTDIR}/se_romfw.bin" \
-C board.flashloader0.fname="${OUTDIR}/iota-tiny-image-corstone700.wic"
elif [[ $1 =~ $a5ds ]]; then
echo "================== Launching CA5-DS Model ==============================="
$1 \
-C board.flashloader0.fname="${OUTDIR}/bl1.bin" \
-C board.flashloader1.fname="${OUTDIR}/iota-tiny-image-a5ds.wic" \
$2
else
help
fi
elif [ "$2" == "-u" ]
then
# We assume that the FVP library model is identically named to the FVP executable.
python ${BASEDIR}/scripts/test/testselector.py \
--${DIRNAME} "--image_dir ${OUTDIR} --fvp ${1}.so"
else
help
fi
|