cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Contributor
Contributor
618 Views
Registered: ‎09-28-2019

Video Framebuffer Write - handling interrupt in linux app

Hello,

I'm implementing a video framebuffer write IP in my design.

I want to define a callback function to handle its interrput in my linux app.

The given example design is a baremetal application.

There is another one based on V4L2 driver, but it's just an abstract : https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18842236/Video+Framebuffer+Write

Can you advice me the simplest way to do this?

Thanks.

 

 

0 Kudos
6 Replies
Highlighted
Teacher
Teacher
592 Views
Registered: ‎06-16-2013

Hi @tgharbi2020 

 

I guess this URL is useful for you, if you describe userland application for Video Framebuffer Write.

Would you refer it ?

 

https://www.xilinx.com/support/answers/62363.html

 

Best regards,

0 Kudos
Highlighted
Moderator
Moderator
525 Views
Registered: ‎11-09-2015

Hi @tgharbi2020 

The wiki page you mention is maybe just an abstract but it seems to contain everything you need.


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Highlighted
Contributor
Contributor
498 Views
Registered: ‎09-28-2019

Hi @florentw 

I cannot find :

- anywhere "to_frmbuf_dma_chan(xdev)" function

- the address returned by "vb2_dma_contig_plane_dma_addr" function is not used in the abstract.

- for zynq (and arm arch), when I compile the code, the asm/current.h file is not found (but for arm64 arch it exists)

That's why I'm confused.

0 Kudos
Highlighted
Moderator
Moderator
416 Views
Registered: ‎11-09-2015


@tgharbi2020 wrote:

Hi @florentw 

I cannot find :

- anywhere "to_frmbuf_dma_chan(xdev)" function

I assume this is the users responsibility to define this function. The code provided is just a template

Use the functions which are using xilinx_xdma_v4l2_config as reference.

- the address returned by "vb2_dma_contig_plane_dma_addr" function is not used in the abstract.

I guess it is there in case you need it

- for zynq (and arm arch), when I compile the code, the asm/current.h file is not found (but for arm64 arch it exists)

That's why I'm confused.


You probably need to adapt.

Again this is only a template. You need to create you own code based on this


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Highlighted
Moderator
Moderator
332 Views
Registered: ‎10-04-2017

Hi @tgharbi2020,

Is everything clear for you on this topic?

If your question is answered or your issue is solved, please kindly mark the response which helped find a solution (click on "Accept as solution" button below the reply)

If this is not solved/answered, please reply to the thread giving more information on your current status.

Thanks and Regards,

Don't forget to reply, kudo, and accept as solution.

Xilinx Video Design Hub
0 Kudos
Highlighted
Contributor
Contributor
302 Views
Registered: ‎09-28-2019

Hi @samk 

No. I created my code based on the given abstract but I cannot compile the dmaengine based project on SDK. I get recursive errors of missing files or errors under include/linux and include /asm even I included linux kernel sources path (the one generated by petalinux: petalinux/2018.3/myProject/build/tmp/work-shared/plnx-zynq7/kernel-source/include/).

I correct some of them but still have anothers. The last ones are: 

include/asm-generic/bitops/fls64.h:34:2: error: #error BITS_PER_LONG not 32 or 64
#error BITS_PER_LONG not 32 or 64
include/asm-generic/bitops/sched.h:28:2: error: #error BITS_PER_LONG not defined #error BITS_PER_LONG not defined
include/linux/rcupdate.h:213:2: error: #error "Unknown RCU implementation specified to kernel configuration"
#error "Unknown RCU implementation specified to kernel configuration"
/include/linux/cpumask.h:168:37: error: "and" may not appear in macro parameter list

  

0 Kudos