-
Notifications
You must be signed in to change notification settings - Fork 31
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
Read and write the address off mistakes #6
Comments
I don't have a zedboard to play with anymore, but I can try to redirect
your question to someone who can help.
Can you check in the meanwhile that the dts you are using complies ( for
Xilinx Axi DMA cores ) with the addresses used in the Vivado project?
Regards,
Gianluca
On Tue, 21 Mar 2017 at 05:36, nick1chao <notifications@github.com> wrote:
Hi Gianluca
I'm trying to use your driver on a zedboard, petalinux system.The kernel
version is 4.6.0.When i run the applicatio,the error in the title comes up.
The driver is loaded successfully. I debug driver found problem here:
iowrite32(1, obj_dev->virt_bus_addr + MM2S_DMACR);
iowrite32(obj_dev->ds_axidma_handle, obj_dev->virt_bus_addr + MM2S_SA);
iowrite32(len, obj_dev->virt_bus_addr + MM2S_LENGTH);
Thanks for any help you can offer.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#6>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AC68t1niP52ifMFh6qhhN_UbQ-PH_Zyyks5rn1PFgaJpZM4MjU05>
.
|
Thank you for your answer.
And here is my device tree: The addresses is same. |
Hi, axi_dma_0: dma@4040000 { to |
Use this https://github.com/durellinux/ZedBoard_Linux_DMA_driver/blob/master/bootFiles/xilinx.dts |
Hi
The insmod command is ok: But run the application,the error log: ARM 1 3 0.333333 0 I use the petalinux 2016.3,kernel version is 4.6.0 and the board is zedboard. |
It seems that the page fault is generated by the memcpy. also in ds_axidma_read substitute memcpy with copy_to_user function, here the signature: I think we have to fix the driver. |
Let me know if this works. |
Hi Gianluca
I'm trying to use your driver on a zedboard, petalinux system.The kernel version is 4.6.0.When i run the applicatio,the error in the title comes up.
The driver is loaded successfully. I debug driver found problem here:
Thanks for any help you can offer.
The text was updated successfully, but these errors were encountered: