Skip to contentSkip to conversation

kernel-module dependency mystery

DISCUSSION Mike Looijmans 5 participants 10 messages Apr 23, 2025 – May 19, 2025

lore
Share & tools
lore
#0 lore raw

I built the same image for 5 different machines. Only one of them fails with the logging below. Note that all machines install the "kernel-module-dyplo" package, and on 4 machines that succeeds just fine.

 * Solver encountered 2 problem(s):
 * Problem 1/2:
 *   - conflicting requests
 *   - package kernel-module-dyplo-1.1+154+bb94f350+bb94f3599b-r0.tdpzu9 requires kernel-module-dyplo-pcie-6.6.40-xilinx-g6a2cb0f14db5, but none of the providers can be installed *   - nothing provides kernel-6.6.40-xilinx-g6a2cb0f14db5 needed by kernel-module-dyplo-6.6.40-xilinx-g6a2cb0f14db5-1.1+154+bb94f350+bb94f3599b-r0.tdpzu9 *   - nothing provides kernel-6.6.40-xilinx-g6a2cb0f14db5 needed by kernel-module-dyplo-pcie-6.6.40-xilinx-g6a2cb0f14db5-1.1+154+bb94f350+bb94f3599b-r0.tdpzu9 *
 * Solution 1:
 *   - do not ask to install a package providing kernel-module-dyplo

 * Problem 2/2:
 *   - conflicting requests
 *   - package kernel-module-dyplo-1.1+154+bb94f350+bb94f3599b-r0.tdpzu9 requires kernel-module-dyplo-pcie-6.6.40-xilinx-g6a2cb0f14db5, but none of the providers can be installed *   - nothing provides kernel-6.6.40-xilinx-g6a2cb0f14db5 needed by kernel-module-dyplo-6.6.40-xilinx-g6a2cb0f14db5-1.1+154+bb94f350+bb94f3599b-r0.tdpzu9 *   - nothing provides kernel-6.6.40-xilinx-g6a2cb0f14db5 needed by kernel-module-dyplo-pcie-6.6.40-xilinx-g6a2cb0f14db5-1.1+154+bb94f350+bb94f3599b-r0.tdpzu9 *
 * Solution 1:
 *   - do not ask to install a package providing kernel-module-dyplo

I'm on "scarthgap" branch.

The "kernel-module-dyplo" recipe can be found here:

https://github.com/topic-embedded-products/meta-dyplo/blob/master/recipes-dyplo/dyplo-core/kernel-module-dyplo.bb

The isue at first glance appears to be that "kernel-6.6.40-xilinx-g6a2cb0f14db5" mixes the git version hash from the module itself and the git hash of the kernel. There's no such package, it should have been "kernel-6.6.40-xilinx-gd7b52381656b"

Signature · 10 lines
Mike Looijmans
System Expert

TOPIC Embedded Products B.V.
Materiaalweg 4, 5681 RJ Best
The Netherlands

T: +31 (0) 499 33 69 69
E: [email protected]
W: www.topic.nl
#1 lore raw
Quoted 3 lines · Mike Looijmans via lists.openembedded.org

I built the same image for 5 different machines. Only one of them fails with the logging below. Note that all machines install the "kernel- module-dyplo" package, and on 4 machines that succeeds just fine.

how are the five machine diffrent with machine config metadata

Quoted 44 lines

 * Solver encountered 2 problem(s):
 * Problem 1/2:
 *   - conflicting requests
 *   - package kernel-module-dyplo-1.1+154+bb94f350+bb94f3599b-
r0.tdpzu9 requires kernel-module-dyplo-pcie-6.6.40-xilinx-g6a2cb0f14db5, but none of the providers can be installed
 *   - nothing provides kernel-6.6.40-xilinx-g6a2cb0f14db5 needed by
kernel-module-dyplo-6.6.40-xilinx- g6a2cb0f14db5-1.1+154+bb94f350+bb94f3599b-r0.tdpzu9
 *   - nothing provides kernel-6.6.40-xilinx-g6a2cb0f14db5 needed by
