1 # Installation instructions for nextpnr with ECP5 support
3 ## Setting up new debootstrap and chroot into it
5 Run the following if you wish to isolate the nextpnr-ecp5 build
6 from other software (reproducible builds) or use the schroot
7 auto-preparation script here:
8 <https://git.libre-soc.org/?p=dev-env-setup.git;a=blob;f=mk-deb-chroot;hb=HEAD>
10 export MY_CHROOT=/stable-chroot
12 debootstrap stable $MY_CHROOT http://deb.debian.org/debian/
13 mount -t proc proc $MY_CHROOT/proc
14 mount -t sysfs sysfs $MY_CHROOT/sys
15 mount -t devpts devpts $MY_CHROOT/dev/pts/
16 chroot $MY_CHROOT /bin/bash
18 ## Steps to compile Project Trellis
20 ### Necessary software to install
23 apt-get install python3 python3-dev clang cmake libboost-dev \
24 libboost-filesystem-dev libboost-thread-dev \
25 libboost-program-options-dev libboost-iostreams-dev \
27 git clone --recursive https://github.com/YosysHQ/prjtrellis
29 ### Build Project Trellis
33 cmake -DCMAKE_INSTALL_PREFIX=/usr/local/libtrellis .
37 ## Steps to compile Project Nextpnr with ECP5
39 ### Necessary software to install
41 apt-get install libeigen3-dev
42 git clone --recursive https://github.com/YosysHQ/nextpnr
44 ### Build Project nextpnr-ecp5
47 cmake -DCMAKE_INSTALL_PREFIX=/usr/local/nextpnr-ecp5 \
48 -DARCH=ecp5 -D TRELLIS_INSTALL_PREFIX=/usr/local/libtrellis .
52 Please adjust the install paths for nextpnr and previous prjtrellis.