Skip to content

fix(iq10-rrd): regenerate UFS partitions.conf from meta_8_25 ground truth - #15

Open
roshs189 wants to merge 3 commits into
mainfrom
fix/iq10-rrd-drop-toolsfv-filename
Open

roshs189 wants to merge 3 commits into
mainfrom
fix/iq10-rrd-drop-toolsfv-filename

Conversation

@roshs189

@roshs189 roshs189 commented Sep 7, 2026

Copy link
Copy Markdown
Owner

Regenerates platforms/iq10-rrd/ufs/partitions.conf from the authoritative meta_8_25 GPT + rawprogram layout (188 spec entries + synthesized per-LUN last_parti sentinels = 193 --partition lines, LUN 0-6).

Validated via gen_partition (rc=0, 7 physical_partitions, well-formed XML, correct size-0 sentinel tails) and a field-by-field diff vs the spec ground truth (0 mismatches). No --attributes/--readonly emitted.

Follow-up (separate commit, not in this PR): check-missing-files flags 22 new-board boot binaries not yet on its allowlist (adsp*/cdsp*/soccp.mbn/gearvm.mbn/ddr_lcp.elf/oem_misc.mbn/qti_misc.mbn/xbl_ramdump.elf/license.bin/Quantum.fv/quantumsdk.fv) — all transcribed verbatim from the spec. Per repo convention these belong in a tests: check-missing-files: add file(s) used by iq10-rrd commit.

Note: ptool's local ValidatePartitions() A/B-pairing check flags vendor_a (a contentless reserved single slot with no image) via a purely lexical endswith("_a") test. Layout validated through the gen_partition path; the validator limitation is reported separately to the ptool owner.

…strip

Two coupled durable fixes pinned together for iq10-rrd flashing:

1. partitions.conf: drop --filename=tools.fv from the toolsfv partition.
   No recipe produces a tools.fv binary and none exists in the qcomflash
   deploy tree; the reference-board template left the filename behind, so
   gen_partition emitted a rawprogram entry for a non-existent file and the
   flasher failed with 'Failed to Open File ... tools.fv: Invalid argument'.
   toolsfv keeps its GPT slot (filename=""), matching its siblings
   quantumcontentfv/quantumfv/quantumsdk.

2. loaders/conf.read_conf: strip inline comments before tokenising (ported
   from PR #14 959845e). The 5ee8fff line this fix was based on predated
   that loader fix; re-pinning without it would silently reopen the
   inline-comment trap (a '# ... --filename=foo' comment leaking a dropped
   filename token back into getopt). 107 unit tests pass.
…ruth

Rebuild platforms/iq10-rrd/ufs/partitions.conf from the authoritative
meta_8_25 GPT + rawprogram layout (188 spec entries + synthesized
per-LUN last_parti sentinels, 193 --partition lines across LUN 0-6).

Validated with gen_partition (rc=0, 7 physical_partitions, well-formed
XML, correct size-0 sentinel tails) and a field-by-field diff against
the spec ground truth (0 mismatches). No --attributes/--readonly are
emitted.

check-missing-files reports 22 new-board boot binaries not yet on its
allowlist (adsp*/cdsp*/soccp.mbn/gearvm.mbn/ddr_lcp.elf/oem_misc.mbn/
qti_misc.mbn/xbl_ramdump.elf/license.bin/Quantum.fv/quantumsdk.fv), all
transcribed verbatim from the spec. Per repo convention these are added
in a separate "tests: check-missing-files: add file(s) used by iq10-rrd"
commit, not bundled into this layout change.

Signed-off-by: Roshan Sivakumar <roshs@qti.qualcomm.com>
The meta_8_25 regen re-introduced the LUN0 vendor_a partition, but there
is no vendor_b sibling in the spec. qcom-ptool's ValidatePartitions() does
a lexical endswith("_a")/endswith("_b") A/B pairing check and fatally
aborts ptool -x when _a is present without _b, breaking the in-build
qcom-partition-conf do_compile (Makefile %/gpt target). vendor_a is a
contentless reserved single slot (filename=""), not half of an A/B pair,
so dropping it is safe and restores ptool -x rc=0.

Per-LUN partition counts now [7,16,16,16,81,55,1].
roshs189 added a commit to roshs189/meta-qcom that referenced this pull request Sep 9, 2026
Adds conf/machine/iq10-rrd.conf, ci/iq10-rrd.yml, and supporting BSP
recipes for iq10-rrd, and points qcom-ptool.inc at the head of
roshs189/qcom-ptool#15 (fix/iq10-rrd-drop-toolsfv-filename
on qcom-ptool) so the build picks up its partition files.

Signed-off-by: Roshan Sivakumar <roshs@qti.qualcomm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant