blob: 8e597f0e4d5ca14a071079d0d44f8ff4014d6fdd [file] [log] [blame]
johpow01936638d2021-11-08 18:22:24 -06001#!/usr/bin/env bash
2#
3# Copyright (c) 2021 Arm Limited. All rights reserved.
4#
5# SPDX-License-Identifier: BSD-3-Clause
6#
7
8post_tf_build() {
9 # Download and archive FVP-R files
10 url="$tfa_downloads/fvp_r/core-image-minimal-fvp-baser-aemv8r64.wic" saveas="rootfs.bin" fetch_file
11 url="$tfa_downloads/fvp_r/fvp-baser-aemv8r64.dtb" saveas="dtb.bin" fetch_file
12 url="$tfa_downloads/fvp_r/Image" saveas="kernel.bin" fetch_file
13 url="$tfa_downloads/fvp_r/u-boot.bin" saveas="uboot.bin" fetch_file
14
15 archive_file "rootfs.bin"
16 archive_file "dtb.bin"
17 archive_file "kernel.bin"
18 archive_file "uboot.bin"
19
20 # Build FIP image with Uboot as BL33
21 build_fip BL33="$archive/uboot.bin"
22}
23
24fetch_tf_resource() {
25 # Expect script for yocto linux boot
26 uart="0" file="fvp-r-yocto.exp" track_expect
27
28 # Generate FVP model YAML template
29 payload_type="linux" gen_fvp_yaml_template
30}
31
32post_fetch_tf_resource() {
33 local model="baser-aemv8r"
34
35 # Generate the model command parameters
36 model="$model" \
37 fip_addr=0x40000000 \
38 dtb_addr=0x03000000 \
39 kernel_addr=0x00800000 \
40 gen_model_params
41
42 # Generate the FVP yaml file
43 model="$model" gen_fvp_yaml
44}