@@ -9,6 +9,8 @@ ARTIQ_PREFIX=$(python3 -c "import artiq; print(artiq.__path__[0])")
9
9
10
10
# Default is kc705
11
11
BOARD=kc705
12
+ # Default carrier board is nist_qc1
13
+ CARRIER_BOARD=nist_qc1
12
14
13
15
while getopts " bBrht:d:f:" opt
14
16
do
53
55
exit 1
54
56
fi
55
57
;;
58
+ c)
59
+ if [ " $OPTARG " == " nist_qc1" ]
60
+ then
61
+ CARRIER_BOARD=nist_qc1
62
+ elif [ " $OPTARG " == " nist_qc2" ]
63
+ then
64
+ CARRIER_BOARD=nist_qc2
65
+ else
66
+ echo " KC705 carrier board is either nist_qc1 or nist_qc2"
67
+ exit 1
68
+ fi
56
69
* )
57
70
echo " ARTIQ flashing tool"
58
71
echo " "
59
72
echo " To flash everything, do not use any of the -b|-B|-r option."
60
73
echo " "
61
- echo " usage: $0 [-b] [-B] [-r] [-h] [-t kc705|pipistrello] [-d path]"
74
+ echo " usage: $0 [-b] [-B] [-r] [-h] [-c nist_qc1|nist_qc2] [- t kc705|pipistrello] [-d path] [-f path]"
62
75
echo " -b Flash bitstream"
63
76
echo " -B Flash BIOS"
64
77
echo " -r Flash ARTIQ runtime"
65
78
echo " -h Show this help message"
66
79
echo " -t Target (kc705, pipistrello, default is: kc705)"
80
+ echo " -c Carrier board (nist_qc1, nist_qc2, default is: nist_qc1)"
67
81
echo " -f Flash storage image generated with artiq_mkfs"
68
82
echo " -d Directory containing the binaries to be flashed"
69
83
exit 1
103
117
if [ " $BOARD " == " kc705" ]
104
118
then
105
119
UDEV_RULES=99-kc705.rules
106
- BITSTREAM=artiq_kc705-nist_qc1 -kc705.bit
120
+ BITSTREAM=artiq_kc705-${CARRIER_BOARD} -kc705.bit
107
121
CABLE=jtaghs1_fast
108
122
PROXY=bscan_spi_kc705.bit
109
123
BIOS_ADDR=0xaf0000
110
124
RUNTIME_ADDR=0xb00000
125
+ RUNTIME_FILENAME=runtime_${CARRIER_BOARD} .fbi
111
126
FS_ADDR=0xb40000
112
127
if [ -z " $BIN_PREFIX " ]; then BIN_PREFIX=$ARTIQ_PREFIX /binaries/kc705; fi
113
128
search_for_proxy $PROXY
119
134
PROXY=bscan_spi_lx45_csg324.bit
120
135
BIOS_ADDR=0x170000
121
136
RUNTIME_ADDR=0x180000
137
+ RUNTIME_FILENAME=runtime.fbi
122
138
FS_ADDR=0x1c0000
123
139
if [ -z " $BIN_PREFIX " ]; then BIN_PREFIX=$ARTIQ_PREFIX /binaries/pipistrello; fi
124
140
search_for_proxy $PROXY
0 commit comments