Skip to content

Instantly share code, notes, and snippets.

@gojimmypi
Last active December 14, 2018 22:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gojimmypi/5bfc8a4839ae4be20d07dc42151db710 to your computer and use it in GitHub Desktop.
Save gojimmypi/5bfc8a4839ae4be20d07dc42151db710 to your computer and use it in GitHub Desktop.
icestorm FPGA install
#!/bin/bash
sudo apt-get update
sudo apt-get install build-essential clang bison flex libreadline-dev \
gawk tcl-dev libffi-dev git mercurial graphviz \
xdot pkg-config python python3 libftdi-dev
# RPi supplments needed:
# nextpnr
sudo apt-get install cmake
sudo apt-get install libboost-all-dev
sudo apt-get install libgl1-mesa-dev
# create workspace
mkdir -p ~/workspace
cd ~/workspace/
# icestorm
git clone https://github.com/cliffordwolf/icestorm.git icestorm
cd icestorm
make -j$(nproc)
sudo make install
cd ~/workspace/
# arachne-pnr
git clone https://github.com/cseed/arachne-pnr.git arachne-pnr
cd arachne-pnr
make -j$(nproc)
sudo make install
cd ~/workspace/
git clone https://github.com/YosysHQ/nextpnr nextpnr
cd nextpnr
cmake -DARCH=ice40 -DCMAKE_INSTALL_PREFIX=/usr/local .
make -j$(nproc)
sudo make install
cd ~/workspace/
# yosys
git clone https://github.com/cliffordwolf/yosys.git yosys
cd yosys
make -j$(nproc)
sudo make install
cd ~/workspace/cliffordwolf/icestorm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment