grab.sh 277 B

1234567891011121314151617
  1. #! /bin/bash
  2. function pci {
  3. PCILIB_PATH="/root/pcitool"
  4. LD_LIBRARY_PATH="$PCILIB_PATH" $PCILIB_PATH/pci $*
  5. }
  6. rm -f image.raw
  7. echo "Reset..."
  8. pci --reset
  9. echo "Stop DMA..."
  10. pci --stop-dma
  11. echo "Start DMA..."
  12. pci --start-dma dma1
  13. echo "Request..."
  14. pci -g -o image.raw