kernel-module-dyplo-pcie-6.6.40-xilinx- g6a2cb0f14db5-1.1+154+bb94f350+bb94f3599b-r0.tdpzu9
 *
 * Solution 1:
 *   - do not ask to install a package providing kernel-module-dyplo

 * Problem 2/2:
 *   - conflicting requests
 *   - package kernel-module-dyplo-1.1+154+bb94f350+bb94f3599b-
r0.tdpzu9 requires kernel-module-dyplo-pcie-6.6.40-xilinx-g6a2cb0f14db5, but none of the providers can be installed
 *   - nothing provides kernel-6.6.40-xilinx-g6a2cb0f14db5 needed by
kernel-module-dyplo-6.6.40-xilinx- g6a2cb0f14db5-1.1+154+bb94f350+bb94f3599b-r0.tdpzu9
 *   - nothing provides kernel-6.6.40-xilinx-g6a2cb0f14db5 needed by
kernel-module-dyplo-pcie-6.6.40-xilinx- g6a2cb0f14db5-1.1+154+bb94f350+bb94f3599b-r0.tdpzu9
 *
 * Solution 1:
 *   - do not ask to install a package providing kernel-module-dyplo

I'm on "scarthgap" branch.

The "kernel-module-dyplo" recipe can be found here:

https://github.com/topic-embedded-products/meta-dyplo/blob/master/ recipes-dyplo/dyplo-core/kernel-module-dyplo.bb

The isue at first glance appears to be that "kernel-6.6.40-xilinx- g6a2cb0f14db5" mixes the git version hash from the module itself and the git hash of the kernel. There's no such package, it should have been "kernel-6.6.40-xilinx-gd7b52381656b"

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

Signature · 1 line
-Khem
#2 lore raw

Met vriendelijke groet / kind regards,

Mike Looijmans
System Expert

TOPIC Embedded Products B.V.
Materiaalweg 4, 5681 RJ Best
The Netherlands

T: +31 (0) 499 33 69 69
E: [email protected]
W: www.topic.nl

Please consider the environment before printing this e-mail

Quoted 6 lines · Khem Raj via lists.openembedded.org
Quoted 3 lines · Mike Looijmans via lists.openembedded.org

I built the same image for 5 different machines. Only one of them fails with the logging below. Note that all machines install the "kernel- module-dyplo" package, and on 4 machines that succeeds just fine.

how are the five machine diffrent with machine config metadata

Here are the conf files:
https://github.com/topic-embedded-products/meta-topic/tree/scarthgap/conf/machine

The "tdpzu9" triggers the issue, it's the same SoC as the tepzu9 and all the tdkzu* machines. Only difference is in the peripherals. tepzu9, ttpzu9 and tdpzu9 are the same SOM, just on a different carrier.

So the only difference in kernel configuration is some variance in drivers that get built.

Quoted 44 lines
Quoted 20 lines

  * Solver encountered 2 problem(s):
  * Problem 1/2:
  *   - conflicting requests
  *   - package kernel-module-dyplo-1.1+154+bb94f350+bb94f3599b- r0.tdpzu9 requires kernel-module-dyplo-pcie-6.6.40-xilinx-g6a2cb0f14db5, but none of the providers can be installed *   - nothing provides kernel-6.6.40-xilinx-g6a2cb0f14db5 needed by kernel-module-dyplo-6.6.40-xilinx- g6a2cb0f14db5-1.1+154+bb94f350+bb94f3599b-r0.tdpzu9 *   - nothing provides kernel-6.6.40-xilinx-g6a2cb0f14db5 needed by kernel-module-dyplo-pcie-6.6.40-xilinx- g6a2cb0f14db5-1.1+154+bb94f350+bb94f3599b-r0.tdpzu9 *
  * Solution 1:
  *   - do not ask to install a package providing kernel-module-dyplo

  * Problem 2/2:
  *   - conflicting requests
  *   - package kernel-module-dyplo-1.1+154+bb94f350+bb94f3599b- r0.tdpzu9 requires kernel-module-dyplo-pcie-6.6.40-xilinx-g6a2cb0f14db5, but none of the providers can be installed *   - nothing provides kernel-6.6.40-xilinx-g6a2cb0f14db5 needed by kernel-module-dyplo-6.6.40-xilinx- g6a2cb0f14db5-1.1+154+bb94f350+bb94f3599b-r0.tdpzu9 *   - nothing provides kernel-6.6.40-xilinx-g6a2cb0f14db5 needed by kernel-module-dyplo-pcie-6.6.40-xilinx- g6a2cb0f14db5-1.1+154+bb94f350+bb94f3599b-r0.tdpzu9 *
  * Solution 1:
  *   - do not ask to install a package providing kernel-module-dyplo

