blob: bfbc07f2f21ac4a19baced66bcdaada1505f9af4 [file] [log] [blame]
Sandrine Bailleux3cd87d72018-10-09 11:12:55 +02001#! /bin/bash
2
3set -e
4
5function check_file {
6 if [ -e "$1" ]; then
7 return 0
8 else
9 echo "File $1 does not exist."
10 return 1
11 fi
12}
13
14# Check the presence of all required files.
15check_file bl1.bin
16check_file ns_bl1u.bin
17check_file fip.bin
18check_file fwu_fip.bin
19check_file backup_fip.bin ||
20 (echo "Creating backup_fip.bin as a copy of fip.bin." ;
21 cp fip.bin backup_fip.bin)
22
23# Chosen topology: 2 clusters of 4 cores each.
24# Power on core 0 only.
25# Load all binaries at the right addresses.
Sandrine Bailleux7af6c6d2018-10-22 17:09:07 +020026FVP_Base_AEMv8A-AEMv8A \
Sandrine Bailleux3cd87d72018-10-09 11:12:55 +020027 -C cluster0.NUM_CORES=4 \
28 -C cluster1.NUM_CORES=4 \
29 -C pctl.startup=0.0.0.0 \
30 -C bp.secureflashloader.fname=bl1.bin \
31 -C bp.flashloader0.fname=fip.bin \
32 --data cluster0.cpu0=backup_fip.bin@0x09000000 \
33 --data cluster0.cpu0=fwu_fip.bin@0x08400000 \
34 --data cluster0.cpu0=ns_bl1u.bin@0x0beb8000