You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
331 B
17 lines
331 B
12 years ago
|
#!/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
|