Quoted 13 lines

I'm on "scarthgap" branch.

The "kernel-module-dyplo" recipe can be found here:

https://github.com/topic-embedded-products/meta-dyplo/blob/master/ recipes-dyplo/dyplo-core/kernel-module-dyplo.bb

The isue at first glance appears to be that "kernel-6.6.40-xilinx- g6a2cb0f14db5" mixes the git version hash from the module itself and the git hash of the kernel. There's no such package, it should have been "kernel-6.6.40-xilinx-gd7b52381656b"

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

#3 lore raw
Quoted 11 lines · Mike Looijmans via lists.openembedded.org
Quoted 7 lines · Khem Raj via lists.openembedded.org
Quoted 5 lines · Mike Looijmans via lists.openembedded.org

I built the same image for 5 different machines. Only one of them fails with the logging below. Note that all machines install the "kernel- module-dyplo" package, and on 4 machines that succeeds just fine.

how are the five machine diffrent with machine config metadata

Here are the conf files:
https://github.com/topic-embedded-products/meta-topic/tree/scarthgap/conf/machine

Quoted 6 lines

The "tdpzu9" triggers the issue, it's the same SoC as the tepzu9 and all the tdkzu* machines. Only difference is in the peripherals. tepzu9, ttpzu9 and tdpzu9 are the same SOM, just on a different carrier.

So the only difference in kernel configuration is some variance in drivers that get built.

Is there a chance that that this is the only board using an out of tree driver, and CONFIG_LOCALVERSION_AUTO kernel config is enabled? If yes, those two factors sometimes aren't playing together nicely with Yocto.

Quoted 61 lines
Quoted 38 lines
Quoted 38 lines

  * Solver encountered 2 problem(s):
  * Problem 1/2:
  *   - conflicting requests
  *   - package kernel-module-dyplo-1.1+154+bb94f350+bb94f3599b- r0.tdpzu9 requires kernel-module-dyplo-pcie-6.6.40-xilinx-g6a2cb0f14db5, but none of the providers can be installed
  *   - nothing provides kernel-6.6.40-xilinx-g6a2cb0f14db5 needed by kernel-module-dyplo-6.6.40-xilinx- g6a2cb0f14db5-1.1+154+bb94f350+bb94f3599b-r0.tdpzu9
  *   - nothing provides kernel-6.6.40-xilinx-g6a2cb0f14db5 needed by kernel-module-dyplo-pcie-6.6.40-xilinx- g6a2cb0f14db5-1.1+154+bb94f350+bb94f3599b-r0.tdpzu9
  *
  * Solution 1:
  *   - do not ask to install a package providing kernel-module-dyplo

  * Problem 2/2:
  *   - conflicting requests
  *   - package kernel-module-dyplo-1.1+154+bb94f350+bb94f3599b- r0.tdpzu9 requires kernel-module-dyplo-pcie-6.6.40-xilinx-g6a2cb0f14db5, but none of the providers can be installed
  *   - nothing provides kernel-6.6.40-xilinx-g6a2cb0f14db5 needed by kernel-module-dyplo-6.6.40-xilinx- g6a2cb0f14db5-1.1+154+bb94f350+bb94f3599b-r0.tdpzu9
  *   - nothing provides kernel-6.6.40-xilinx-g6a2cb0f14db5 needed by kernel-module-dyplo-pcie-6.6.40-xilinx- g6a2cb0f14db5-1.1+154+bb94f350+bb94f3599b-r0.tdpzu9
  *
  * Solution 1:
  *   - do not ask to install a package providing kernel-module-dyplo

I'm on "scarthgap" branch.

The "kernel-module-dyplo" recipe can be found here:

https://github.com/topic-embedded-products/meta-dyplo/blob/master/
recipes-dyplo/dyplo-core/kernel-module-dyplo.bb

