blob: f881e8f28a98720f37cf5501be30d53e3ae10802 [file] [log] [blame]
Leonardo Sandoval9dfdd1b2020-08-06 17:08:11 -05001#!/usr/bin/env bash
Zelaleme9e81482020-07-10 15:18:46 -05002#
Leonardo Sandoval579c7372020-10-23 15:23:32 -05003# Copyright (c) 2019-2020 Arm Limited. All rights reserved.
Zelaleme9e81482020-07-10 15:18:46 -05004#
5# SPDX-License-Identifier: BSD-3-Clause
6#
7
8post_tf_archive() {
9 echo "Creating flash files which serve as Non-volatile Memory across reboots"
10 rm -f "$archive/flash0"
11 rm -f "$archive/flash1"
12 touch "$archive/flash0"
13 touch "$archive/flash1"
14
15 set_run_env "run_tftf_reboot_tests" "1"
16 # Contents of Non Volatile Memory are written to this file
17 set_run_env "NVM_file" "flash0"
18}
19
20post_fetch_tf_resource() {
21 uart0_log=$(echo uart-0-`date "+%H:%M:%S"`.log)
22 uart1_log=$(echo uart-1-`date "+%H:%M:%S"`.log)
23 set_run_env "uart0_file" "$uart0_log"
24 set_run_env "uart1_file" "$uart1_log"
25
26 model="base-aemv8a" retain_flash="1" secure_memory="0" \
27 cluster_0_num_cores="1" cluster_1_num_cores="1" \
28 cache_state_modelled="0" \
29 uart0_out="$uart0_log" \
30 uart1_out="$uart1_log" \
31 flashloader0_fwrite="flash0" \
32 flashloader1_fwrite="flash1" \
33 gen_model_params
Leonardo Sandoval1240a0a2020-10-27 11:27:11 -060034
35 model="base-aemv8a" \
36 model_bin="FVP_Base_AEMv8A-AEMv8A" \
37 gen_fvp_yaml
Zelaleme9e81482020-07-10 15:18:46 -050038}