Skip to contentSkip to conversation

vmlinux has relocations in .text

DISCUSSION David Daniel 2 participants 4 messages Aug 6, 2024 – Aug 7, 2024

lore
Share & tools
lore
#0 lore raw

Hi everybody

I am updating my setup for a custom system and I'm getting an error now with the kernel. Everything works until packaging of the kernel, I now get the error that the kernel image contains relocations in .text:

ERROR: linux-bf133-6.6.44-r0 do_package_qa: QA Issue: kernel-vmlinux: ELF binary /boot/vmlinux-6.6.44-rt38-vrag has relocations in .text [textrel]
ERROR: linux-bf133-6.6.44-r0 do_package_qa: Fatal QA errors were found, failing task.
ERROR: Logfile of failure stored in: /mnt/data/yocto/bf133/build/tmp/work/bf133-vrag-linux/linux-bf133/6.6.44/temp/log.do_package_qa.417292
ERROR: Task (/mnt/data/yocto/bf133/meta-bf133/recipes-kernel/linux/linux-bf133_6.6.44.bb:do_package_qa) failed with exit code '1'

I am using the exakt same way to build the kernel as I was before when using Nanbield. I couldn't find anything related to the kernel recipes in the migration guides for 5.0, can anyone give me a hint? What am I doing wrong, what am I missing?

For completeness here is my kernel recipe:

----
inherit kernel
require recipes-kernel/linux/linux-yocto.inc

LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0-only;md5=801f80980d171dd6425610833a22dbe6"

SRC_URI = "\
    git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git;protocol=https;tag=v6.6.44;branch=linux-6.6.y;name=kern \
    file://0001-6.6.44-RT.patch;subdir=git;name=rtpatch \
    file://defconfig;name=config \
    file://0002-6.6.44-MSR_DE-for-booke64.patch;name=rtpatch \
    file://bf133.dts;name=dts;subdir=git/arch/${ARCH}/boot/dts/fsl \

"

SRC_URI_config[sha256sum] = "9bcd116d4a1001d09e60722935b34f5c337e721c50d67b20abe6cdde4cfa16b2" SRC_URI_dts[sha256sum] = "abfb61598e384165e2c2e597e236d533a62465a47c18f4b44ba385210dc43a08" SRC_URI_rtpatch[sha256sum] = "3ac1384b690c6adae36b3ca34ae3cc05f13bcde8cde88c2408d16cfc5ac75a61" SRC_URI_msrpatch[sha256sum] = "e6e31c7d70e98829f90df8e8567c0b45fb8efaa37a7fc8285a4fb96602c838ba"

KERNEL_DEVICETREE = "fsl/bf133.dtb"

LINUX_VERSION = "6.6.44"
PV = "6.6.44"

LINUX_KERNEL_TYPE = "rt"
LINUX_VERSION_EXTENSION = "-vrag"

# Override COMPATIBLE_MACHINE to include your machine in a copy of this recipe

# file. Leaving it empty here ensures an early explicit build failure.
COMPATIBLE_MACHINE = "(bf133)"

----

Thanks for any hint!

BR
Dave

#1 lore raw
Quoted 55 lines · David Daniel via lists.yoctoproject.org

Hi everybody

I am updating my setup for a custom system and I'm getting an error now with the kernel. Everything works until packaging of the kernel, I now get the error that the kernel image contains relocations in .text:

ERROR: linux-bf133-6.6.44-r0 do_package_qa: QA Issue: kernel-vmlinux: ELF
binary /boot/vmlinux-6.6.44-rt38-vrag has relocations in .text [textrel]
ERROR: linux-bf133-6.6.44-r0 do_package_qa: Fatal QA errors were found,
failing task.
ERROR: Logfile of failure stored in:
/mnt/data/yocto/bf133/build/tmp/work/bf133-vrag-linux/linux-bf133/6.6.44/temp/log.do_package_qa.417292
ERROR: Task (/mnt/data/yocto/bf133/meta-bf133/recipes-kernel/linux/linux-bf133_6.6.44.bb:do_package_qa) failed with exit code '1'

I am using the exakt same way to build the kernel as I was before when using Nanbield. I couldn't find anything related to the kernel recipes in the migration guides for 5.0, can anyone give me a hint? What am I doing wrong, what am I missing?

For completeness here is my kernel recipe:

----
inherit kernel
require recipes-kernel/linux/linux-yocto.inc

LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0-only;md5=801f80980d171dd6425610833a22dbe6"

SRC_URI = "\
    git://
git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git;protocol=https;tag=v6.6.44;branch=linux-6.6.y;name=kern
\
    file://0001-6.6.44-RT.patch;subdir=git;name=rtpatch \
    file://defconfig;name=config \
    file://0002-6.6.44-MSR_DE-for-booke64.patch;name=rtpatch \
    file://bf133.dts;name=dts;subdir=git/arch/${ARCH}/boot/dts/fsl \

