SiFive RISC-V Development Setup

risc-v

RISC-V is the new hotness, and the SiFive FE310 is the first open-source RISC-V hardware SoC. This is a guide to start developing for this chip or FPGA.

Ubuntu Build

I’m using Ubuntu 16.04.

Install the dependencies:

sudo apt install -y build-essential texinfo gawk bison libmpc-dev libtool automake libusb-1.0-0-dev

Make it

Mac Build

Note: Building on macOS is not officially supported yet. I tried anyway but couldn’t get it to build.

On a Mac, you’ll want Homebrew, and then install the dependencies:

brew install coreutils gawk

Make it

Check out and build the toolchain with:

git clone --recursive [/downloads/https-github-com-sifive-freedo](/downloads/https-github-com-sifive-freedo)
cd freedom-e-sdk
make tools

Usage

The toolchain will be in your build directory’s toolchain/bin folder, so add that to your path and build away.