How to force a rebuild of mpfs icicle dev kit's devicetrees #388
-
Hello, I'm not familiar with how to force a device tree rebuild after it's been modified. For more information on exactly what I'm trying to do, please read on. I want to attempt modifying the device trees of the icicle dev kit, because I'll eventually need to add more uio devices to be able to communicate to multiple modules from user space, so I decided to take the approach of deleting a node from the device tree to see if when I attempt rebuilding the project by using the command MACHINE=icicle-kit-es bitbake mpfs-dev-cli, a new image with the modification is generated. The first thing I observed was that a new image was not generated, and the .dtb files I located were not rebuilt either. I wrote the image to the SD card anyway and the node I attempted deleting was still in present on the unit's /dev/ The exact node I attempted deleting was the udmabuf0 node located here: ~/yocto-dev/build/tmp-glibc/work-shared/icicle-kit-es/kernel-source/arch/riscv/boot/dts/microchip/mpfs-icicle-kit.dts After deleting the node, I rebuilt with the command MACHINE=icicle-kit-es bitbake mpfs-dev-cli and got no new image or dtb. Could I please be directed on how to force a device tree binary/blob rebuild that can then be used in generating a new image that can be written to the SD card? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi.. if you are trying to modify the Linux device tree for a Yocto based build there are a number of steps you need to go through to create a patch and then have the patch applied, you cannot modify the device tree directly and do a rebuild, that change, as you noted, will not stick.
then you are free to build, I would do a bitbake -c cleansstate just to be sure you rebuild with your patch. MACHINE=icicle-kit-es bitbake core-image-minimal-dev -c cleansstate So, there's a few steps, take your time and verify them all |
Beta Was this translation helpful? Give feedback.
-
Thank you so much for you quick response RG!! It works exactly how you described it. I successfully made the modifications I wanted. |
Beta Was this translation helpful? Give feedback.
Hi.. if you are trying to modify the Linux device tree for a Yocto based build there are a number of steps you need to go through to create a patch and then have the patch applied, you cannot modify the device tree directly and do a rebuild, that change, as you noted, will not stick.