You are right.
I have not think about linux-imx:do_install_append
Thanks for the help
MZ
Il 03/03/20 15:44, Laurent Gauthier ha scritto:
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 <ma...@faresoftware.it
<mailto:ma...@faresoftware.it>> wrote:
Hi all.
My recipes procude some dtb.
imx6dl-sabresd-disp1.dtb
imx6dl-sabresd-disp2.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,
MZ
--
Laurent Gauthier
Phone: +33 630 483 429
http://soccasys.com
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#48675): https://lists.yoctoproject.org/g/yocto/message/48675
Mute This Topic: https://lists.yoctoproject.org/mt/71700896/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-