Skip to contentSkip to conversation

kernel fitImage not found

OE-core Frédéric Martinsons 1 participant 2 messages Aug 10, 2023 2 messages not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

I forgot to add that I use INITRAMFS_IMAGE_BUNDLE=1 and kernel 4.19.284.

I'm currently testing some fix (that I clearly not sure about the impact):

(quoted diff) +0 -0

b/meta/classes/kernel-fitimage.bbclass
index 7c7bcd3fc0..b5984be575 100644

meta/classes/kernel-fitimage.bbclass +0 -2
@@ -572,11 +572,7 @@ do_assemble_fitimage_initramfs() {
        if echo ${KERNEL_IMAGETYPES} | grep -wq "fitImage" && \
                test -n "${INITRAMFS_IMAGE}" ; then
                cd ${B}
-               if [ "${INITRAMFS_IMAGE_BUNDLE}" = "1" ]; then
-                       fitimage_assemble fit-image-${INITRAMFS_IMAGE}.its

fitImage ""
- else
- fitimage_assemble fit-image-${INITRAMFS_IMAGE}.its
fitImage-${INITRAMFS_IMAGE} 1
- fi
+ fitimage_assemble fit-image-${INITRAMFS_IMAGE}.its
fitImage-${INITRAMFS_IMAGE} 1
fi
}

Quoted 46 lines · Frederic Martinsons via lists.openembedded.org

Hello

since the introduction of two commits (8280c089b0d
<https://git.openembedded.org/openembedded-core/commit/meta/classes/kernel-fitimage.bbclass?h=dunfell&id=8280c089b0df97368476b8bc54ed758e809f42f5>
and e3eb79c0a1
<https://git.openembedded.org/openembedded-core/commit/meta/classes/kernel-fitimage.bbclass?h=dunfell&id=e3eb79c0a11e9f67af3161361fb88b00123ecbac> ) inside the dunfell branch, I have kernel installation error , complaining
that the fitImage was not found:

|
| install: cannot stat 'arch/arm64/boot/fitImage': No such file or directory
|

With the revert of the two commits mentioned above, I managed to get my image built successfully.

I built an arm64 based target and I set in my conf KERNEL_IMAGETYPE=fitImage.
This is very like YOCTO #14971
<https://bugzilla.yoctoproject.org/show_bug.cgi?id=14971> that I raised end of 2022 and was fixed by backport of another commit from master (I have still KERNEL_IMAGETYPE=KERNEL_IMAGETYPES=fitImage and KERNEL_IMAGETYPE_FOR_MAKE=Image).

I tried to dig further but I must admit I don't know the arcane of fit image construction very well to suggest for a fix, I tried to look also at kernel-fitimage.bbclass on master branch but there was a lot of changes there and I was unable to pinpoint the issue.

Can someone with more knowledge know what is going on or suggest what I can look to know more ?

Thanks.

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#185689):
https://lists.openembedded.org/g/openembedded-core/message/185689
Mute This Topic: https://lists.openembedded.org/mt/100638982/6213388
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#3 lore raw
In reply to a message not in the archive
Quoted 21 lines · Frederic Martinsons via lists.openembedded.org

I forgot to add that I use INITRAMFS_IMAGE_BUNDLE=1 and kernel 4.19.284.

I'm currently testing some fix (that I clearly not sure about the impact):

meta/classes/kernel-fitimage.bbclass +0 -2
index 7c7bcd3fc0..b5984be575 100644
@@ -572,11 +572,7 @@ do_assemble_fitimage_initramfs() {
        if echo ${KERNEL_IMAGETYPES} | grep -wq "fitImage" && \
                test -n "${INITRAMFS_IMAGE}" ; then
                cd ${B}
-               if [ "${INITRAMFS_IMAGE_BUNDLE}" = "1" ]; then
-                       fitimage_assemble fit-image-${INITRAMFS_IMAGE}.its

fitImage ""

meta/classes/kernel-fitimage.bbclass +0 -2
-               else
-                       fitimage_assemble fit-image-${INITRAMFS_IMAGE}.its

fitImage-${INITRAMFS_IMAGE} 1

meta/classes/kernel-fitimage.bbclass +1 -1
-               fi
+               fitimage_assemble fit-image-${INITRAMFS_IMAGE}.its
Quoted 4 lines

fitImage-${INITRAMFS_IMAGE} 1
fi
}

This was not the correct thing to do. By searching more, I think another backport commit is necessary , this one
<https://git.openembedded.org/openembedded-core/commit/meta/classes-recipe/kernel.bbclass?id=1b67fd9ac74935fa41e960478c54e45422339138>
I'll submit the backport soon.

Quoted 1 line

On Wed, 9 Aug 2023 at 10:08, Frederic Martinsons via lists.openembedded.org

Quoted 51 lines
Quoted 30 lines · <[email protected]> wrote:

Hello

since the introduction of two commits (8280c089b0d
<https://git.openembedded.org/openembedded-core/commit/meta/classes/kernel-fitimage.bbclass?h=dunfell&id=8280c089b0df97368476b8bc54ed758e809f42f5>
and e3eb79c0a1
<https://git.openembedded.org/openembedded-core/commit/meta/classes/kernel-fitimage.bbclass?h=dunfell&id=e3eb79c0a11e9f67af3161361fb88b00123ecbac> ) inside the dunfell branch, I have kernel installation error , complaining
that the fitImage was not found:

|
| install: cannot stat 'arch/arm64/boot/fitImage': No such file or directory
|

With the revert of the two commits mentioned above, I managed to get my image built successfully.

I built an arm64 based target and I set in my conf KERNEL_IMAGETYPE=fitImage.
This is very like YOCTO #14971
<https://bugzilla.yoctoproject.org/show_bug.cgi?id=14971> that I raised end of 2022 and was fixed by backport of another commit from master (I have still KERNEL_IMAGETYPE=KERNEL_IMAGETYPES=fitImage and KERNEL_IMAGETYPE_FOR_MAKE=Image).

I tried to dig further but I must admit I don't know the arcane of fit image construction very well to suggest for a fix, I tried to look also at kernel-fitimage.bbclass on master branch but there was a lot of changes there and I was unable to pinpoint the issue.

Quoted 8 lines

Can someone with more knowledge know what is going on or suggest what I can look to know more ?

Thanks.

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#185729):
https://lists.openembedded.org/g/openembedded-core/message/185729
Mute This Topic: https://lists.openembedded.org/mt/100638982/6213388
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-