]> sigrok.org Git - sigrok-util.git/blame - firmware/dreamsourcelab-dslogic/sigrok-fwextract-dreamsourcelab-dslogic
sigrok-fwextract-dreamsourcelab-dslogic: Update comment.
[sigrok-util.git] / firmware / dreamsourcelab-dslogic / sigrok-fwextract-dreamsourcelab-dslogic
CommitLineData
61e867bb
UH
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
21umask 022
22
23WGET="wget -c -q"
24if [ -z $PREFIX ]; then
25 PREFIX="/usr/local"
26fi
27FWDIR="$PREFIX/share/sigrok-firmware"
2583d67b 28
5a09624e
UH
29# Use the upstream 0.98 firmware/bitstream set.
30# Only firmware/bitstream >= 0.97 is supported in libsigrok >= 20170621.
2c8714be 31FWURL="https://github.com/DreamSourceLab/DSView/raw/040475c67a9660a23ad07c905367bcae76b8392c/DSView/res"
61e867bb
UH
32
33echo "Installing into: $FWDIR"
34
35mkdir -p $FWDIR
36
37$WGET $FWURL/DSLogic50.bin -O $FWDIR/dreamsourcelab-dslogic-fpga-5v.fw
38$WGET $FWURL/DSLogic33.bin -O $FWDIR/dreamsourcelab-dslogic-fpga-3v3.fw
39$WGET $FWURL/DSLogic.fw -O $FWDIR/dreamsourcelab-dslogic-fx2.fw
40
41$WGET $FWURL/DSCope.bin -O $FWDIR/dreamsourcelab-dscope-fpga.fw
42$WGET $FWURL/DSCope.fw -O $FWDIR/dreamsourcelab-dscope-fx2.fw
43
44$WGET $FWURL/DSLogicPro.bin -O $FWDIR/dreamsourcelab-dslogic-pro-fpga.fw
45$WGET $FWURL/DSLogicPro.fw -O $FWDIR/dreamsourcelab-dslogic-pro-fx2.fw
4b742deb
JH
46
47$WGET $FWURL/DSLogicPlus.bin -O $FWDIR/dreamsourcelab-dslogic-plus-fpga.fw
48$WGET $FWURL/DSLogicPlus.fw -O $FWDIR/dreamsourcelab-dslogic-plus-fx2.fw
49
50$WGET $FWURL/DSLogicBasic.bin -O $FWDIR/dreamsourcelab-dslogic-basic-fpga.fw
51$WGET $FWURL/DSLogicBasic.fw -O $FWDIR/dreamsourcelab-dslogic-basic-fx2.fw