1 # Installation instructions for nextpnr with ECP5 support
3 ## Setting up new debootstrap and chroot into it
5 export MY_CHROOT=/stable-chroot
8 debootstrap stable $MY_CHROOT http://deb.debian.org/debian/
10 mount -t proc proc $MY_CHROOT/proc
11 mount -t sysfs sysfs $MY_CHROOT/sys
12 mount -t devpts devpts $MY_CHROOT/dev/pts/
14 chroot $MY_CHROOT /bin/bash
16 ## Steps to compile Project Trellis
18 Necessary software to install
22 apt-get install python3 python3-dev clang cmake libboost-dev libboost-filesystem-dev libboost-thread-dev libboost-program-options-dev libboost-iostreams-dev openocd
24 git clone --recursive https://github.com/YosysHQ/prjtrellis
31 cmake -DCMAKE_INSTALL_PREFIX=/usr/local/libtrellis .
35 ## Steps to compile Project Nextpnr with ECP5
37 Necessary software to install
39 apt-get install libeigen3-dev
41 git clone --recursive https://github.com/YosysHQ/nextpnr
43 Build Project nextpnr-ecp5
47 cmake -DCMAKE_INSTALL_PREFIX=/usr/local/nextpnr-ecp5 -DARCH=ecp5 -DTRELLIS_INSTALL_PREFIX=/usr/local/libtrellis .
51 Please adjust the install paths for nextpnr and previous prjtrellis.