ipecamera-test.sh 617 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #!/bin/bash
  2. size=65536
  3. function pci {
  4. PCILIB_PATH=`pwd`/../..
  5. LD_LIBRARY_PATH="$PCILIB_PATH/pcilib" $PCILIB_PATH/pcitool/pci -m ipedma $*
  6. }
  7. rm -f bench.out
  8. pci --stop-dma dma0r
  9. # Configuring DDR
  10. pci -w 0x9100 0x00001000
  11. #pci -w 0x9040 0x88000201
  12. #usleep 90000
  13. pci -w 0x9040 0x88000201
  14. pci --start-dma dma0r
  15. # Clean DMA buffers
  16. #while [ $? -eq 0 ]; do
  17. # pci -r dma0 -s 65536 &> /dev/null
  18. #done
  19. for i in `seq 1 100`; do
  20. pci -r dma0 --multipacket -s $size -o bench.out
  21. if [ $? -ne 0 ]; then
  22. # pci --stop-dma dma0r
  23. exit
  24. fi
  25. done
  26. pci --stop-dma dma0r
  27. ../../apps/check_counter bench.out