Configuration and environment setup for various devices

ECP5 FPGAs

Toolchain installation

Synthesis - yosys

Place and route - nextpnr-ecp5

Load bitstream / Program the SPI flash - ecpdap

My ebuild for ecpdap 0.1.7

iCESugar Pro

The schematic, documentation and tools can be found here: iCESugar Pro on GitHub

Configuration

USB to serial

Since I am using a manually built kernel, to make the device detected, a few kernel configuration options need to be set:

USB to serial support
  Device Drivers  --->
   [*] USB support  --->
      <*>   USB Serial Converter support  --->
         --- USB Serial Converter support
         [*]   USB Serial Console device support
         [*]   USB Generic Serial Driver
         <*>   USB Serial Simple Driver

Reference