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.
39 lines
1.1 KiB
39 lines
1.1 KiB
#!/bin/bash
|
|
|
|
FPGADIR=/home/jebba/devel/FPGA
|
|
# Directory of scripts
|
|
FPGASCRIPTS=$FPGADIR/muh
|
|
# Timestamp
|
|
FPGANOW=`date +%Y%m%d-%H%M%S`
|
|
|
|
# Log script
|
|
exec > >(tee $FPGADIR/log/trellis-rocket-$FPGANOW) 2>>$FPGADIR/log/trellis-rocket-$FPGANOW
|
|
|
|
set -x
|
|
|
|
cd $FPGADIR/litex/litex-boards/litex_boards/partner/targets
|
|
|
|
rm -rf soc_ethernetsoc_trellisboard
|
|
|
|
./trellisboard.py \
|
|
--with-ethernet \
|
|
--sys-clk-freq=60e6 \
|
|
--gateware-toolchain=trellis \
|
|
--gateware-toolchain-path=/usr/local \
|
|
--cpu-type=rocket \
|
|
--cpu-variant=linux \
|
|
--csr-csv=./csr_trellisboard.csv
|
|
|
|
# --sys-clk-freq=75e6 \
|
|
|
|
|
|
cd $FPGADIR/litex/litex-boards/litex_boards/partner/targets/soc_ethernetsoc_trellisboard/gateware
|
|
|
|
openocd \
|
|
-f $FPGADIR/litex/linux-on-litex-vexriscv/prog/trellisboard.cfg \
|
|
-c "init; svf top.svf ; exit"
|
|
|
|
|
|
echo "lxterm /dev/ttyUSB2 --speed=1e6"
|
|
|