summaryrefslogtreecommitdiffstats
path: root/tests/grab.sh
diff options
context:
space:
mode:
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