From 9749b9eaa27d95f2cd158a4c45456e21d3bbcc38 Mon Sep 17 00:00:00 2001 From: Eric Schneider <54514192+eric-unc@users.noreply.github.com> Date: Sun, 24 Dec 2023 22:30:21 -0500 Subject: [PATCH] Update Running-Keystone-on-CVA6.rst --- .../Running-Keystone-on-CVA6.rst | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/docs/source/Getting-Started/Running-Keystone-on-CVA6.rst b/docs/source/Getting-Started/Running-Keystone-on-CVA6.rst index bb0ea1645..bd7743c29 100644 --- a/docs/source/Getting-Started/Running-Keystone-on-CVA6.rst +++ b/docs/source/Getting-Started/Running-Keystone-on-CVA6.rst @@ -16,6 +16,7 @@ Follow :doc:`QEMU-Setup-Repository` to setup the repository. After you setup the repository, you can run the following commands to build Keystone. :: + export BUILD_ROOT= mkdir cd @@ -61,15 +62,16 @@ bootloader itself. (Likely never) The CVA6 image uses a simplified structure due to bootloader ROM integration on the device: :: code-block:: bash -#!/bin/bash - -set -e - -# format disk -sgdisk --clear --new=1:2048:67583 --new=2 --typecode=1:3000 --typecode=2:8300 /dev/sdc -# flash image -dd if=sm.build/platform/generic/firmware/fw_payload.bin of=/dev/sdc1 status=progress oflag=sync bs=1M + #!/bin/bash + + set -e + + # format disk + sgdisk --clear --new=1:2048:67583 --new=2 --typecode=1:3000 --typecode=2:8300 /dev/sdc + + # flash image + dd if=sm.build/platform/generic/firmware/fw_payload.bin of=/dev/sdc1 status=progress oflag=sync bs=1M Running on the CVA6