summaryrefslogtreecommitdiffstats
path: root/tests/grab.sh
blob: 3d2b03f4585406458a35ff04422b9ae7175ae682 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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