summaryrefslogtreecommitdiffstats
path: root/tests/grab.sh
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2011-10-31 06:34:26 +0100
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2011-10-31 06:34:26 +0100
commitcd35dd6d3f1343b8ec2590cf9bfc9a1bc41c4960 (patch)
treeeed4e7b17ff4b87466cdb4376c2409d49d07d2f1 /tests/grab.sh
parent85a5de8ad86120a33e00cbb5d66bcfca0388111f (diff)
downloadpcitool-cd35dd6d3f1343b8ec2590cf9bfc9a1bc41c4960.tar.gz
pcitool-cd35dd6d3f1343b8ec2590cf9bfc9a1bc41c4960.tar.bz2
pcitool-cd35dd6d3f1343b8ec2590cf9bfc9a1bc41c4960.tar.xz
pcitool-cd35dd6d3f1343b8ec2590cf9bfc9a1bc41c4960.zip
Update scripts
Diffstat (limited to 'tests/grab.sh')
-rwxr-xr-xtests/grab.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/grab.sh b/tests/grab.sh
new file mode 100755
index 0000000..3d2b03f
--- /dev/null
+++ b/tests/grab.sh
@@ -0,0 +1,17 @@
+#! /bin/bash
+
+function pci {
+ PCILIB_PATH="/root/pcitool"
+ LD_LIBRARY_PATH="$PCILIB_PATH" $PCILIB_PATH/pci $*
+}
+
+rm image.raw
+
+echo "Reset..."
+pci --reset
+echo "Stop DMA..."
+pci --stop-dma
+echo "Start DMA..."
+pci --start-dma dma1
+echo "Request..."
+pci -g -o image.raw