Skip to content

image_types_qcom: install KVM uefi_dtbs variant into qcomflash for iq-x7181/x5121#2616

Merged
Ricardo Salveti (ricardosalveti) merged 3 commits into
qualcomm-linux:masterfrom
xinlon-z:uefi-dtb-qcomflash
Jun 30, 2026
Merged

image_types_qcom: install KVM uefi_dtbs variant into qcomflash for iq-x7181/x5121#2616
Ricardo Salveti (ricardosalveti) merged 3 commits into
qualcomm-linux:masterfrom
xinlon-z:uefi-dtb-qcomflash

Conversation

@xinlon-z

@xinlon-z Xinzheng Long (xinlon-z) commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

On iq-x7181-evk / iq-x5121-evk, KVM boot needs uefi_dtbs_kvm.xz instead of uefi_dtbs.xz. The spinor bulk-copy pulled both variants into the qcomflash package with no indication of which to use.

Add QCOM_UEFI_DTB to select the variant by the kvm MACHINE_FEATURE and install only that one as uefi_dtbs.xz, make sure the package always carries the right DTB under a stable name.

example build command:

kas build meta-qcom/ci/iq-x7181-evk.yml:meta-qcom/ci/qcom-distro-kvm.yml

@lumag

Copy link
Copy Markdown
Contributor

Drop the Problem / Fix splat from the PR description. Please fix your AI prompt to stop generating such PR descriptions.

@xinlon-z Xinzheng Long (xinlon-z) changed the title image_types_qcom: select KVM uefi_dtbs variant for qcomflash image_types_qcom: install KVM uefi_dtbs variant into qcomflash for iq-x7181/x5121 Jun 25, 2026
@xinlon-z

Copy link
Copy Markdown
Contributor Author

Drop the Problem / Fix splat from the PR description. Please fix your AI prompt to stop generating such PR descriptions.

Done

@github-actions

Copy link
Copy Markdown

Test run workflow

Test jobs for commit 78c8370

nodistro
Pass: 9 | Fail: 0 | Total: 9
qcom-distro_linux-qcom-6.18
Pass: 7 | Fail: 1 | Total: 8
qcom-distro
Pass: 9 | Fail: 1 | Total: 10

@test-reporting-app

test-reporting-app Bot commented Jun 25, 2026

Copy link
Copy Markdown

Test Results

  110 files  +   38    657 suites  +288   5h 38m 45s ⏱️ + 58m 8s
  157 tests  -     5    156 ✅ +   16   1 💤  -  2  0 ❌  - 19 
6 252 runs  +2 771  6 183 ✅ +2 764  69 💤 +35  0 ❌  - 28 

Results for commit 27fbcfa. ± Comparison against base commit e4d25b5.

This pull request removes 5 tests.
0_West[ ‑ Weston_Runtime_Preflight
lava ‑ auto-login-action
lava ‑ lava-test-retry
lava ‑ lava-test-shell
lava ‑ minimal-boot

♻️ This comment has been updated with latest results.

@lumag Dmitry Baryshkov (lumag) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Select the UEFI DTB variant (uefi_dtbs_kvm.xz vs uefi_dtbs.xz) based on
the kvm MACHINE_FEATURE.

Your commit messages lack the most important part. Why you are performing the change. Start the commit message by describing the issue or the problem that it is solving.

Comment thread classes-recipe/image_types_qcom.bbclass Outdated
@xinlon-z

Copy link
Copy Markdown
Contributor Author

Select the UEFI DTB variant (uefi_dtbs_kvm.xz vs uefi_dtbs.xz) based on
the kvm MACHINE_FEATURE.

Your commit messages lack the most important part. Why you are performing the change. Start the commit message by describing the issue or the problem that it is solving.

updated commit msg

@lumag

Copy link
Copy Markdown
Contributor

Please rebase on the tip to pick up build fixes.

Comment thread classes-recipe/image_types_qcom.bbclass Outdated
The spinor block bulk-copies the whole firmware spinor subdir into the
qcomflash package, leaving no place to select between same-type variants
(e.g. KVM/non-KVM UEFI DTB blobs).

Replace it with a whitelist mirroring firmware-qcom-boot-common.inc's
do_deploy filter. Behavior is unchanged: the source can only contain
files matching that filter.

Signed-off-by: Xinzheng Long <xinzheng.long@oss.qualcomm.com>
Platforms booting with KVM enabled (e.g. iq-x7181-evk / iq-x5121-evk
built with qcom-distro-kvm.yml) require a different UEFI DTB blob than
the non-KVM build. The boot firmware ships both variants (uefi_dtbs_kvm.xz
and uefi_dtbs.xz) side by side, but there is no variable to express
which one a given machine should use.

Introduce QCOM_UEFI_DTB, resolving to the KVM variant when the kvm
MACHINE_FEATURE is set and the non-KVM variant otherwise, so callers
can pick the correct file based on machine configuration.

Signed-off-by: Xinzheng Long <xinzheng.long@oss.qualcomm.com>
@xinlon-z

Copy link
Copy Markdown
Contributor Author

Please rebase on the tip to pick up build fixes.

Done

The spinor whitelist in create_qcomflash_pkg() picks up every *.xz file
from the firmware spinor subdir, which pulls both uefi_dtbs.xz and
uefi_dtbs_kvm.xz into the qcomflash package whenever the firmware set
ships them side by side. The resulting package carries duplicate DTB
blobs with no indication of which one matches the build, so the
KVM-appropriate DTB is never explicitly delivered to the flashing flow.

Exclude uefi_dtbs*.xz from the spinor whitelist and install only the
QCOM_UEFI_DTB-selected variant under the fixed name uefi_dtbs.xz, so the
package always carries the right DTB under a stable filename.

Signed-off-by: Xinzheng Long <xinzheng.long@oss.qualcomm.com>
@github-actions

Copy link
Copy Markdown

Test run workflow

Test jobs for commit 0f430e1

nodistro
Pass: 10 | Fail: 0 | Total: 10
qcom-distro_linux-qcom-6.18
Pass: 222 | Fail: 0 | Total: 253
qcom-distro
Pass: 249 | Fail: 0 | Total: 276

Comment thread classes-recipe/image_types_qcom.bbclass
@github-actions

Copy link
Copy Markdown

Test run workflow

Test jobs for commit 27fbcfa

nodistro
Pass: 10 | Fail: 0 | Total: 10
qcom-distro_linux-qcom-6.18
Pass: 217 | Fail: 0 | Total: 245
qcom-distro
Pass: 274 | Fail: 0 | Total: 306

@github-actions

Copy link
Copy Markdown

Test run workflow

Test jobs for commit 27fbcfa

nodistro
Pass: 10 | Fail: 0 | Total: 10
qcom-distro_linux-qcom-6.18
Pass: 222 | Fail: 0 | Total: 259
qcom-distro
Pass: 274 | Fail: 0 | Total: 306

@ricardosalveti Ricardo Salveti (ricardosalveti) merged commit ef33841 into qualcomm-linux:master Jun 30, 2026
255 of 256 checks passed
@quic-yocto-ci

Copy link
Copy Markdown
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants