forked from M-Labs/artiq
artiq_flash.sh: fix runtime programming and allow usage of -d . -r
This commit is contained in:
parent
284e3ddb2b
commit
34771ade67
|
@ -123,7 +123,7 @@ then
|
||||||
PROXY=bscan_spi_kc705.bit
|
PROXY=bscan_spi_kc705.bit
|
||||||
BIOS_ADDR=0xaf0000
|
BIOS_ADDR=0xaf0000
|
||||||
RUNTIME_ADDR=0xb00000
|
RUNTIME_ADDR=0xb00000
|
||||||
RUNTIME_FILENAME=runtime_${MEZZANINE_BOARD}.fbi
|
RUNTIME_FILE=${MEZZANINE_BOARD}/runtime.fbi
|
||||||
FS_ADDR=0xb40000
|
FS_ADDR=0xb40000
|
||||||
if [ -z "$BIN_PREFIX" ]; then BIN_PREFIX=$ARTIQ_PREFIX/binaries/kc705; fi
|
if [ -z "$BIN_PREFIX" ]; then BIN_PREFIX=$ARTIQ_PREFIX/binaries/kc705; fi
|
||||||
search_for_proxy $PROXY
|
search_for_proxy $PROXY
|
||||||
|
@ -135,7 +135,7 @@ then
|
||||||
PROXY=bscan_spi_lx45_csg324.bit
|
PROXY=bscan_spi_lx45_csg324.bit
|
||||||
BIOS_ADDR=0x170000
|
BIOS_ADDR=0x170000
|
||||||
RUNTIME_ADDR=0x180000
|
RUNTIME_ADDR=0x180000
|
||||||
RUNTIME_FILENAME=runtime.fbi
|
RUNTIME_FILE=runtime.fbi
|
||||||
FS_ADDR=0x1c0000
|
FS_ADDR=0x1c0000
|
||||||
if [ -z "$BIN_PREFIX" ]; then BIN_PREFIX=$ARTIQ_PREFIX/binaries/pipistrello; fi
|
if [ -z "$BIN_PREFIX" ]; then BIN_PREFIX=$ARTIQ_PREFIX/binaries/pipistrello; fi
|
||||||
search_for_proxy $PROXY
|
search_for_proxy $PROXY
|
||||||
|
@ -185,7 +185,7 @@ fi
|
||||||
if [ "${FLASH_RUNTIME}" == "1" ]
|
if [ "${FLASH_RUNTIME}" == "1" ]
|
||||||
then
|
then
|
||||||
echo "Flashing ARTIQ runtime..."
|
echo "Flashing ARTIQ runtime..."
|
||||||
xc3sprog -v -c $CABLE -I$PROXY_PATH/$PROXY $BIN_PREFIX/runtime.fbi:w:$RUNTIME_ADDR:BIN
|
xc3sprog -v -c $CABLE -I$PROXY_PATH/$PROXY $BIN_PREFIX/${RUNTIME_FILE}:w:$RUNTIME_ADDR:BIN
|
||||||
fi
|
fi
|
||||||
echo "Done."
|
echo "Done."
|
||||||
xc3sprog -v -c $CABLE -R > /dev/null 2>&1
|
xc3sprog -v -c $CABLE -R > /dev/null 2>&1
|
||||||
|
|
|
@ -24,7 +24,8 @@ cd $SRC_DIR/misoc; $PYTHON make.py -X ../soc -t artiq_kc705 $MISOC_EXTRA_VIVADO_
|
||||||
|
|
||||||
# install KC705 NIST_QC1 binaries
|
# install KC705 NIST_QC1 binaries
|
||||||
|
|
||||||
cp soc/runtime/runtime.fbi $BIN_PREFIX/kc705/runtime_nist_qc1.fbi
|
mkdir -p $BIN_PREFIX/kc705/nist_qc1
|
||||||
|
cp soc/runtime/runtime.fbi $BIN_PREFIX/kc705/nist_qc1/
|
||||||
cp $SRC_DIR/misoc/software/bios/bios.bin $BIN_PREFIX/kc705/
|
cp $SRC_DIR/misoc/software/bios/bios.bin $BIN_PREFIX/kc705/
|
||||||
cp $SRC_DIR/misoc/build/artiq_kc705-nist_qc1-kc705.bit $BIN_PREFIX/kc705/
|
cp $SRC_DIR/misoc/build/artiq_kc705-nist_qc1-kc705.bit $BIN_PREFIX/kc705/
|
||||||
wget http://sionneau.net/artiq/binaries/kc705/flash_proxy/bscan_spi_kc705.bit
|
wget http://sionneau.net/artiq/binaries/kc705/flash_proxy/bscan_spi_kc705.bit
|
||||||
|
@ -52,7 +53,8 @@ cd $SRC_DIR/misoc; $PYTHON make.py -X ../soc -t artiq_kc705 -s NIST_QC2 $MISOC_E
|
||||||
|
|
||||||
# install KC705 NIST_QC2 binaries
|
# install KC705 NIST_QC2 binaries
|
||||||
|
|
||||||
cp soc/runtime/runtime.fbi $BIN_PREFIX/kc705/runtime_nist_qc2.fbi
|
mkdir -p $BIN_PREFIX/kc705/nist_qc2
|
||||||
|
cp soc/runtime/runtime.fbi $BIN_PREFIX/kc705/nist_qc2/
|
||||||
cp $SRC_DIR/misoc/build/artiq_kc705-nist_qc2-kc705.bit $BIN_PREFIX/kc705/
|
cp $SRC_DIR/misoc/build/artiq_kc705-nist_qc2-kc705.bit $BIN_PREFIX/kc705/
|
||||||
|
|
||||||
cp artiq/frontend/artiq_flash.sh $PREFIX/bin
|
cp artiq/frontend/artiq_flash.sh $PREFIX/bin
|
||||||
|
|
Loading…
Reference in New Issue