dump pins using urjtag
authorDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 9 Jun 2016 16:00:01 +0000 (18:00 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 9 Jun 2016 16:00:01 +0000 (18:00 +0200)
epm3128-pins.sh [new file with mode: 0755]

diff --git a/epm3128-pins.sh b/epm3128-pins.sh
new file mode 100755 (executable)
index 0000000..53f9350
--- /dev/null
@@ -0,0 +1,6 @@
+( grep signal /usr/local/share/urjtag/altera/epm7128aetc100/epm7128aetc100 | /bin/echo -e "cable usbblaster\ndetect\ninstruction SAMPLE/PRELOAD\nshift ir\nshift dr\n$(cat | sed 's/^/get /')" | sudo jtag ) | tee pins.`date +%Y-%m-%d_%H:%M:%S`
+#( grep signal /usr/local/share/urjtag/altera/epm7128aetc100/epm7128aetc100 | /bin/echo -e "cable usbblaster\ndetect\ninstruction extest\nshift ir\nshift dr\n$(cat | sed 's/^/get /')" | sudo jtag ) | tee pins.`date +%Y-%m-%d_%H:%M:%S`
+
+#same=`ls -t pins.* | head -2 | xargs md5sum | cut -d" " -f1 | sort -u | wc -l`
+#test "$same" == 1 && rm `ls -t pins.* | head -1 | xargs rm -v`
+