Hello, I have a project where I want to implement dm-verity on my rootfs (no initramfs here).
I modify image recipe to split rootfs in multiple partition (weird this is not supported upstream). I generate rootfs as a squashfs with verity has table at the end. I also obtain a verity.env file as output in ${TMPDIR}/work-shared/${MACHINE}/dm-verity/ My idea is to convert verity.env into a bootscript and inject it inside fitimage using UBOOT_ENV variable. My issue is the overall dependency. I need my rootfs before creating my bootfs (/boot) containing my fitimage. Ideally I want to * generate a first rootfs without uboot and fitimage (not possible as it is defined using KERNEL_IMAGETYPES). * convert verity.env into bootscript.txt and configure UBOOT_ENV * generate fitimage and create my bootfs I explore several ideas like multiconfig without success, multiple images (works but recompile several elements twice, not perfect), define new fstype or image (no success for now) Any advice or suggestion are welcomed. Additional question: why UBOOT_ENV is linked to UBOOT as it is only generated in u-boot recipe and then injected in do_assemble_fitimage. Maybe an independent recipe could be simpler.
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#63017): https://lists.yoctoproject.org/g/yocto/message/63017 Mute This Topic: https://lists.yoctoproject.org/mt/105859944/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-