UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

取消
显示结果 
搜索替代 
您的意思是: 
Visitor loving33520-
Visitor
364 次查看
注册日期: ‎09-08-2018

embedded linux UIO not work

转到解答

我的开发板是zynq 7035

linux版本:linux 4.1.3

我的vivado项目:图片1.png
我的内核配置选项:

捕获1.PNG

 

我的设备:

amba_pl @ 0 {

         #address-cells = <1>;

         #size-cells = <1>;

         compatible =“simple-bus”;

         范围;

    uio @ 0 {

             compatible =“generic-uio”;

             status =“好的”;

             中断控制器;

             interrupt-parent = <&intc>;

             中断= <0 29 1>;

         };

         uio @ 1 {

             compatible =“generic-uio”;

             status =“好的”;

             中断控制器;

             interrupt-parent = <&intc>;

             中断= <0 30 4>;

         };

};

选择{bootargs =“earlyprintk uio_pdrv_genirq.of_id = generic-uio”;}

 

 

启动嵌入式的Linux的的的的的的后,您可以看到UIO设备已经存在:

图片3.png

 

中断也成功加载:

图片4.png 

 

但是当我按下按钮时,cat / proc / interrupt它没有显示中断已经发生。

 

/ sys / class / uio / uio0下没有地图目录,我想知道这是不是问题。如果我应该解决怎么办?

捕获.PNG

 

如果有人能帮助我,我将非常感激。

标记 (1)
0 项奖励
1 个已接受解答

已接受的解答
Visitor loving33520-
Visitor
309 次查看
注册日期: ‎09-08-2018

回复: embedded linux UIO not work

转到解答
I have solved my problem because my bit file was not updated when the system was built.

Thank you very much for your reply
0 项奖励
2 条回复2
Xilinx Employee
Xilinx Employee
316 次查看
注册日期: ‎04-15-2011

回复: embedded linux UIO not work

转到解答
你按照这个连接用AXI GPIO试试呢,这个连接的图有点问题,但就是用AXI GPIO来实现的UIO中断。
https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18842490/Testing+UIO+with+Interrupt+on+Zynq+Ultrascale
-------------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
Visitor loving33520-
Visitor
310 次查看
注册日期: ‎09-08-2018

回复: embedded linux UIO not work

转到解答
I have solved my problem because my bit file was not updated when the system was built.

Thank you very much for your reply
0 项奖励