12-23-2018 09:18 AM - edited 12-23-2018 09:23 AM
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.
12-26-2018 12:15 PM
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