Skip to content

classes, conf: fix boot image and FIT defects and drop leftovers - #3800

Open
Ricardo Salveti (ricardosalveti) wants to merge 7 commits into
qualcomm-linux:masterfrom
ricardosalveti:audit/classes-conf
Open

Ricardo Salveti (ricardosalveti) wants to merge 7 commits into
qualcomm-linux:masterfrom
ricardosalveti:audit/classes-conf

Conversation

@ricardosalveti

Copy link
Copy Markdown
Contributor

Small fixes and cleanups found while auditing the layer, one commit each.

Fixes

  • linux-qcom-bootimg: the SD card boot image that bundles the initramfs
    was built with the eMMC rootfs. It now uses SD_QCOM_BOOTIMG_ROOTFS, like
    the plain SD card image. Only apq8016-sbc sets that variable.
  • linux-qcom-bootimg: SD_QCOM_BOOTIMG_ROOTFS and SERIAL_CONSOLES were
    missing from the task vardeps, so changing them did not rebuild the boot
    images.
  • dtb-fit-image: the device tree nodes and the configuration numbering
    followed the iteration order of a Python set, which changes on every
    bitbake run, so the FIT image was not reproducible. They are now emitted
    in sorted order.

Leftovers removed

  • fitimage_emit_section_config and a few unused variables in
    lib/qcom/dtb_only_fitimage.py. Nothing has called the method since the
    overlay support was added.
  • The _matrix() helper in the FIT selftest, which was never called.
  • SERIAL_CONSOLE from qcom-armv7a and qcom-armv8a. OE-Core dropped the
    variable in 2022 and SERIAL_CONSOLES is already set.
  • The FILESEXTRAPATHS line in linux-qcom-rt and linux-qcom-next-rt,
    which repeats the one in the recipe they require.

For boards with SD_QCOM_BOOTIMG_ROOTFS a second set of boot images is
built with root= pointing at the SD card. The plain image gets it
right, but the one bundling the initramfs is built with the eMMC rootfs,
so boot-sd-<initramfs>-*.img still mounts the eMMC root filesystem.

Pass the SD card rootfs to it as well.

Assisted-by: Claude Code:claude-fable-5-2
Signed-off-by: Ricardo Salveti <[email protected]>
The boot images are built from variables read through a helper that
takes the variable name as an argument, which hides them from the
bitbake dependency scan, so they are listed by hand in vardeps. The
list misses SD_QCOM_BOOTIMG_ROOTFS and SERIAL_CONSOLES: changing either
does not rebuild the boot images, which keep the old root= or console=
arguments.

Add both to vardeps.

Assisted-by: Claude Code:claude-fable-5-2
Signed-off-by: Ricardo Salveti <[email protected]>
The device tree nodes of the FIT image are emitted by iterating over a
Python set of file names. String hashing is randomised for each bitbake
run, so the order of the nodes, and with it the numbering of the
configurations, changes from one build to the next and the generated
image is not reproducible.

Iterate over the sorted file names, as the selftest reproducing this
logic already does.

Assisted-by: Claude Code:claude-fable-5-2
Signed-off-by: Ricardo Salveti <[email protected]>
fitimage_emit_section_config has not been called since the overlay
support moved the class to fitimage_emit_section_qcomconfig. It was not
updated for the third element the device tree list gained then and
would fail to unpack it if anything used it.

Remove it, together with the variables that are assigned and never
read, the unused typing import and a note that logs a bare lookup key
for every overlay combination.

Assisted-by: Claude Code:claude-fable-5-2
Signed-off-by: Ricardo Salveti <[email protected]>
The two generic machines still set SERIAL_CONSOLE. OE-Core dropped that
variable in 2022 and nothing reads it anymore: the console comes from
SERIAL_CONSOLES, which qcom-common.inc sets to the same port and speed.

Drop the stale assignments.

Assisted-by: Claude Code:claude-fable-5-2
Signed-off-by: Ricardo Salveti <[email protected]>
linux-qcom-rt and linux-qcom-next-rt add the directory of the kernel
they are based on to FILESEXTRAPATHS right after requiring its recipe,
which lives in the same directory and already adds it.

Drop the second assignment from both.

Assisted-by: Claude Code:claude-fable-5-2
Signed-off-by: Ricardo Salveti <[email protected]>
QcomFitImageMatrixTests._matrix() and its cache were added with the
matrix tests but have never been called: the tests walk the machines
and resolve the kernel providers themselves.

Remove them.

Assisted-by: Claude Code:claude-fable-5-2
Signed-off-by: Ricardo Salveti <[email protected]>
@github-actions

This comment has been minimized.

@test-reporting-app

test-reporting-app Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Test Results

  121 files  ±  0    826 suites  +77   10h 46m 18s ⏱️ + 2h 9m 25s
  300 tests +  2    279 ✅  -   8  0 💤  -  2  21 ❌ +12 
5 276 runs  +528  5 246 ✅ +537  9 💤  - 13  21 ❌ + 4 

For more details on these failures, see this check.

Results for commit f954161. ± Comparison against base commit ea8c790.

♻️ This comment has been updated with latest results.

@github-actions

This comment has been minimized.

@qcomlnxci

Copy link
Copy Markdown

Test Coral run workflow

Test jobs for commit f954161

  • qcomdistro: multimedia image-prop
    Pass: 49 | Fail: 2 | Total: 51
  • qcomdistro: multimedia image
    Pass: 6 | Fail: 0 | Total: 6

@github-actions

Copy link
Copy Markdown

Test run workflow

Test jobs for commit f954161

nodistro

Pass: 10 | Fail: 0 | Total: 10

qcom-distro

Pass: 406 | Fail: 14 | Total: 426

qcom-distro_kernel-fit

Pass: 1 | Fail: 0 | Total: 1

qcom-distro_linux-qcom-6.18

Pass: 296 | Fail: 3 | Total: 302

qcom-distro_linux-qcom-7.3-es

Pass: 1 | Fail: 0 | Total: 1

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.

2 participants