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.
30 lines
689 B
30 lines
689 B
5 years ago
|
#!/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"
|
||
|
# Load image on FPGA
|
||
|
./make.py --board=trellisboard --load
|
||
|
|
||
|
echo "Connect to FPGA thusly:"
|
||
|
echo "lxterm /dev/ttyUSB1 --speed=1e6"
|
||
|
echo "lxterm /dev/ttyUSB2 --speed=1e6"
|
||
|
lxterm /dev/ttyUSB1 --speed=1e6
|
||
|
#lxterm /dev/ttyUSB2 --speed=1e6
|
||
|
|
||
|
exit 0
|
||
|
|