OpenCores
URL https://opencores.org/ocsvn/mjpeg-decoder/mjpeg-decoder/trunk

Subversion Repositories mjpeg-decoder

[/] [mjpeg-decoder/] [trunk/] [tools/] [usbdownload] - Blame information for rev 4

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 smanz
#!/bin/bash
2
 
3
 
4
if [ -z "$2" ] ; then
5
  DEVICE=3
6
else
7
  DEVICE=$2
8
fi
9
 
10
echo "setMode -bscan" > /tmp/usbdownload
11
echo "setCable -p auto" >> /tmp/usbdownload
12
echo "identify" >> /tmp/usbdownload
13
echo "assignfile -p $DEVICE -file $1" >> /tmp/usbdownload
14
echo "program -p $DEVICE" >> /tmp/usbdownload
15
echo "quit" >> /tmp/usbdownload
16
 
17
. /opt/xilinx/8.2i/settings.sh
18
impact -batch < /tmp/usbdownload
19
 
20
rm /tmp/usbdownload
21
 
22
# clean up impact's mess
23
rm _impactbatch.log _impact.cmd
24
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.