SiFive Risc-V Development Setup
SiFive Risc-V Development Setup

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 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 OSX is not 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

Checkout and build the toolchain with:

git clone --recursive https://github.com/sifive/freedom-e-sdk.git
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

Hope this was helpful. If so, feel free to checkout my YouTube channel, get updates when a new article is posted by following on Feedly and read the the other guides at nathan.vertile.com/blog
comments powered by Disqus