-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtbflash
executable file
·69 lines (61 loc) · 1.75 KB
/
tbflash
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#!/bin/bash
cd "$(dirname "$(realpath "$0")")"
while true; do
clear
echo ""
echo ""
echo ""
echo " _ _ _ _ "
echo " | | (_) | | | | "
echo " | |_ _ _ __ __ _| |__ ___ | |_ "
echo " | __| | '_ \ / _ | '_ \ / _ \| __| "
echo " | |_| | | | | (_| | |_) | (_) | |_ "
echo " \__|_|_| |_|\__, |_.__/ \___/ \__| "
echo " __/ | "
echo " |___/ "
echo ""
echo ""
echo " Tingbot's Xilinx chip flashing program"
echo ""
echo " Version 1.0"
echo ""
echo " Press return to start flashing a Xilinx chip."
echo ""
echo ""
echo ""
echo ""
read -s
sudo gz_load /home/pi/Guzunty/Pi/src/gz_lcd/gz_lcd.xsvf
return_code=$?
if [[ $return_code -ne 0 ]]; then
echo ""
echo ""
echo ""
echo ""
echo " XxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxX"
echo ""
echo " Failed to flash Xilinx chip."
echo ""
echo " XxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxX"
echo ""
echo " Please check the chip is correctly connected and try again."
echo ""
echo " Press return to continue."
echo ""
echo ""
echo ""
else
echo ""
echo ""
echo ""
echo ""
echo " Success!"
echo ""
echo " Press return to continue."
echo ""
echo ""
echo ""
fi
read -s
done;
sudo shutdown -r now