#!/bin/bash # # Copyright 2022 Raptor Engineering, LLC # Licensed under the terms of the GNU LGPLv3+ # # Ensure that the LibreSoC packages and HDL tools # are installed prior to running this script, # as well as the kestrel repos # # ./install-hdl-apt-reqs # ./hdl-dev-repos # ./hdl-tools-yosys # ./ppc64-gdb-gcc # ./nextpnr-ecp5 # ./hdl-kestrel-repos set -e export PATH=/usr/local/libtrellis/bin:$PATH export PATH=/usr/local/nextpnr-ecp5/bin:$PATH export KESTREL=/home/$SUDO_USER/src/kestrel echo "Refreshing Python data files from current LibreSoC sources..." cd /home/$SUDO_USER/src/soc python3 src/soc/simple/issuer_verilog.py --fabric-compat --enable-core \ --enable-mmu --enable-xics \ --disable-svp64 --disable-pll \ --debug dmi external_core_top.v cp -Rp external_core_top.v \ $KESTREL/pythondata-cpu-libresoc/pythondata_cpu_libresoc/hdl/external_core_top.v echo "Building Kestrel..." cd $KESTREL/litex-boards/litex_boards/targets ./rcs_arctic_tern_bmc_card.py --device=LFE5UM --cpu-type=libresoc \ --cpu-variant=standard+irq \ --with-ethernet --with-video \ --build --nextpnr-seed 1 \ --sys-clk-freq=50e6 --remote-ip 192.168.1.1