Running Keystone on the CVA6 RISC-V processor
Reference
-
Documentation: http://docs.keystone-enclave.org/en/latest/Getting-Started/Running-Keystone-on-CVA6.html. Based on revision e9fcf7f.
-
CVA6 revision f301d69.
Prerequisites
-
Vivado 2018.3.
-
Genesys2 FPGA board.
Building a CVA6-ready Keystone image
NB: we didn’t enable the root of trust for attestation report yet (http://docs.keystone-enclave.org/en/latest/Getting-Started/Running-Keystone-on-CVA6.html#root-of-trust) as it seems we don’t need it for the moment.
# Cloning the Keystone repository
export KEYSTONE_ROOT=$HOME/keystone
git clone https://github.com/keystone-enclave/keystone.git $KEYSTONE_ROOT
cd $KEYSTONE_ROOT
git checkout e9fcf7f26a788c282647f820393dd262560f60cc
git submodule update --init --recursive
# Building Keystone
KEYSTONE_PLATFORM=cva6 make
# Flashing an SD card
sudo KEYSTONE_PLATFORM=cva6 SD_DEVICE=/dev/sdb make flash
-
Be careful of the device ID (
/dev/sdb
in this tutorial).