cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
875 Views
Registered: ‎03-19-2017

linux driver type of HLS module

Jump to solution

For SDK, I create a linux application for my design including my own HLS "Test" module. I found that the linux api functions (auto generate by SDK tool) will use the open("/...uioxx...) method (by UIO driver) to access the HLS "Test" module. But when I create a petalinux O.S. from my design's hdf file, the content of "pl.dst" (as below, auto generate by petalinux tool) will show that my own HLS "Test" module will use compatible = "xlnx,Test-1.0".

My question is that how do I open the device of HLS "Test" module in my linux application?  fd=open("test", ...) is it right?

And, do the petalinux will auto generate the driver of my HLS "Test" module? If it is, where could I find the path of this driver file?

 

/*
 * CAUTION: This file is automatically generated by Xilinx.
 * Version: HSI 2015.4
 * Today is: Tue Sep  4 20:10:06 2018
*/


/ {
 amba_pl: amba_pl {
  #address-cells = <1>;
  #size-cells = <1>;
  compatible = "simple-bus";
  ranges ;
  Test_0: Test@83c00000 {
   compatible = "xlnx,Test-1.0";
   reg = <0x83c00000 0x10000>;
   xlnx,s-axi-control-bus-addr-width = <0x6>;
   xlnx,s-axi-control-bus-data-width = <0x20>;
  };

...

0 Kudos
1 Solution

Accepted Solutions
801 Views
Registered: ‎03-19-2017

Got it.

Thank you.

View solution in original post

0 Kudos
2 Replies
hokim
Scholar
Scholar
821 Views
Registered: ‎10-21-2015

Hi,

There exists driver module for 'xlnx,Test-1.0' in nowhere.

You should modify compatible for uio

https://forums.xilinx.com/t5/Embedded-Linux/Using-UIO-with-custom-IP/td-p/886137

0 Kudos
802 Views
Registered: ‎03-19-2017

Got it.

Thank you.

View solution in original post

0 Kudos