/alps/pcitool

To get this branch, use:
bzr branch http://suren.me/webbzr/alps/pcitool

« back to all changes in this revision

Viewing changes to tests/ipedma/ipecamera-test.sh

  • Committer: Suren A. Chilingaryan
  • Date: 2015-04-20 20:01:04 UTC
  • Revision ID: csa@suren.me-20150420200104-b5xny65io8lvoz3w
Big redign of model structures

Show diffs side-by-side

added added

removed removed

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