Quoted 14 lines
Quoted 10 lines

The isue at first glance appears to be that "kernel-6.6.40-xilinx- g6a2cb0f14db5" mixes the git version hash from the module itself and the git hash of the kernel. There's no such package, it should have been "kernel-6.6.40-xilinx-gd7b52381656b"

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

#4 lore raw
Quoted 16 lines · Gyorgy Sarvari
Quoted 15 lines · Mike Looijmans via lists.openembedded.org
Quoted 7 lines · Khem Raj via lists.openembedded.org
Quoted 5 lines · Mike Looijmans via lists.openembedded.org

I built the same image for 5 different machines. Only one of them fails with the logging below. Note that all machines install the "kernel- module-dyplo" package, and on 4 machines that succeeds just fine.

how are the five machine diffrent with machine config metadata

Here are the conf files:
https://github.com/topic-embedded-products/meta-topic/tree/scarthgap/conf/machine

The "tdpzu9" triggers the issue, it's the same SoC as the tepzu9 and all the tdkzu* machines. Only difference is in the peripherals. tepzu9, ttpzu9 and tdpzu9 are the same SOM, just on a different carrier.

Quoted 5 lines
Quoted 2 lines

So the only difference in kernel configuration is some variance in drivers that get built.

Is there a chance that that this is the only board using an out of tree driver, and CONFIG_LOCALVERSION_AUTO kernel config is enabled? If yes, those two factors sometimes aren't playing together nicely with Yocto.

All machines build the same out-of-tree driver (dyplo), but only one failed.

Quoted 59 lines
Quoted 59 lines
Quoted 38 lines
Quoted 38 lines

  * Solver encountered 2 problem(s):
  * Problem 1/2:
  *   - conflicting requests
  *   - package kernel-module-dyplo-1.1+154+bb94f350+bb94f3599b- r0.tdpzu9
requires kernel-module-dyplo-pcie-6.6.40-xilinx-g6a2cb0f14db5, but none of the providers can be installed
  *   - nothing provides kernel-6.6.40-xilinx-g6a2cb0f14db5 needed by
kernel-module-dyplo-6.6.40-xilinx- g6a2cb0f14db5-1.1+154+bb94f350+bb94f3599b-r0.tdpzu9
  *   - nothing provides kernel-6.6.40-xilinx-g6a2cb0f14db5 needed by
kernel-module-dyplo-pcie-6.6.40-xilinx- g6a2cb0f14db5-1.1+154+bb94f350+bb94f3599b-r0.tdpzu9
  *
  * Solution 1:
  *   - do not ask to install a package providing kernel-module-dyplo

  * Problem 2/2:
  *   - conflicting requests
  *   - package kernel-module-dyplo-1.1+154+bb94f350+bb94f3599b- r0.tdpzu9
requires kernel-module-dyplo-pcie-6.6.40-xilinx-g6a2cb0f14db5, but none of the providers can be installed
  *   - nothing provides kernel-6.6.40-xilinx-g6a2cb0f14db5 needed by
kernel-module-dyplo-6.6.40-xilinx- g6a2cb0f14db5-1.1+154+bb94f350+bb94f3599b-r0.tdpzu9
  *   - nothing provides kernel-6.6.40-xilinx-g6a2cb0f14db5 needed by
kernel-module-dyplo-pcie-6.6.40-xilinx- g6a2cb0f14db5-1.1+154+bb94f350+bb94f3599b-r0.tdpzu9
  *
  * Solution 1:
  *   - do not ask to install a package providing kernel-module-dyplo

I'm on "scarthgap" branch.

The "kernel-module-dyplo" recipe can be found here:

https://github.com/topic-embedded-products/meta-dyplo/blob/master/
recipes-dyplo/dyplo-core/kernel-module-dyplo.bb

Quoted 13 lines
Quoted 10 lines

The isue at first glance appears to be that "kernel-6.6.40-xilinx- g6a2cb0f14db5" mixes the git version hash from the module itself and the git hash of the kernel. There's no such package, it should have been "kernel-6.6.40-xilinx-gd7b52381656b"

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

Signature · 10 lines
Mike Looijmans
System Expert

TOPIC Embedded Products B.V.
Materiaalweg 4, 5681 RJ Best
The Netherlands

