Skip to content

BeagleWire

Installation

Ideally this quick start guide image would work, but it doesn't seem to have a working link to the SD card image. Instead this is what I've tried to get it working.

System setup

  • fpga_load requires a newer kernel than the 4.9.82 in debian stretch. Instructions: https://elinux.org/Beagleboard:BeagleBoneBlack_Debian#Kernel_Upgrade

    cd /opt/scripts/tools/
    git pull
    sudo ./update_kernel.sh --lts-4_14
    sudo reboot
    

  • apt update hangs forever? sudo ifconfig usb0 mtu 1400

  • Once it is back up, checkout the BeagleWire tree:

    git clone https://github.com/pmezydlo/BeagleWire
    

  • Need to install kernel headers for building out-of-tree modules:

    sudo apt install linux-headers-$(uname -r)
    

  • Need to build the FPGA manager module since the default kernel doesn't have it.

git clone --depth 1 -b 4.14 git://github.com/beagleboard/linux.git linux-4.14
cd linux-4.14
cp /boot/config-4.14.50-ti-r55 .config
patch -p1 <<EOF
@@ -5868,7 +5868,12 @@
     CONFIG_NVMEM=y
     # CONFIG_STM is not set
     # CONFIG_INTEL_TH is not set
-# CONFIG_FPGA is not set
+CONFIG_FPGA=m
+CONFIG_FPGA_MGR_ICE40_SPI=m
+# CONFIG_FPGA_MGR_ALTERA_PS_SPI is not set
+# CONFIG_FPGA_MGR_XILINX_SPI is not set
+# CONFIG_FPGA_BRIDGE is not set
+# CONFIG_ALTERA_PR_IP_CORE is not set
EOF
make oldconfig
make SUBDIRS=drivers/fpga modules
cp drivers/fpga/*.ko ~/
insmod ~/fpga-mgr.ko
insmod ~/ice-spi.ko
  • On some BBB it is necessary to boot while holding down the S2 button.

Synthesis tools

sudo apt install yosys arachne-pnr fpga-icestorm

2018 Hardware FPGA


Last update: November 8, 2020