forked from M-Labs/artiq
artiq_flash.sh: add pipistrello
This commit is contained in:
parent
d6f47b3bb0
commit
c0213c9f69
|
@ -24,8 +24,12 @@ do
|
||||||
elif [ "$OPTARG" == "ppro" ]
|
elif [ "$OPTARG" == "ppro" ]
|
||||||
then
|
then
|
||||||
BOARD=ppro
|
BOARD=ppro
|
||||||
|
elif [ "$OPTARG" == "pipistrello" ]
|
||||||
|
then
|
||||||
|
BOARD=pipistrello
|
||||||
else
|
else
|
||||||
echo "Supported targets (-t option) are: kc705 and ppro"
|
echo "Supported targets (-t option) are:"
|
||||||
|
echo "kc705, ppro, or pipistrello"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
@ -43,12 +47,12 @@ do
|
||||||
echo ""
|
echo ""
|
||||||
echo "To flash everything, do not use any of the -b|-B|-r option."
|
echo "To flash everything, do not use any of the -b|-B|-r option."
|
||||||
echo ""
|
echo ""
|
||||||
echo "usage: $0 [-b] [-B] [-r] [-h] [-t kc705|ppro] [-d path]"
|
echo "usage: $0 [-b] [-B] [-r] [-h] [-t kc705|ppro|pipistrello] [-d path]"
|
||||||
echo "-b Flash bitstream"
|
echo "-b Flash bitstream"
|
||||||
echo "-B Flash BIOS"
|
echo "-B Flash BIOS"
|
||||||
echo "-r Flash ARTIQ runtime"
|
echo "-r Flash ARTIQ runtime"
|
||||||
echo "-h Show this help message"
|
echo "-h Show this help message"
|
||||||
echo "-t Target (kc705 or ppro, default is: ppro)"
|
echo "-t Target (kc705, pipistrello, ppro, default is: ppro)"
|
||||||
echo "-d Directory containing the binaries to be flashed"
|
echo "-d Directory containing the binaries to be flashed"
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
|
@ -70,6 +74,16 @@ then
|
||||||
PROXY_PATH=$BIN_PREFIX
|
PROXY_PATH=$BIN_PREFIX
|
||||||
BIOS_ADDR=0x60000
|
BIOS_ADDR=0x60000
|
||||||
RUNTIME_ADDR=0x70000
|
RUNTIME_ADDR=0x70000
|
||||||
|
elif [ "$BOARD" == "pipistrello" ]
|
||||||
|
then
|
||||||
|
UDEV_RULES=99-ppro.rules
|
||||||
|
BITSTREAM=artiq_pipistrello-amp-pipistrello.bin
|
||||||
|
CABLE=papilio
|
||||||
|
PROXY=bscan_spi_lx9_csg324.bit
|
||||||
|
BIN_PREFIX=$ARTIQ_PREFIX/binaries/pipistrello
|
||||||
|
PROXY_PATH=$BIN_PREFIX
|
||||||
|
BIOS_ADDR=0x170000
|
||||||
|
RUNTIME_ADDR=0x180000
|
||||||
elif [ "$BOARD" == "kc705" ]
|
elif [ "$BOARD" == "kc705" ]
|
||||||
then
|
then
|
||||||
UDEV_RULES=99-kc705.rules
|
UDEV_RULES=99-kc705.rules
|
||||||
|
|
Loading…
Reference in New Issue