Skip to content

Commit 34771ad

Browse files
committedAug 22, 2015
artiq_flash.sh: fix runtime programming and allow usage of -d . -r
1 parent 284e3dd commit 34771ad

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed
 

Diff for: ‎artiq/frontend/artiq_flash.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ then
123123
PROXY=bscan_spi_kc705.bit
124124
BIOS_ADDR=0xaf0000
125125
RUNTIME_ADDR=0xb00000
126-
RUNTIME_FILENAME=runtime_${MEZZANINE_BOARD}.fbi
126+
RUNTIME_FILE=${MEZZANINE_BOARD}/runtime.fbi
127127
FS_ADDR=0xb40000
128128
if [ -z "$BIN_PREFIX" ]; then BIN_PREFIX=$ARTIQ_PREFIX/binaries/kc705; fi
129129
search_for_proxy $PROXY
@@ -135,7 +135,7 @@ then
135135
PROXY=bscan_spi_lx45_csg324.bit
136136
BIOS_ADDR=0x170000
137137
RUNTIME_ADDR=0x180000
138-
RUNTIME_FILENAME=runtime.fbi
138+
RUNTIME_FILE=runtime.fbi
139139
FS_ADDR=0x1c0000
140140
if [ -z "$BIN_PREFIX" ]; then BIN_PREFIX=$ARTIQ_PREFIX/binaries/pipistrello; fi
141141
search_for_proxy $PROXY
@@ -185,7 +185,7 @@ fi
185185
if [ "${FLASH_RUNTIME}" == "1" ]
186186
then
187187
echo "Flashing ARTIQ runtime..."
188-
xc3sprog -v -c $CABLE -I$PROXY_PATH/$PROXY $BIN_PREFIX/runtime.fbi:w:$RUNTIME_ADDR:BIN
188+
xc3sprog -v -c $CABLE -I$PROXY_PATH/$PROXY $BIN_PREFIX/${RUNTIME_FILE}:w:$RUNTIME_ADDR:BIN
189189
fi
190190
echo "Done."
191191
xc3sprog -v -c $CABLE -R > /dev/null 2>&1

Diff for: ‎conda/artiq/build.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ cd $SRC_DIR/misoc; $PYTHON make.py -X ../soc -t artiq_kc705 $MISOC_EXTRA_VIVADO_
2424

2525
# install KC705 NIST_QC1 binaries
2626

27-
cp soc/runtime/runtime.fbi $BIN_PREFIX/kc705/runtime_nist_qc1.fbi
27+
mkdir -p $BIN_PREFIX/kc705/nist_qc1
28+
cp soc/runtime/runtime.fbi $BIN_PREFIX/kc705/nist_qc1/
2829
cp $SRC_DIR/misoc/software/bios/bios.bin $BIN_PREFIX/kc705/
2930
cp $SRC_DIR/misoc/build/artiq_kc705-nist_qc1-kc705.bit $BIN_PREFIX/kc705/
3031
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
5253

5354
# install KC705 NIST_QC2 binaries
5455

55-
cp soc/runtime/runtime.fbi $BIN_PREFIX/kc705/runtime_nist_qc2.fbi
56+
mkdir -p $BIN_PREFIX/kc705/nist_qc2
57+
cp soc/runtime/runtime.fbi $BIN_PREFIX/kc705/nist_qc2/
5658
cp $SRC_DIR/misoc/build/artiq_kc705-nist_qc2-kc705.bit $BIN_PREFIX/kc705/
5759

5860
cp artiq/frontend/artiq_flash.sh $PREFIX/bin

0 commit comments

Comments
 (0)
Please sign in to comment.