How to Add my dtsi file in meta-adi??
manibenwa opened this issue · 1 comments
Hai team,
iam following https://wiki.analog.com/resources/tools-software/linux-build/generic/petalinux.
iam using petalinux (2018.3) and zcu102 with adrv9009 for building meta-adi. iam able to build meta-adi and working successfully .But i want to add my dtsi(which contains interrupt IP in my hdf file) file with your meta-adi .can u plz tell me How to add my own dtsi file ???
Hi,
Currently, there's no supported way of doing that. However, it is something that makes sense to add, so we have to think in some mechanism to extend ADI devicetrees. What you can try, to just go on, is:
-
Use your dtsi as dts and include the zynqmp-zcu102-rev10-adrv9009.dts there;
-
Put your dts in
path-to-your-project/project-spec/meta-user/recipes-bsp/device-tree/files/
and rename itsystem-user.dtsi
. This overwrites the file in this location; -
on the
device-tree.bbappend
file, comment the linecp "${DTS_INCLUDE_PATH}/${KERNEL_DTB}.dts" ${WORKDIR}/system-user.dtsi
; -
Not sure if you need to remove the devicetree node for your interrupt IP. But if you do, use the same logic as in the pl-delete-nodes-* files (in your case, you can just add a
delete-node
line in your new .dtsi file before defining your dts properties). You need to do this if you are defining a node in your .dtsi file which gets defined by the petalinux devicetree auto generation mechanism. Check thecomponents/plnx_workspace/device-tree/device-tree/pl.dtsi
file to see if your node gets defined.
Note that, I'm not sure if this will work but its worth a try if you are in a hurry. If not, keep an eye on the repo and wait for support.
Hope this helps!