Bug 1244: changes to pospopcnt
[libreriscv.git] / HDL_workflow / fpga-boot-loaders-progs.mdwn
index a7070ce866bb83cee74dfa10cde6d23cf0d4a0f3..529482ec14c86a820e0fef67ddbdad0cb73ae054 100644 (file)
@@ -4,7 +4,8 @@ Page: Work in Progress
 
 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>
@@ -14,7 +15,7 @@ Use of the automated install scripts recommended
 * 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
@@ -29,7 +30,7 @@ auto-preparation script here:
     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
 
@@ -89,7 +90,7 @@ auto-preparation script here:
      -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
@@ -119,9 +120,9 @@ auto-preparation script here:
 
     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 ..