"

SRC_URI_config[sha256sum] = "9bcd116d4a1001d09e60722935b34f5c337e721c50d67b20abe6cdde4cfa16b2" SRC_URI_dts[sha256sum] = "abfb61598e384165e2c2e597e236d533a62465a47c18f4b44ba385210dc43a08" SRC_URI_rtpatch[sha256sum] = "3ac1384b690c6adae36b3ca34ae3cc05f13bcde8cde88c2408d16cfc5ac75a61" SRC_URI_msrpatch[sha256sum] = "e6e31c7d70e98829f90df8e8567c0b45fb8efaa37a7fc8285a4fb96602c838ba"

KERNEL_DEVICETREE = "fsl/bf133.dtb"

LINUX_VERSION = "6.6.44"
PV = "6.6.44"

Quoted 8 lines

LINUX_KERNEL_TYPE = "rt"
LINUX_VERSION_EXTENSION = "-vrag"

# Override COMPATIBLE_MACHINE to include your machine in a copy of this recipe

# file. Leaving it empty here ensures an early explicit build failure.
COMPATIBLE_MACHINE = "(bf133)"

What is the cpu architecture under this machine
Iirc we disable this QA error for some eg ppc64

Quoted 21 lines

----

Thanks for any hint!

BR
Dave

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
You automatically follow any topics you start or reply to. View/Reply Online (#63663):
https://lists.yoctoproject.org/g/yocto/message/63663
Mute This Topic: https://lists.yoctoproject.org/mt/107748225/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#2 lore raw

Thanks for your reply! It is indeed ppc64. I could work around it by disabling this check as you mentioned by adding

    INSANE_SKIP += "textrel"

to the kernel recipe. Is there a reason, why I cannot use INSANE_SKIP:${PV} in the kernel recipe? If I specify ${PV} the error still pops up. Does this now mean that my build ignores the QA of textrel for all packages?

Am Dienstag, dem 06.08.2024 um 10:58 -0700 schrieb Khem Raj:

On Tue, Aug 6, 2024 at 2:49 AM David Daniel via lists.yoctoproject.org<http://lists.yoctoproject.org> <[email protected]<mailto:[email protected]>> wrote:
Hi everybody

I am updating my setup for a custom system and I'm getting an error now with the kernel. Everything works until packaging of the kernel, I now get the error that the kernel image contains relocations in .text:

ERROR: linux-bf133-6.6.44-r0 do_package_qa: QA Issue: kernel-vmlinux: ELF binary /boot/vmlinux-6.6.44-rt38-vrag has relocations in .text [textrel]
ERROR: linux-bf133-6.6.44-r0 do_package_qa: Fatal QA errors were found, failing task.
ERROR: Logfile of failure stored in: /mnt/data/yocto/bf133/build/tmp/work/bf133-vrag-linux/linux-bf133/6.6.44/temp/log.do_package_qa.417292
ERROR: Task (/mnt/data/yocto/bf133/meta-bf133/recipes-kernel/linux/linux-bf133_6.6.44.bb:do_package_qa) failed with exit code '1'

I am using the exakt same way to build the kernel as I was before when using Nanbield. I couldn't find anything related to the kernel recipes in the migration guides for 5.0, can anyone give me a hint? What am I doing wrong, what am I missing?

For completeness here is my kernel recipe:

----
inherit kernel
require recipes-kernel/linux/linux-yocto.inc

LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0-only;md5=801f80980d171dd6425610833a22dbe6"

SRC_URI = "\
    git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git;protocol=https;tag=v6.6.44;branch=linux-6.6.y;name=kern<http://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git;protocol=https;tag=v6.6.44;branch=linux-6.6.y;name=kern> \
    file://0001-6.6.44-RT.patch;subdir=git;name=rtpatch \
    file://defconfig;name=config \
    file://0002-6.6.44-MSR_DE-for-booke64.patch;name=rtpatch \
    file://bf133.dts;name=dts;subdir=git/arch/${ARCH}/boot/dts/fsl \

"

SRC_URI_config[sha256sum] = "9bcd116d4a1001d09e60722935b34f5c337e721c50d67b20abe6cdde4cfa16b2" SRC_URI_dts[sha256sum] = "abfb61598e384165e2c2e597e236d533a62465a47c18f4b44ba385210dc43a08" SRC_URI_rtpatch[sha256sum] = "3ac1384b690c6adae36b3ca34ae3cc05f13bcde8cde88c2408d16cfc5ac75a61" SRC_URI_msrpatch[sha256sum] = "e6e31c7d70e98829f90df8e8567c0b45fb8efaa37a7fc8285a4fb96602c838ba"

KERNEL_DEVICETREE = "fsl/bf133.dtb"

LINUX_VERSION = "6.6.44"
PV = "6.6.44"

LINUX_KERNEL_TYPE = "rt"
LINUX_VERSION_EXTENSION = "-vrag"

# Override COMPATIBLE_MACHINE to include your machine in a copy of this recipe

# file. Leaving it empty here ensures an early explicit build failure.
COMPATIBLE_MACHINE = "(bf133)"

What is the cpu architecture under this machine
Iirc we disable this QA error for some eg ppc64

----

Thanks for any hint!

BR
Dave

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
You automatically follow any topics you start or reply to.
View/Reply Online (#63663): https://lists.yoctoproject.org/g/yocto/message/63663
Mute This Topic: https://lists.yoctoproject.org/mt/107748225/1997914
Group Owner: [email protected]<mailto:yocto%[email protected]>
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]<mailto:[email protected]>]
-=-=-=-=-=-=-=-=-=-=-=-

