blob: 364330fd862af9020a1b5168ecbf87ea2d9f204b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/bash
# (c) 2012 Timothy Pearson <kb9vqf@pearsoncomputing.net>
# Licensed under the GPL v2
if [[ $1 == "" ]]; then
echo "Usage: ./program_device.sh bitfile.bit"
exit 1
fi
UNIQUEID=$(date "+%s%N")
DEVICETYPE=$(bitdevice $1)
SVFFILE=/tmp/${UNIQUEID}.svf
bit2svf $1 $SVFFILE $DEVICETYPE
xsvf-rpi -v -s $SVFFILE
rm $SVFFILE
|