You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
fpga-cruft/scripts/forksand-trellis-vexriscv-make

28 lines
641 B

#!/bin/bash
#
# Directory where everything is stored
FPGADIR=/home/jebba/devel/FPGA
# Timestamp
FPGANOW=`date +%Y%m%d-%H%M%S`
# Log script
exec > >(tee $FPGADIR/log/trellis-vexriscv-load-$FPGANOW) 2>>$FPGADIR/log/trellis-vexriscv-load-$FPGANOW
set -x
#######################
# Load Linux on LiteX #
#######################
cd $FPGADIR/litex/linux-on-litex-vexriscv
echo "===================================== Update linux-on-litex-vexriscv"
# use custom json2dts.py that sets kernel boot line
cp -p $FPGADIR/PATCH/json2dts.py $FPGADIR/litex/linux-on-litex-vexriscv
# make image on FPGA
./make.py --board=trellisboard --build
exit 0