T: +31 (0) 499 33 69 69
E: [email protected]
W: www.topic.nl
#5 lore raw
In reply to Mike Looijmans

Hi Mike

Am Mittwoch, dem 23.04.2025 um 14:34 +0200 schrieb Mike Looijmans via lists.openembedded.org:

Quoted 24 lines

I built the same image for 5 different machines. Only one of them fails with the logging below. Note that all machines install the "kernel-module-dyplo" package, and on 4 machines that succeeds just fine.

 * Solver encountered 2 problem(s):
 * Problem 1/2:
 *   - conflicting requests
 *   - package
kernel-module-dyplo-1.1+154+bb94f350+bb94f3599b-r0.tdpzu9 requires kernel-module-dyplo-pcie-6.6.40-xilinx-g6a2cb0f14db5, but none of the providers can be installed
 *   - nothing provides kernel-6.6.40-xilinx-g6a2cb0f14db5 needed by
kernel-module-dyplo-6.6.40-xilinx-g6a2cb0f14db5-1.1+154+bb94f350+bb94f3599b-r0.tdpzu9
 *   - nothing provides kernel-6.6.40-xilinx-g6a2cb0f14db5 needed by
kernel-module-dyplo-pcie-6.6.40-xilinx-g6a2cb0f14db5-1.1+154+bb94f350+bb94f3599b-r0.tdpzu9
 *
 * Solution 1:
 *   - do not ask to install a package providing kernel-module-dyplo

 * Problem 2/2:
 *   - conflicting requests
 *   - package

Quoted 11 lines

kernel-module-dyplo-1.1+154+bb94f350+bb94f3599b-r0.tdpzu9 requires kernel-module-dyplo-pcie-6.6.40-xilinx-g6a2cb0f14db5, but none of the providers can be installed
 *   - nothing provides kernel-6.6.40-xilinx-g6a2cb0f14db5 needed by
kernel-module-dyplo-6.6.40-xilinx-g6a2cb0f14db5-1.1+154+bb94f350+bb94f3599b-r0.tdpzu9
 *   - nothing provides kernel-6.6.40-xilinx-g6a2cb0f14db5 needed by
kernel-module-dyplo-pcie-6.6.40-xilinx-g6a2cb0f14db5-1.1+154+bb94f350+bb94f3599b-r0.tdpzu9
 *
 * Solution 1:
 *   - do not ask to install a package providing kernel-module-dyplo

We had an issue with the exact same symptom and had a hard time to find a fix. It turned out that:

- The kernel is built with a patch applied from SRC_URI AND
- We had LOCALVERSION_AUTO=y in the kernel config AND
- The kernel is in sstate
AND
- The kernel sources no longer exist under tmp/work-shared AND
- The external kernel module is not taken from sstate

If patches are applied in a kernel recipe they are applied with 'git am' and a new hash value will be present with each run of do_patch.

If LOCALVERSION_AUTO=y is in the kernel config that new hash becomes part of the kernel and external kernel module packages.

As the kernel is from an older do_patch and the module from a newer the hashes used in building differ and you get the above OE build error. Even if it wouldn't the different hashes become part of the VERMAGIC and the kernel would refuse to load the module.

Our solution was to no longer build with LOCALVERSION_AUTO and since then we no longer see the issue.

Regards
Max

Quoted 20 lines

I'm on "scarthgap" branch.

The "kernel-module-dyplo" recipe can be found here:

https://github.com/topic-embedded-products/meta-dyplo/blob/master/recipes-dyplo/dyplo-core/kernel-module-dyplo.bb

The isue at first glance appears to be that "kernel-6.6.40-xilinx-g6a2cb0f14db5" mixes the git version hash from the module itself and the git hash of the kernel. There's no such package, it should have been "kernel-6.6.40-xilinx-gd7b52381656b"

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

#6 lore raw
Quoted 64 lines · Max

Hi Mike

Am Mittwoch, dem 23.04.2025 um 14:34 +0200 schrieb Mike Looijmans via lists.openembedded.org:

Quoted 20 lines

