Commit 21b75016 authored by Karen Xie's avatar Karen Xie

XDMA: scripts_mm/ adjust relative path.

parent 4df519f6
...@@ -129,7 +129,7 @@ Usage: ...@@ -129,7 +129,7 @@ Usage:
For more extensive memory mapped test: For more extensive memory mapped test:
assume the XDMA FGPA is at pci slot 0000:01:00.0 assume the XDMA FGPA is at pci slot 0000:01:00.0
cd scripts_mm cd scripts_mm
./xdma_mm.sh 0000:01:00.0 ./xdma_mm.sh 0000:01:00.0 | tee /tmp/xdma_mm.log
- Check driver Version number - Check driver Version number
modinfo xdma (or) modinfo xdma (or)
......
#!/bin/sh #!/bin/sh
tool_path=../tools tool_path=../../tools
logdir=/tmp logdir=/tmp
if [ $# -lt 9 ]; then if [ $# -lt 9 ]; then
......
...@@ -38,6 +38,7 @@ fi ...@@ -38,6 +38,7 @@ fi
if [ ! -d "$tmpdir" ]; then if [ ! -d "$tmpdir" ]; then
mkdir -p $tmpdir mkdir -p $tmpdir
fi fi
rm -rf ${tmpdir}/*
if [ "$data_check" -ne 0 ]; then if [ "$data_check" -ne 0 ]; then
cnt=$(($io_max / 1024)) cnt=$(($io_max / 1024))
......
tool_path=../tools tool_path=../../tools
ERR=255 ERR=255
CHANNEL_NOOP=4
############################ ############################
# #
......
...@@ -10,7 +10,7 @@ io_list="1 10 127 128 1021 1022 1023 1024 4095 4096 4097 4098 4099 8189 8190 819 ...@@ -10,7 +10,7 @@ io_list="1 10 127 128 1021 1022 1023 1024 4095 4096 4097 4098 4099 8189 8190 819
io_max=8192 io_max=8192
# offset # offset
offset_list="1 2 3 4 20?45 2046 2047 2048 2049 4091 4092 4093 4094 4095" offset_list="1 2 3 4 2045 2046 2047 2048 2049 4091 4092 4093 4094 4095"
# starting address # starting address
address=0 address=0
...@@ -49,6 +49,7 @@ fi ...@@ -49,6 +49,7 @@ fi
if [ ! -d "$tmpdir" ]; then if [ ! -d "$tmpdir" ]; then
mkdir -p $tmpdir mkdir -p $tmpdir
fi fi
rm -rf $tmpdir/*
# generate data file, minimum 64MB # generate data file, minimum 64MB
cnt=$(($io_max / 1024)) cnt=$(($io_max / 1024))
......
...@@ -53,7 +53,7 @@ for dm in $driver_modes; do ...@@ -53,7 +53,7 @@ for dm in $driver_modes; do
echo -e "\n\n====> xdma mode $dm ...\n" echo -e "\n\n====> xdma mode $dm ...\n"
cd ../tests cd ../../tests
./load_driver.sh $dm ./load_driver.sh $dm
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment