cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
1,004 Views
Registered: ‎11-11-2018

petalinux 2018.2 generated device tree for AD9361 is not working

Hi,

I'm using petalinux 2018.2 for ZCU102 board with,

- External kernel source from ADI master branch last commit with

petalinux-config -c kernel --defconfig=adi_zynqmp_defconfig

- xilinx-zcu102-v2018.2-final.bsp -> 

petalinux-create -t project -s xilinx-zcu102-v2018.2-final.bsp --name <project-name>

- .hdf file created from hdl adi repo last commit of release 2018_r2 project 

"hdl/projects/fmcomms2/zcu102" 

- when I used the cmd 

petalinux-config --get-hw-description <path to hdf> 

I got the .dts and .dtb files

The probelm is that the generated system.dtb file doesn't define the fmcomms2 card to the board, when I used 

iio_info | grep iio:device

on the board I can't find the ad9361 device listed, but when I bring the "zynqmp-zcu102-rev10-ad9361-fmcomms2-3.dtb" created by the makefile of the linux_adi kerenel source, it works fine I can list the ad9361 device.

 

0 Kudos
1 Reply
Highlighted
Adventurer
Adventurer
943 Views
Registered: ‎05-26-2017

What do you have in system.dtsi ? My guess is that the zynqmp-zcu102-rev10-ad9361-fmcomms2-3.dtb is a special device tree version that has the AD9361 added, whereas the standard zcu102-BSP build does not. Just a guess...

 

You can run dtc to convert the working dtb file into a text-dts file. Then copy over the AD9361 related nodes to your system.dtsi file 

/Otto

0 Kudos