I built the same image for 5 different machines. Only one of them fails with the logging below. Note that all machines install the "kernel-module-dyplo" package, and on 4 machines that succeeds just fine.

 * Solver encountered 2 problem(s):
 * Problem 1/2:
 *   - conflicting requests
 *   - package
kernel-module-dyplo-1.1+154+bb94f350+bb94f3599b-r0.tdpzu9 requires kernel-module-dyplo-pcie-6.6.40-xilinx-g6a2cb0f14db5, but none of the providers can be installed
 *   - nothing provides kernel-6.6.40-xilinx-g6a2cb0f14db5 needed by
kernel-module-dyplo-6.6.40-xilinx-g6a2cb0f14db5-1.1+154+bb94f350+bb94f3599b-r0.tdpzu9
 *   - nothing provides kernel-6.6.40-xilinx-g6a2cb0f14db5 needed by
kernel-module-dyplo-pcie-6.6.40-xilinx-g6a2cb0f14db5-1.1+154+bb94f350+bb94f3599b-r0.tdpzu9
 *
 * Solution 1:
 *   - do not ask to install a package providing kernel-module-dyplo

Quoted 14 lines

 * Problem 2/2:
 *   - conflicting requests
 *   - package
kernel-module-dyplo-1.1+154+bb94f350+bb94f3599b-r0.tdpzu9 requires kernel-module-dyplo-pcie-6.6.40-xilinx-g6a2cb0f14db5, but none of the providers can be installed
 *   - nothing provides kernel-6.6.40-xilinx-g6a2cb0f14db5 needed by
kernel-module-dyplo-6.6.40-xilinx-g6a2cb0f14db5-1.1+154+bb94f350+bb94f3599b-r0.tdpzu9
 *   - nothing provides kernel-6.6.40-xilinx-g6a2cb0f14db5 needed by
kernel-module-dyplo-pcie-6.6.40-xilinx-g6a2cb0f14db5-1.1+154+bb94f350+bb94f3599b-r0.tdpzu9
 *
 * Solution 1:
 *   - do not ask to install a package providing kernel-module-dyplo

We had an issue with the exact same symptom and had a hard time to find a fix. It turned out that:

- The kernel is built with a patch applied from SRC_URI AND
- We had LOCALVERSION_AUTO=y in the kernel config AND
- The kernel is in sstate
AND
- The kernel sources no longer exist under tmp/work-shared AND
- The external kernel module is not taken from sstate

If patches are applied in a kernel recipe they are applied with 'git am' and a new hash value will be present with each run of do_patch.

If LOCALVERSION_AUTO=y is in the kernel config that new hash becomes part of the kernel and external kernel module packages.

As the kernel is from an older do_patch and the module from a newer the hashes used in building differ and you get the above OE build error. Even if it wouldn't the different hashes become part of the VERMAGIC and the kernel would refuse to load the module.

Quoted 5 lines

Our solution was to no longer build with LOCALVERSION_AUTO and since then we no longer see the issue.

Regards
Max

That sounds plausible, and explains why only one failed (kernel happened to be in sstate-cache). I'll check the LOCALVERSION_AUTO value...

Quoted 21 lines
Quoted 21 lines

I'm on "scarthgap" branch.

The "kernel-module-dyplo" recipe can be found here:

https://github.com/topic-embedded-products/meta-dyplo/blob/master/recipes-dyplo/dyplo-core/kernel-module-dyplo.bb

The isue at first glance appears to be that "kernel-6.6.40-xilinx-g6a2cb0f14db5" mixes the git version hash from the module itself and the git hash of the kernel. There's no such package, it should have been "kernel-6.6.40-xilinx-gd7b52381656b"

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

Signature · 10 lines
Mike Looijmans
System Expert

TOPIC Embedded Products B.V.
Materiaalweg 4, 5681 RJ Best
The Netherlands

T: +31 (0) 499 33 69 69
E: [email protected]
W: www.topic.nl
#7 lore raw

Hi all,

Quoted 18 lines

That sounds plausible, and explains why only one failed (kernel happened to be in sstate-cache). I'll check the LOCALVERSION_AUTO value...

Quoted 7 lines
Quoted 7 lines

I'm on "scarthgap" branch.

The "kernel-module-dyplo" recipe can be found here:

https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit
hub.com%2Ftopic-embedded-products%2Fmeta-

