cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Observer
Observer
2,268 Views
Registered: ‎11-01-2018

Getting started with video for MPSOC - ZCU100/Ultra96

Jump to solution

I'm getting started with video applications for MPSOC, I added video TPG and Video Frame Buffer Write and Concat  to Ultra96 BSP as show in attached block diagram.  I exported hdf file (attached) and generated attached dts files.  My goal is to create Video For Linux (V4L) device for V4L applications.

I noticed there are comments "/* This is a place holder node for a custom IP, user may need to update the entries */" in "pl.dtsi" file.

How should I make changes to "pl.dtsi" and other dts files to have TPG working (create "/dev/video0" under Linux for V4L applications?

It appears the are vcap_tpg (compatible = "xlnx,video") and dma specified in "pl.dtsi" of ZCU102 video reference design.

Is there guideline for creating dts files for video for MPSOC?  i.e.,

(1). Should I copy vcap_tpg node from ZCU102 to Ultra96 "pl.dtsi"?

(2). The "v_frmbuf_wr-2.1' IP in "pl.dtsi" does not have DMA specified, how should I add DMA parameters to it? 

Thanks in advance.

  

 

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
Highlighted
Observer
Observer
1,984 Views
Registered: ‎11-01-2018

Re: Getting started with video for MPSOC - ZCU100/Ultra96

Jump to solution
0 Kudos
9 Replies
Highlighted
Observer
Observer
2,244 Views
Registered: ‎11-01-2018

Re: Getting started with video for MPSOC - ZCU100/Ultra96

Jump to solution

I added vcap and dma parameters to "pl.dtsi" (attached) but got errors :

 

[ 1.422255] xilinx-video amba_pl@0:vcap_tpg: /amba_pl@0/vcap_tpg/ports/port@0 initialization failed

[ 1.422268] xilinx-video amba_pl@0:vcap_tpg: DMA initialization failed

[ 1.423019] xilinx-tpg 80010000.v_tpg: invalid format in DT

[ 1.423033] xilinx-tpg: probe of 80010000.v_tpg failed with error -22

0 Kudos
Highlighted
Voyager
Voyager
2,212 Views
Registered: ‎10-21-2015

Re: Getting started with video for MPSOC - ZCU100/Ultra96

Jump to solution

Hi 

I have succeeded in implementing tpg on ultra96

The results are attached

Highlighted
Observer
Observer
2,171 Views
Registered: ‎11-01-2018

Re: Getting started with video for MPSOC - ZCU100/Ultra96

Jump to solution

@hokim,

I was able to create/build Vivado project using your files. I exported hdf file, created dts files using hsi, included your "system_user.dtsi" and built system-top.dtb file.

I created new BOOT.BIN with new bit file.

My Ultra96 hang half way during kernel loading without error.

The serial console at J6 header stopped at "Starting kernel ...", the DP display stopped at "ALSA device list:"

I suspect my new dtb doesn't match with new bit file.

Could you send me your BOOT.BIN, Image and system-top.dtb?

Thanks

0 Kudos
Highlighted
Observer
Observer
2,142 Views
Registered: ‎11-01-2018

Re: Getting started with video for MPSOC - ZCU100/Ultra96

Jump to solution

@hoki94

Your files worked with your rootfs and my rootfs.  I have /dev/video0, /dev/video1 and /dev/video2 created and I can use "v4l2-ctl -all" to list information of all 3 video devices.

I have not used TPG software before, how do you test Xilinx TPG from Linux?

Thanks

0 Kudos
Highlighted
Observer
Observer
2,075 Views
Registered: ‎11-01-2018

Re: Getting started with video for MPSOC - ZCU100/Ultra96

Jump to solution

Where can I find documentations on how to use Xilinx video pipelines in Linux?

Thanks

0 Kudos
Highlighted
Voyager
Voyager
2,052 Views
Registered: ‎10-21-2015

Re: Getting started with video for MPSOC - ZCU100/Ultra96

Jump to solution
Highlighted
Moderator
Moderator
2,019 Views
Registered: ‎11-09-2015

Re: Getting started with video for MPSOC - ZCU100/Ultra96

Jump to solution

Hi @soc4video,

Do you have any updates on this? Was @hokim's reply enough for you?

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

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

Best Regards,


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Highlighted
Observer
Observer
1,985 Views
Registered: ‎11-01-2018

Re: Getting started with video for MPSOC - ZCU100/Ultra96

Jump to solution
0 Kudos