fitImage generation issue #kirkstone #yocto
Hello Yocto friends,
I have an issue with the generation of an fitImage with initramfs. The creation of an fitImage where a kernel and device tree are combined works, but when I add an initramfs then the kernel creation keeps adding the fitImage without the initramfs.
What I see on the debug output is the following:
--> FILES:kernel-image-fitimage="/boot/fitImage-5.4.129+g828ec42a6a32+p3 /boot/fitImage"
While I would expect something like:
--> FILES:kernel-image-fitimage="/boot/fitImage-my-initramfs-name-5.4.129+g828ec42a6a32+p3 /boot/fitImage"
Could anyone point me in the correct direction, I expect that I miss some variable that can change this behaviour. (most likely the solution is staring me in the face, but I'm blind to see it).
Thank you in advance.
Signature · 6 lines
With kind regards, Jeffrey Simons Software Engineer Royal Boon Edam International B.V.
Quoted 8 lines · Jeffrey Simons
Hello Yocto friends,
I have an issue with the generation of an fitImage with initramfs. The creation of an fitImage where a kernel and device tree are combined works, but when I add an initramfs then the kernel creation keeps adding the fitImage without the initramfs.
Quoted 8 lines
What I see on the debug output is the following:
--> FILES:kernel-image-fitimage="/boot/fitImage-5.4.129+g828ec42a6a32+p3/boot/fitImage"While I would expect something like:
--> FILES:kernel-image-fitimage="/boot/fitImage-my-initramfs-name-5.4.129+g828ec42a6a32+p3/boot/fitImage"
I dove further down the rabbit hole and I think to know why this happens. the deb package creation happens before the initramfs bundle/creation. Most likely this has its good reasons for that order (regarding dependencies) but in our case this means that the deb file only contains a fitImage with a device tree. (Not good for us).
Perhaps this is a deb thingy and does this not happen with RPM or IPK, but I didn't dove into that due to the limited time I had. So our solution for the time being will be to execute a rootfs post process command that copies the correct fitImage into the boot folder which will end up in my ubi image.
Hopefully someone will find this information useful.
Signature · 6 lines
With kind regards, Jeffrey Simons Software Engineer Royal Boon Edam International B.V.