dyplo%2Fblob%2Fmaster%2Freci

Quoted 1 line
Quoted 1 line

pes-dyplo%2Fdyplo-core%2Fkernel-module-

dyplo.bb&data=05%7C02%7Cchris.

Quoted 1 line
Quoted 1 line

laplante%40agilent.com%7Cbf3eb36f3f9a44d9396508dd84003587%7Ca9c0bc0 98

Quoted 1 line
Quoted 1 line
Quoted 14 lines

b46420693512ba12fb4a5c0%7C0%7C0%7C638811858640678798%7CUnknown %7CTWFp

Quoted 1 line
Quoted 1 line

bGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMi IsI

Quoted 1 line
Quoted 1 line

kFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=hrrWwDxGA0CV IlUcjc

Quoted 6 lines
Quoted 6 lines

JZmfoxWy7KNScoECmYpJbP7ck%3D&reserved=0

The isue at first glance appears to be that "kernel-6.6.40-xilinx-g6a2cb0f14db5" mixes the git version hash from the module itself and the git hash of the kernel. There's no such package, it should have been "kernel-6.6.40-xilinx-gd7b52381656b"

Just wanted to drop a link to this Bugzilla because it seems relevant: https://bugzilla.yoctoproject.org/show_bug.cgi?id=14885

Thanks,
Chris

#8 lore raw
Quoted 23 lines · Chris Laplante via lists.openembedded.org

Hi all,

Quoted 21 lines

That sounds plausible, and explains why only one failed (kernel happened to be in sstate-cache). I'll check the LOCALVERSION_AUTO value...

Quoted 6 lines
Quoted 6 lines

I'm on "scarthgap" branch.

The "kernel-module-dyplo" recipe can be found here:

https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit
hub.com%2Ftopic-embedded-products%2Fmeta-

dyplo%2Fblob%2Fmaster%2Freci

Quoted 1 line
Quoted 1 line

pes-dyplo%2Fdyplo-core%2Fkernel-module-

dyplo.bb&data=05%7C02%7Cchris. laplante%40agilent.com%7Cbf3eb36f3f9a44d9396508dd84003587%7Ca9c0bc0 98 b46420693512ba12fb4a5c0%7C0%7C0%7C638811858640678798%7CUnknown %7CTWFp bGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMi IsI kFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=hrrWwDxGA0CV IlUcjc

Quoted 7 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

JZmfoxWy7KNScoECmYpJbP7ck%3D&reserved=0

The isue at first glance appears to be that "kernel-6.6.40-xilinx-g6a2cb0f14db5" mixes the git version hash from the module itself and the git hash of the kernel. There's no such package, it should have been "kernel-6.6.40-xilinx-gd7b52381656b"

Just wanted to drop a link to this Bugzilla because it seems relevant: https://bugzilla.yoctoproject.org/show_bug.cgi?id=14885

Does seem relevant indeed.

I tried adding DEPENDS += "virtual/kernel" in the kernel module recipe, but still got the same error.

Disabling LOCALVERSION_AUTO in the kernel config made the problem go away.

After changing the kernel, the (external) modules should (also) be rebuilt, that makes sense to me. Even regardless of this dependency issue...

M.

#9 lore raw

Hi Mike,

Quoted 10 lines

Does seem relevant indeed.

I tried adding DEPENDS += "virtual/kernel" in the kernel module recipe, but still got the same error.

Disabling LOCALVERSION_AUTO in the kernel config made the problem go away.

After changing the kernel, the (external) modules should (also) be rebuilt, that makes sense to me. Even regardless of this dependency issue...

Glad the workaround helped.

I spent a good 8 hours over the course of a few days trying to isolate the issue and come up with a selftest, but I didn't make any progress. There is special handling for kernel modules (and the special "do_shared_workdir" task) spread throughout Poky. Pertinent recipes/code:

+ meta/lib/oe/packagedata.py
+ meta/lib/oe/sstatesig.py
+ meta/classes-global/sstate.bbclass
+ meta/recipes-kernel/make-mod-scripts/make-mod-scripts_1.0.bb

Unfortunately, any time you try to add logging to these places, it invalidates the sstate. Eventually I just gave up.

Thanks,
Chris