feat(plat/fvp_r): add run and test configs to boot Yocto Linux on FVP-R
This patch adds the appropriate files to build TF-A for fvp_r
and then boot to the Yocto Linux command line. If the command
line is reached the test is considered successful.
This patch only adds support for ARM internal Jenkins CI, support for
OpenCI will be added in a future patch.
Files needed by Jenkins can be found here:
http://files.oss.arm.com/downloads/tf-a/fvp_r/
Change-Id: Id18f76b0233d67a8ae8967fedc5b93220a09002e
Signed-off-by: John Powell <john.powell@arm.com>
Signed-off-by: Madhukar Pappireddy <madhukar.pappireddy@arm.com>
diff --git a/model/baser-aemv8r.sh b/model/baser-aemv8r.sh
new file mode 100644
index 0000000..b684881
--- /dev/null
+++ b/model/baser-aemv8r.sh
@@ -0,0 +1,53 @@
+#!/usr/bin/env bash
+#
+# Copyright (c) 2021, Arm Limited. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+
+if is_arm_jenkins_env || upon "$local_ci"; then
+ # Internal ARM Jenkins environment path
+ set_model_path "$warehouse/SysGen/Models/$model_version/$model_build/external/models/$model_flavour/FVP_BaseR_AEMv8R"
+else
+ # OpenCI support will be added in a future patch
+ set_model_path ""
+fi
+
+# Write model command line options
+cat <<EOF >"$model_param_file"
+
+-C bp.pl011_uart0.unbuffered_output=1
+-C bp.pl011_uart0.untimed_fifos=true
+-C cache_state_modelled=0
+-C bp.vis.rate_limit-enable=0
+-C cluster0.NUM_CORES=4
+-C cluster0.has_aarch64=1
+-C bp.exclusive_monitor.monitor_access_level=1
+-C cluster0.cpu0.RVBAR=0x80000000
+-C cluster0.cpu1.RVBAR=0x80000000
+-C cluster0.cpu2.RVBAR=0x80000000
+-C cluster0.cpu3.RVBAR=0x80000000
+-C bp.dram_metadata.init_value=0
+-C bp.dram_metadata.is_enabled=true
+-C bp.dram_size=8
+-C bp.refcounter.non_arch_start_at_default=1
+-C bp.ve_sysregs.mmbSiteDefault=0
+-C cluster0.gicv3.cpuintf-mmap-access-level=2
+-C cluster0.gicv3.SRE-enable-action-on-mmap=2
+-C cluster0.gicv3.SRE-EL2-enable-RAO=1
+-C cluster0.gicv3.extended-interrupt-range-support=1
+-C cluster0.stage12_tlb_size=512
+-C gic_distributor.GICD_CTLR-DS-1-means-secure-only=1
+-C gic_distributor.GITS_BASER0-type=1
+-C gic_distributor.ITS-count=1
+-C gic_distributor.ITS-hardware-collection-count=1
+-C gic_distributor.direct-lpi-support=1
+-C gic_distributor.has-two-security-states=0
+-C pctl.startup=0.0.0.*
+-C bp.secureflashloader.fname=$bl1_bin
+-C bp.virtioblockdevice.image_path=$rootfs_bin
+--data cluster0.cpu0=$fip_bin@$fip_addr
+--data cluster0.cpu0=$dtb_bin@$dtb_addr
+--data cluster0.cpu0=$kernel_bin@$kernel_addr
+
+EOF