9os

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit b0b2aba36aece786d531ae0e1c40785482fdea57
parent 6b834aee719d8e6a6db38710ebac7df47d208de5
Author: Ambroise Vincent <ambroise.vincent@arm.com>
Date:   Thu,  9 May 2019 14:35:13 +0100

[scripts] Add FVP script

The user needs to provide FVP_PATH and TFA_PATH as environment
variables. Respectively the paths to the FVP binary and the TF-A folder.

Change-Id: I395c86f0b0e4040ff04d472e84dd6d3744bc8e75
Signed-off-by: Ambroise Vincent <ambroise.vincent@arm.com>

Diffstat:
MMakefile | 3+++
Ascripts/fvp.sh | 28++++++++++++++++++++++++++++
2 files changed, 31 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile @@ -19,6 +19,9 @@ $(DIRS): FORCE gen: $(ENVIRON) FORCE +@. $(ENVIRON) && cd src && $(MAKE) gen +fvp: + scripts/fvp.sh + $(DIRS): $(ENVIRON) $(ENVIRON): diff --git a/scripts/fvp.sh b/scripts/fvp.sh @@ -0,0 +1,28 @@ +#!/bin/sh + +CROSS_COMPILE=aarch64-linux-gnu- make LDFLAGS=-Ttext=0x6000000 CFLAGS=-O0 + +romfw_path=bin/romfw.bin +uart0_path=uart0.out +uart3_path=uart3.out + +$FVP_PATH/FVP_Base_RevC-2xAEMv8A \ + -p \ + -C bp.pl011_uart0.uart_enable=1 \ + -C bp.pl011_uart0.out_file="$uart0_path" \ + -C bp.pl011_uart3.uart_enable=1 \ + -C bp.pl011_uart3.out_file="$uart3_path" \ + -C bp.secure_memory=0 \ + -C cache_state_modelled=0 \ + -C cluster0.has_arm_v8-3=1 \ + -C cluster1.has_arm_v8-3=1 \ + -C cluster0.cpu0.RVBAR=0x6000000 \ + -C cluster0.cpu1.RVBAR=0x6000000 \ + -C cluster0.cpu2.RVBAR=0x6000000 \ + -C cluster0.cpu3.RVBAR=0x6000000 \ + -C cluster1.cpu0.RVBAR=0x6000000 \ + -C cluster1.cpu1.RVBAR=0x6000000 \ + -C cluster1.cpu2.RVBAR=0x6000000 \ + -C cluster1.cpu3.RVBAR=0x6000000 \ + -C bp.flashloader0.fname=$TFA_PATH/build/fvp/debug/fip.bin \ + --data cluster0.cpu0="$romfw_path"@0x6000000