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 -f 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