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!

cancel
Showing results for 
Search instead for 
Did you mean: 
Contributor
Contributor
444 Views
Registered: ‎08-02-2016

linux drivers for my HLS ip

hi, 

I am new to HLS. I build a simple HLS ip for test. 

And this is followed demo BASE_TRD_ZC702.

(https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18841616/Zynq+Base+TRD+2015.4)

In this demo , HLS module in device tree is described as :

	hls_1: hls@400d0000 {
		compatible = "xlnx,v-hls-sobel", "xlnx,v-hls";
		reg = <0x400d0000 0x20>, <0x400d0020 0xa4>;
		clocks = <&clkc 15>;

		ports {
			#address-cells = <1>;
			#size-cells = <0>;

			port@0 {
				reg = <0>;

				xlnx,video-format = <XVIP_VF_YUV_422>;
				xlnx,video-width = <8>;

				hls_in: endpoint {
					remote-endpoint = <&vm2m_hls_out>;
				} ;
			} ;
			port@1 {
				reg = <1>;

				xlnx,video-format = <XVIP_VF_YUV_422>;
				xlnx,video-width = <8>;

				hls_out: endpoint {
					remote-endpoint = <&vm2m_hls_in>;
				};
			};
		};
	};

and its compatible driver is xilinx-hls.c (ref to attachment) , which locates at <linux-kernel>/drivers/media/platform/xilinx/

Then I setup a similar project with my own simple HLS ip, modified the register address in device tree,

the problem happened that when I start up board with BOOT.bin and image.ub,the log shows no HLS module found, that is I cannot find 

dev_info(xhls->xvip.dev, "device %s found\n", xhls->compatible);

info printed in the startup log.

Also I noticed in some topics, it is suggested to use "generic-uio" to make a driver for HLS ip, but it seems not  in BASE_TRD_ZC702. as below link:

https://forums.xilinx.com/t5/Embedded-Linux/How-to-use-HLS-autogenerated-linux-drivers-in-Petalinux-recipe/m-p/877681#M27692

My question is what is the difference between those "generic-uio" and "xlnx,v-hls" drivers? 

Is it ok to just use xilinx-hls.c driver in ZC702 demo for my own ip ?

How to implement drivers generated by vivado_hls in Linux ?

 

Sorry for my ignorance, but anyone can help me ?  thank you! 

 

 

0 Kudos
2 Replies
Highlighted
Contributor
Contributor
381 Views
Registered: ‎08-02-2016

Re: linux drivers for my HLS ip

oh, I set the primary SD to ps7_sd_1 channel, and what I see is the log startup thru EMMC.

A foolish error!

2.PNG

Moderator
Moderator
363 Views
Registered: ‎10-04-2011

Re: linux drivers for my HLS ip

Hello @mcggoal,

Thank you for posting that you found the solution to this. I don't think that I would call this mistake foolish, but I do think that logging the problem and your solution will help others from falling into that pitfall like you did, so I appreciate you doing that!

Thank you ,
Scott