File tree 1 file changed +10
-5
lines changed
1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 1
- #! /bin/sh
1
+ #! /bin/bash
2
2
3
3
set -e
4
4
5
5
ADDRESS=0x920000
6
- if [ " $1 " == " rescue" ]; then
6
+ if [ " $1 " == " rescue" ] || [ " $2 " == " rescue " ] ; then
7
7
ADDRESS=0x2E0000
8
8
fi
9
9
10
- TARGET=flickernoise.fbiz
11
- if [ " $2 " == " nocompress " ]; then
12
- TARGET=flickernoise.fbi
10
+ TARGET=flickernoise.fbi
11
+ if [ " $2 " == " compress " ] || [ " $1 " == " compress " ] ; then
12
+ TARGET=flickernoise.fbiz
13
13
fi
14
14
15
15
make -C ../src bin/${TARGET}
16
16
17
17
BATCH_FILE=` mktemp`
18
18
cat > ${BATCH_FILE} << EOF
19
+
19
20
cable milkymist
20
21
detect
21
22
instruction CFG_OUT 000100 BYPASS
@@ -27,7 +28,11 @@ detectflash 0
27
28
endian big
28
29
flashmem ${ADDRESS} ../src/bin/${TARGET} noverify
29
30
pld reconfigure
31
+
30
32
EOF
31
33
32
34
jtag -n ${BATCH_FILE}
35
+ more ${BATCH_FILE}
33
36
rm -f ${BATCH_FILE}
37
+
38
+ echo " Done"
You can’t perform that action at this time.
0 commit comments