Sandrine Bailleux | 3cd87d7 | 2018-10-09 11:12:55 +0200 | [diff] [blame] | 1 | #! /bin/bash |
| 2 | |
| 3 | set -e |
| 4 | |
| 5 | function 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. |
| 15 | check_file bl1.bin |
| 16 | check_file ns_bl1u.bin |
| 17 | check_file fip.bin |
| 18 | check_file fwu_fip.bin |
| 19 | check_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 Bailleux | 7af6c6d | 2018-10-22 17:09:07 +0200 | [diff] [blame] | 26 | FVP_Base_AEMv8A-AEMv8A \ |
Sandrine Bailleux | 3cd87d7 | 2018-10-09 11:12:55 +0200 | [diff] [blame] | 27 | -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 |