summaryrefslogtreecommitdiff
path: root/example/README
blob: 100c6b931bad81e0de6cde7d38f38b19417ddc47 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Assuming you are running on a Raspberry Pi 2-4 or Zero (tested with bullseye):

1. Install all necessary packages to synthesize rot.v and build bit image (rot.bin) for the ice4pi:

 sudo apt-get install yosys fpga-icestorm arachne-pnr
 make

2. Make sure your Pi has SPI enabled (e.g. use raspi-config)

3. Building and installing the flashrom tool

 git clone https://github.com/lightside-instruments/flashrom.git
 cd flashrom
 make CONFIG_ENABLE_LIBPCI_PROGRAMMERS=no CONFIG_ENABLE_LIBUSB0_PROGRAMMERS=no CONFIG_ENABLE_LIBUSB1_PROGRAMMERS=no install
 cd ..

4. Load the rot.bin file to the shield:

 make load