3 # Copyright 2022 Raptor Engineering, LLC
4 # Licensed under the terms of the GNU LGPLv3+
6 # Ensure that the LibreSoC packages and HDL tools
7 # are installed prior to running this script,
8 # as well as the kestrel repos
10 # ./install-hdl-apt-reqs
19 export PATH
=/usr
/local
/libtrellis
/bin
:$PATH
20 export PATH
=/usr
/local
/nextpnr-ecp
5/bin
:$PATH
22 export KESTREL
=/home
/$SUDO_USER/src
/kestrel
23 echo "Refreshing Python data files from current LibreSoC sources..."
24 cd /home
/$SUDO_USER/src
/soc
25 python3 src
/soc
/simple
/issuer_verilog.py
--fabric-compat --enable-core \
26 --enable-mmu --enable-xics \
27 --disable-svp64 --disable-pll \
28 --debug dmi external_core_top.v
29 cp -Rp external_core_top.v \
30 $KESTREL/pythondata-cpu-libresoc
/pythondata_cpu_libresoc
/hdl
/external_core_top.v
32 echo "Building Kestrel..."
33 cd $KESTREL/litex-boards
/litex_boards
/targets
34 .
/rcs_arctic_tern_bmc_card.py
--device=LFE5UM
--cpu-type=libresoc \
35 --cpu-variant=standard
+irq \
36 --with-ethernet --with-video \
37 --build --nextpnr-seed 1 \
38 --sys-clk-freq=50e6
--remote-ip 192.168.1.1