lava: add fastboot_fastrpc template to merge firmware archives safely#36
Open
quic-mtharu wants to merge 1 commit intoqualcomm-linux:mainfrom
Open
lava: add fastboot_fastrpc template to merge firmware archives safely#36quic-mtharu wants to merge 1 commit intoqualcomm-linux:mainfrom
quic-mtharu wants to merge 1 commit intoqualcomm-linux:mainfrom
Conversation
Introduce templates/boot/fastboot_fastrpc.jinja2 for FastRPC LAVA jobs. FastRPC jobs provide firmware in archives. Combining kernel firmware and fastrpc firmware archives with `cat` does not merge filesystem structures and can break symlink/path resolution during early boot (e.g., /lib -> /usr/lib with firmware delivered in a separate archive). This leads to firmware load failures. The new template performs an extract-into-one-dir + repack workflow to produce a single unified firmware archive while preserving directory layout and symlinks. This is an additive change and does not modify the existing templates/boot/fastboot.jinja2 behavior. Signed-off-by: Tharun Kumar Merugu <mtharu@qti.qualcomm.com>
anankulk
approved these changes
Feb 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds a new LAVA fastboot template:
templates/boot/fastboot_fastrpc.jinja2The template is intended for FastRPC-specific jobs where firmware is supplied as multiple archives and needs to be combined during post-processing.
Motivation / Background
We observed LAVA failures during post-processing when firmware archives were combined using
cat. Simple concatenation does not properly merge the archives’ filesystem structures. This can break early-boot firmware loading when symlinks and firmware placement span multiple archives.Issue Observed
When two firmware archives are concatenated:
/libsymlink provided by one archive may not resolve to firmware files supplied by the other archive./lib/firmware, resulting in firmware load failures.Failing LAVA job (cat-based merge): Job LAVA | Scheduler | Jobs | 41792
Working LAVA job (extract+repack merge): Job LAVA | Scheduler | Jobs | 41841
Change Introduced
A new template
fastboot_fastrpc.jinja2that:This ensures:
/lib -> /usr/libsymlink is preserved/lib/firmwareresolves correctly during early bootScope / Risk
templates/boot/fastboot.jinja2fastboot_fastrpc.jinja2Test Plan