#3 lore raw
Quoted 11 lines · David Daniel

Thanks for your reply! It is indeed ppc64. I could work around it by disabling this check as you mentioned by adding

    INSANE_SKIP += "textrel"

to the kernel recipe. Is there a reason, why I cannot use INSANE_SKIP:${PV} in the kernel recipe? If I specify ${PV} the error still pops up. Does this now mean that my build ignores the QA of textrel for *all* packages?

PV is not an override for this you need something like

https://github.com/yoctoproject/poky/blob/master/meta/recipes-kernel/linux/linux-yocto_6.6.bb#L73

Quoted 97 lines

Am Dienstag, dem 06.08.2024 um 10:58 -0700 schrieb Khem Raj:

On Tue, Aug 6, 2024 at 2:49 AM David Daniel via lists.yoctoproject.org <[email protected]> wrote:

Hi everybody

I am updating my setup for a custom system and I'm getting an error now with the kernel. Everything works until packaging of the kernel, I now get the error that the kernel image contains relocations in .text:

ERROR: linux-bf133-6.6.44-r0 do_package_qa: QA Issue: kernel-vmlinux: ELF
binary /boot/vmlinux-6.6.44-rt38-vrag has relocations in .text [textrel]
ERROR: linux-bf133-6.6.44-r0 do_package_qa: Fatal QA errors were found,
failing task.
ERROR: Logfile of failure stored in:
/mnt/data/yocto/bf133/build/tmp/work/bf133-vrag-linux/linux-bf133/6.6.44/temp/log.do_package_qa.417292
ERROR: Task (/mnt/data/yocto/bf133/meta-bf133/recipes-kernel/linux/linux-bf133_6.6.44.bb:do_package_qa) failed with exit code '1'

I am using the exakt same way to build the kernel as I was before when using Nanbield. I couldn't find anything related to the kernel recipes in the migration guides for 5.0, can anyone give me a hint? What am I doing wrong, what am I missing?

For completeness here is my kernel recipe:

----
inherit kernel
require recipes-kernel/linux/linux-yocto.inc

LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0-only;md5=801f80980d171dd6425610833a22dbe6"

SRC_URI = "\
    git://
git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git;protocol=https;tag=v6.6.44;branch=linux-6.6.y;name=kern
\
    file://0001-6.6.44-RT.patch;subdir=git;name=rtpatch \
    file://defconfig;name=config \
    file://0002-6.6.44-MSR_DE-for-booke64.patch;name=rtpatch \
    file://bf133.dts;name=dts;subdir=git/arch/${ARCH}/boot/dts/fsl \

"

SRC_URI_config[sha256sum] = "9bcd116d4a1001d09e60722935b34f5c337e721c50d67b20abe6cdde4cfa16b2" SRC_URI_dts[sha256sum] = "abfb61598e384165e2c2e597e236d533a62465a47c18f4b44ba385210dc43a08" SRC_URI_rtpatch[sha256sum] = "3ac1384b690c6adae36b3ca34ae3cc05f13bcde8cde88c2408d16cfc5ac75a61" SRC_URI_msrpatch[sha256sum] = "e6e31c7d70e98829f90df8e8567c0b45fb8efaa37a7fc8285a4fb96602c838ba"

KERNEL_DEVICETREE = "fsl/bf133.dtb"

LINUX_VERSION = "6.6.44"
PV = "6.6.44"

LINUX_KERNEL_TYPE = "rt"
LINUX_VERSION_EXTENSION = "-vrag"

# Override COMPATIBLE_MACHINE to include your machine in a copy of this recipe

# file. Leaving it empty here ensures an early explicit build failure.
COMPATIBLE_MACHINE = "(bf133)"

What is the cpu architecture under this machine
Iirc we disable this QA error for some eg ppc64

----

Thanks for any hint!

BR
Dave

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
You automatically follow any topics you start or reply to. View/Reply Online (#63663):
https://lists.yoctoproject.org/g/yocto/message/63663
Mute This Topic: https://lists.yoctoproject.org/mt/107748225/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-