07-19-2019 10:35 AM
Hi,
is there any documentation or tutorials on how to register my device as UIO on petalinux, I searched a lot but I couldn’t find any resources
best regards
07-19-2019 11:53 AM
I don't know that this is the definitive answer but you will have to build your kernel with UIO and the UIO platform driver enabled. The boot cmd line arg for the kernel should have uio_pdrv_genirq.of_id=generic-uio specified and you wil have to manually modify the dts to define your UIO device(s). I don't know if there is some automatic petalinux way to do these steps
07-19-2019 03:49 PM
This is covered in the wiki here
07-19-2019 10:24 PM
This tutorial shows testing interrupt only it doesn’t show writing UIO driver to control custome logic
07-19-2019 11:51 PM
There is also a link to an SDK project with demo code.
07-20-2019 01:04 AM
I found a tutorial for Creating Custom IP and Device Driver for Linux in the UG1165 document but for somereason i have no way to download the supporting files can any one download it and attach it for me or send me gethub link
10-19-2020 04:49 AM - edited 10-19-2020 04:59 AM
I tried that whole prorcess for zcu111. and all goes fine until petalinux boot on target .
but after booting petalinux I execute command cat/proc/interrupts it shows the list of all interrupts including 1 that I want with no 121. after that I wrote on memory location through devmem, it writes successfully. but that does not increased the value of interrupt count in cat/proc/interrupts. and I tried to execute an application to get interrupt from push button but no interrupt received. application is blocked at read call. I am using zcu111 and petalinux 2019.2
please help @stephenm
10-20-2020 05:46 AM
Hi
Check the below link. Hope this helps.
Thanks
Lokesh