Re: IMX6DL: Rename dtb in boot partition

Laurent Gauthier

Ciao Mauro,

My best guess is that you should do the following:

1. Create a linux-imx_%.bbappend recipe in your layer (assuming you have one).
2. Add a do_install_append function which overrides $D/boot/imx6dl-sabresd.dtb

linux-imx is the name of the kernel recipe if you are using an NXP BSP. If you are using another BSP the name of the kernel recipe might be different, please adjust as required.

Prior to proceeding to this you should check that you can see your files in your Yocto build directory under:

* .../tmp/work/imx*/linux-imx/*/packages-split/kernel-devicetree/

The content of the /boot partition normally includes content from the kernel-devicetree package (created by the kernel recipe), because these are installed under /boot in the rootfs.

After making the changes suggested above just cleanall + rebuild your kernel and verify that the DTB file has been properly overwritten (look again at this same directory I point you to above, compare file checksums to ensure the copy worked).

If that worked, then just cleanall your final image, and rebuild it.

Hopefully this will work for you.

I hope this helps.

Kind regards, Laurent.

On Tue, Mar 3, 2020 at 3:16 PM Mauro Ziliani <mauro@...> wrote:

Hi all.

My recipes procude some dtb.


The image recipe gives an sdcard file with 2 partition: p1 and p2

p1 is vfat with zImage and imx6dl-sabresd.dtb

p2 is ext4 with the applications.

In p1 I find imx6dl-sabresd.dtb, imx6dl-sabresd-disp1.dtb and  imx6dl-sabresd-disp2.dtb

I need to replace imx6dl-sabresd.dtb with that imx6dl-sabresd-disp1.dtb

I'd like to do this

cp -f imx6dl-sabresd-disp1.dtb imx6dl-sabresd.dtb

How can I do that?

There is a way to rename imx6dl-sabresd-disp1.dtb in imx6dl-sabresd.dtb inside some task?

do_rootfs, do_image or others?

Best regards,


Laurent Gauthier
Phone: +33 630 483 429

Join to automatically receive all group messages.