From 7d7324e1ab59e8dc74f41ba094b5ae183081b377 Mon Sep 17 00:00:00 2001 From: Robert Nelson Date: Mon, 14 Aug 2023 12:12:53 -0500 Subject: [PATCH] add: config.yaml for hss-payload-generator Signed-off-by: Robert Nelson --- .gitignore | 6 ++++++ deploy/config.yaml | 28 ++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 .gitignore create mode 100644 deploy/config.yaml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7ed2161 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +deploy/images/ +deploy/input/ +deploy/hss-payload-generator +mirror/ +riscv-toolchain/ +hart-software-services/ diff --git a/deploy/config.yaml b/deploy/config.yaml new file mode 100644 index 0000000..b878000 --- /dev/null +++ b/deploy/config.yaml @@ -0,0 +1,28 @@ +# +# HSS Payload Generator - buildroot configuration file +# + +# First, we can optionally set a name for our image, otherwise one will be created dynamically +set-name: 'PolarFire-SoC-HSS::U-Boot' + +# +# Next, we'll define the entry point addresses for each hart, as follows: +# +hart-entry-points: {u54_1: '0x80200000', u54_2: '0x80200000', u54_3: '0x80200000', u54_4: '0x80200000'} +# +# Finally, we'll define a payloads (source binary file) that will be placed at certain regions in memory +# The payload section is defined with the keyword payloads, and then a number of individual +# payload descriptors. +# +# Each payload has a name (path to its ELF/bin file), an owner-hart, and optionally 1-3 secondary-harts. +# +# Additionally, it has a privilege mode in which it will start execution. +# * Valid privilege modes are PRV_M, PRV_S and PRV_U. +# +# +# In this case, the only payload is the u-boot s-mode binary. +# +# Case only matters for the ELF path names, not the keywords. +# +payloads: + src.bin: {exec-addr: '0x80200000', owner-hart: u54_1, secondary-hart: u54_2, secondary-hart: u54_3, secondary-hart: u54_4, priv-mode: prv_s}