| #!/usr/bin/env bash |
| # |
| # Copyright (c) 2019-2020 Arm Limited. All rights reserved. |
| # |
| # SPDX-License-Identifier: BSD-3-Clause |
| # |
| |
| post_tf_archive() { |
| echo "Creating flash files which serve as Non-volatile Memory across reboots" |
| rm -f "$archive/flash0" |
| rm -f "$archive/flash1" |
| touch "$archive/flash0" |
| touch "$archive/flash1" |
| |
| set_run_env "run_tftf_reboot_tests" "1" |
| # Contents of Non Volatile Memory are written to this file |
| set_run_env "NVM_file" "flash0" |
| } |
| |
| post_fetch_tf_resource() { |
| uart0_log=$(echo uart-0-`date "+%H:%M:%S"`.log) |
| uart1_log=$(echo uart-1-`date "+%H:%M:%S"`.log) |
| set_run_env "uart0_file" "$uart0_log" |
| set_run_env "uart1_file" "$uart1_log" |
| |
| model="base-aemv8a" retain_flash="1" secure_memory="0" \ |
| cluster_0_num_cores="1" cluster_1_num_cores="1" \ |
| cache_state_modelled="0" \ |
| uart0_out="$uart0_log" \ |
| uart1_out="$uart1_log" \ |
| flashloader0_fwrite="flash0" \ |
| flashloader1_fwrite="flash1" \ |
| gen_model_params |
| |
| model="base-aemv8a" \ |
| model_bin="FVP_Base_AEMv8A-AEMv8A" \ |
| gen_fvp_yaml |
| } |