Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I did just a short test, but get a read timeout, see below. Do I need to change the example code somehow? #84

Open
maikonadams opened this issue Feb 3, 2019 · 11 comments

Comments

@maikonadams
Copy link

I did just a short test, but get a read timeout, see below. Do I need to change the example code somehow?

root@te0715_linux:~# modprobe xilinx_axidma
xilinx_axidma: loading out-of-tree module taints kernel.
axidma: axidma_dma.c: axidma_dma_init: 706: DMA: Found 0 transmit channels and 0 receive channels.
axidma: axidma_dma.c: axidma_dma_init: 708: VDMA: Found 1 transmit channels and 1 receive channels.
root@te0715_linux:~# ./axidma_benchmark -v -n 100
AXI DMA Benchmark Parameters:
        Transmit Buffer Size: 7.91 Mb
        Receive Buffer Size: 7.91 Mb
        Number of DMA Transfers: 100 transfers

Using transmit channel 0 and receive channel 1.
xilinx-vdma 43000000.dma: Frame Store Configuration is not enabled at the
xilinx-vdma 43000000.dma: H/w level enable Debug info 13 or 6 at the h/w level
xilinx-vdma 43000000.dma: OR Submit the frames upto h/w Capable

xilinx-vdma 43000000.dma: Frame Store Configuration is not enabled at the
xilinx-vdma 43000000.dma: H/w level enable Debug info 13 or 6 at the h/w level
xilinx-vdma 43000000.dma: OR Submit the frames upto h/w Capable

axidma: axidma_dma.c: axidma_start_transfer: 298: VDMA receive transaction timed out.
Failed to perform the AXI DMA read-write transfer: Timer expired
root@te0715_linux:~# 

Originally posted by @Westwood68 in #24 (comment)

how did you get to compile the benchmark to petalinux ?

@tpeshkin
Copy link

tpeshkin commented Feb 4, 2019

Hi,
You have to create new application in your petalinux project, add benchmark sources there and build it.
It is well described in UG1144 PetaLinux Tools Reference Guide

@suikammd
Copy link

suikammd commented May 5, 2019

Hey, will you kindly tell me how to make this driver work in petalinux?
I followed the author's guide in Added how to build the driver with PetaLinux., but I don't know how to make the examples work in petalinux?

@tpeshkin
Copy link

tpeshkin commented May 6, 2019

Do you have an issue with building driver or examples, or there are errors when executing example app (share your log)?

@eleICoto
Copy link

@tpeshkin Sorry for bothering, would you please post your makefile and xx.bb you use for building example?I know how to build app in peatlinux, but don't know how to edit makefile

@tpeshkin
Copy link

Hi, my .bb and Makefile for axidma-benchmark example

files.zip

@benpaodewali
Copy link

Hey, will you kindly tell me how to make this driver work in petalinux?
I followed the author's guide in Added how to build the driver with PetaLinux., but I don't know how to make the examples work in petalinux?

你可以直接在目录下运行:make CROSS_COMPILE=arm-linux-gnueabihf- ARCH=arm examples
在这之前需要先在petalinux目录下source一下那个setting.sh,配置这个终端的环境,然后跳到这个目录运行上面这句,就可以得到应用程序的可执行文件了

@suikammd
Copy link

Hi,这个执行是没有问题的。我现在的问题是,如何在板子上验证这个文件正确执行了(我用的是xilinx zcu104)?不过我发现在insmod这个driver的时候没有任何输出。

@eleICoto
Copy link

@suikammd after you insmod driver, type dmesg to check the debug message

@suikammd
Copy link

suikammd commented May 30, 2019

I check the message, but no new message show up.
Maybe because of the wrong device tree file?
Another question is I'm not sure whether it works on petalinux qemu and I boot with command petalinux-boot --qemu --kernel to test the driver.

@eleICoto
Copy link

@suikammd can you post your dmesg message after you insmod?

@suikammd
Copy link

It's exactly the same as before I insmod the driver.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants