]> sigrok.org Git - sigrok-util.git/blob - firmware/dreamsourcelab-dslogic/sigrok-fwextract-dreamsourcelab-dslogic
4e8714b5ebd55690de5b06e78c969a2c87545b36
[sigrok-util.git] / firmware / dreamsourcelab-dslogic / sigrok-fwextract-dreamsourcelab-dslogic
1 #!/bin/sh
2 ##
3 ## This file is part of the sigrok-util project.
4 ##
5 ## Copyright (C) 2016 Uwe Hermann <uwe@hermann-uwe.de>
6 ##
7 ## This program is free software; you can redistribute it and/or modify
8 ## it under the terms of the GNU General Public License as published by
9 ## the Free Software Foundation; either version 3 of the License, or
10 ## (at your option) any later version.
11 ##
12 ## This program is distributed in the hope that it will be useful,
13 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
14 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 ## GNU General Public License for more details.
16 ##
17 ## You should have received a copy of the GNU General Public License
18 ## along with this program; if not, see <http://www.gnu.org/licenses/>.
19 ##
20
21 umask 022
22
23 WGET="wget -c -q"
24 if [ -z $PREFIX ]; then
25         PREFIX="/usr/local"
26 fi
27 FWDIR="$PREFIX/share/sigrok-firmware"
28
29 # Use the last known-working firmware/bitstream set. Newer versions have
30 # incompatible changes that cause issues that need to be investigated.
31 # http://sigrok.org/bugzilla/show_bug.cgi?id=886
32 FWURL="https://github.com/DreamSourceLab/DSView/raw/4cc02c8d780e17527cd05e0ba7aa45288e49bd8a/DSView/res"
33
34 echo "Installing into: $FWDIR"
35
36 mkdir -p $FWDIR
37
38 $WGET $FWURL/DSLogic50.bin -O $FWDIR/dreamsourcelab-dslogic-fpga-5v.fw
39 $WGET $FWURL/DSLogic33.bin -O $FWDIR/dreamsourcelab-dslogic-fpga-3v3.fw
40 $WGET $FWURL/DSLogic.fw -O $FWDIR/dreamsourcelab-dslogic-fx2.fw
41
42 $WGET $FWURL/DSCope.bin -O $FWDIR/dreamsourcelab-dscope-fpga.fw
43 $WGET $FWURL/DSCope.fw -O $FWDIR/dreamsourcelab-dscope-fx2.fw
44
45 $WGET $FWURL/DSLogicPro.bin -O $FWDIR/dreamsourcelab-dslogic-pro-fpga.fw
46 $WGET $FWURL/DSLogicPro.fw -O $FWDIR/dreamsourcelab-dslogic-pro-fx2.fw