cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ahmedmohamed85
Contributor
Contributor
1,915 Views
Registered: ‎07-02-2015

UIO with petalinux

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

0 Kudos
7 Replies
1,901 Views
Registered: ‎09-30-2011

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  

0 Kudos
stephenm
Xilinx Employee
Xilinx Employee
1,880 Views
Registered: ‎09-12-2007

0 Kudos
ahmedmohamed85
Contributor
Contributor
1,854 Views
Registered: ‎07-02-2015

This tutorial shows testing interrupt only it doesn’t show writing UIO driver to control custome logic

0 Kudos
stephenm
Xilinx Employee
Xilinx Employee
1,844 Views
Registered: ‎09-12-2007

0 Kudos
ahmedmohamed85
Contributor
Contributor
1,834 Views
Registered: ‎07-02-2015

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

0 Kudos
f35
Visitor
Visitor
1,064 Views
Registered: ‎12-19-2019

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 

Screenshot from 2020-10-19 17-15-55.png
0 Kudos
lokesh_oepl
Adventurer
Adventurer
1,031 Views
Registered: ‎03-12-2018

0 Kudos