refactor(spm): leverage kernel preload options
For the SPM CI L3 test configs:
[1] spm-l3-boot-tests/fvp-default,fvp-spm-hyp,fvp-default:fvp-spm.linux
(renamed)
[2] spm-l3-boot-tests/fvp-default,fvp-spm-rst-bl31,fvp-default:fvp-spm.rstbl31
Leverage ARM_LINUX_KERNEL_AS_BL33 and PRELOADED_BL33_BASE TF-A options
to permit loading Hafnium as a normal world Hypervisor.
Hypervisor Device Tree (or manifest) is loaded at the default address
(dtb_addr=0x82000000).
For [1] this coincides with the HW CONFIG address. The DT blob is
supplied on the TF-A command line.
For [2] which uses RESET_TO_BL31=1, the DT address is supplied by the
ARM_PRELOADED_DTB_BASE option and preloaded.
Ramdisk is preloaded at the default initrd address
(initrd_addr 0x84000000).
Hypervisor (or "kernel") is preloaded at re-defined address
0x88000000 (kernel_addr).
Signed-off-by: Olivier Deprez <olivier.deprez@arm.com>
Change-Id: I7140085121bc26d003f1032311179cd5cb5abd90
diff --git a/run_config/fvp-spm.linux b/run_config/fvp-spm.linux
index 6e5e740..32b0c88 100644
--- a/run_config/fvp-spm.linux
+++ b/run_config/fvp-spm.linux
@@ -11,15 +11,15 @@
}
post_tf_build() {
- build_fip BL33="$archive/hafnium.bin" BL32="$archive/secure_hafnium.bin"
+ url="$tfa_downloads/spm/07-29-2021/manifest.dtb" fetch_file
+ archive_file "manifest.dtb"
+
+ build_fip BL32="$archive/secure_hafnium.bin" FVP_HW_CONFIG="$archive/manifest.dtb"
}
fetch_tf_resource() {
url="$tfa_downloads/spm/07-29-2021/initrd.img" saveas="initrd.bin" fetch_file
- url="$tfa_downloads/spm/07-29-2021/manifest.dtb" saveas="dtb.bin" fetch_file
-
archive_file "initrd.bin"
- archive_file "dtb.bin"
# Expect scripts
uart="0" file="spm-linux-uart0.exp" track_expect
@@ -35,9 +35,10 @@
arch_version="8.5" \
has_branch_target_exception="1" \
restriction_on_speculative_execution="2" \
- dtb_addr=0x80000000 \
+ kernel_addr=0x88000000 \
+ kernel_bin="$archive/hafnium.bin" \
has_smmuv3_params="1" \
gen_model_params
- model="$model" model_dtb="dtb.bin" gen_fvp_yaml
+ model="$model" model_dtb="manifest.dtb" gen_fvp_yaml
}