Installation instructions for dfu-util, openFPGALoader, ujprog, fujprog, xc3sprog and ecpprog for boards ULX3S, ECP5 and OrangeCrab.
-Use of the automated install scripts recommended
+Use of the automated install scripts recommended:
+<https://git.libre-soc.org/?p=dev-env-setup.git;a=blob;f=fpga-boot-load-prog-install;hb=HEAD>
* Source code: <https://git.code.sf.net/p/dfu-util/dfu-util>
* Source code: <https://github.com/trabucayre/openFPGALoader.git>
* Source code: <https://github.com/gregdavill/ecpprog/>
* Bugzilla page <https://bugs.libre-soc.org/show_bug.cgi?id=791>
-# Setting up new debootstrap and chroot into it
+# Setting up new debootstrap chroot
Run the following if you wish to isolate the fpga-loaders build
from other software (reproducible builds) or use the schroot
mount -t devpts devpts $MY_CHROOT/dev/pts/
chroot $MY_CHROOT /bin/bash
-# Download neccessary softwares
+# Download neccessary software
apt-get install -y libcurl3-gnutls/buster git/buster
-e 's@^USBLIB@#USBLIB@' Makefile
sed -i -e 's@usb_reset@ftdi_usb_reset@g' ujprog.c
make
- install -m 4755 ujprog /usr/local/bin
+ install -v -m 4755 ujprog /usr/local/bin
cat > /etc/udev/rules.d/80-fpga-ulx3s.rules << EOF
# this is for usb-serial tty device
cd xc3sprog
git checkout 99e7de20aa8323712e5f70ff74d2079d5fb45bc7
+ sed -i -e 's@^if(NOT LIBUSB3380_FOUND)@if(NOT LIBUSB3380_FOUND)\n include(FindPkgConfig)@' Findlibusb3380.cmake
mkdir build; cd build
- cmake \
- -DLIBFTDI_FOUND=YES -DLIBFTDI_INCLUDE_DIR="/usr/include/libftdi1" \
+ cmake -DLIBFTDI_FOUND=YES -DLIBFTDI_INCLUDE_DIR="/usr/include/libftdi1" \
-DLIBFTDI_LIBRARIES="ftdi1" -DLIBUSB_FOUND=YES \
-DLIBUSB_INCLUDE_DIR="/usr/include" -DLIBUSB_LIBRARIES="usb" \
-DUSE_FTD2XX=OFF -DUSE_LIBUSB3380=OFF ..