Skip to content

Commit

Permalink
quickstart fix
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinThomazic committed Dec 26, 2023
1 parent 6e79e20 commit fdd286f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,24 @@ cd cva6
git submodule update --init --recursive
```

2. Install the [GCC Toolchain](file:util/gcc-toolchain-builder/README.md#Prerequisites).
2. Install the GCC Toolchain [build prerequisites](util/gcc-toolchain-builder/README.md#Prerequisites) then [the toolchain itself](util/gcc-toolchain-builder/README.md#Getting-started).

:warning: It is **strongly recommanded** to use the toolchain built with the provided scripts.
:warning: It is **strongly recommended** to use the toolchain built with the provided scripts.

3. Set the RISCV environment variable.
```sh
export RISCV=/path/to/toolchain/installation/directory
```

4. Run these commands to install a custom Spike and Verilator (i.e. these versions must be used to simulate the CVA6) and [these](#running-regression-tests-simulations) tests suites.
4. Install `help2man` and `device-tree-compiler` packages.

For Debian-based Linux distributions, run :

```sh
sudo apt-get install help2man device-tree-compiler
```

5. Run these commands to install a custom Spike and Verilator (i.e. these versions must be used to simulate the CVA6) and [these](#running-regression-tests-simulations) tests suites.
```sh
# DV_SIMULATORS is detailed in the next section
export DV_SIMULATORS=veri-testharness,spike
Expand Down
2 changes: 1 addition & 1 deletion util/gcc-toolchain-builder/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ On macOS, you can use [Homebrew](http://brew.sh) to install the dependencies:

## Getting started

Once the prerequisites (see [below](#prerequisites)) are satisfied, you can fetch and build the
Once the prerequisites (see [above](#prerequisites)) are satisfied, you can fetch and build the
upstream GCC toolchain (default: 13.1.0) for bare-metal 32-bit and 64-bit applications in just three steps.

# 1. Select an installation location for the toolchain (here: the default RISC-V tooling directory $RISCV).
Expand Down

0 comments on commit fdd286f

Please sign in to comment.