07-05-2020 05:07 AM
I am using Petalinux 2019.2 with ZYNQ7000.
I am loading my image from QSPI and I want to separate the device tree blob from the image.ub
I changed the following setting in petalinux configuration: [Subsystem AUTO Hardware Settings] → [Advanced bootable images storage Settings] → [dtb image settings] → [image storage media] from [from boot image] to [primary flash],
but the image.ub still contains the dtb inside it.
07-05-2020 12:12 PM
you can just create the FIT image manually (or copy this from the tmp dir), and use the mkimage utility to rebuild:
07-07-2020 01:48 AM
I do not understand how your answer relates to my question
1. I am using Petalinux build tools and I am not using Open Source Linux
2. I am booting from QSPI and not from SD, and I do not want the DTB to be part of the Linux image.
3. The Petalinux configuration should enable to add or not the DTB to the image, and currently it does not.
07-07-2020 02:07 AM
There is no configuration to do this in petalinux. The last post was a way to achieve this.
Petalinux simply creates a fit image and uses this to create the uboot bootable image, image.ub.
You can do the same. The wiki simply shows how to create a fit, or just use the one from petalinux in the tmp dir. (See ug1144 for how petalinux uses the tmp dir)
If you are using ubuntu, you can do an apt-get install uboot-mkimage
07-07-2020 04:52 AM
Thank you for you answer.
If I understand you correctly you are saying that in order to build a Linux image without the DTB I need to take the image that was build by Petalinux (from the TMP directory) and manipulate it using mkimage utility to rebuild it (remove the DTB from the image). Is this correct?
And also that the setting in petaLinux Subsystem AUTO Hardware Settings] → [Advanced bootable images storage Settings] → [dtb image settings] → [image storage media] Has no effect