Last active
December 14, 2018 22:03
-
-
Save gojimmypi/5bfc8a4839ae4be20d07dc42151db710 to your computer and use it in GitHub Desktop.
icestorm FPGA install
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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