Skip to content

feat(flash): add glymur-crd spinor platform support#338

Merged
lool merged 1 commit intoqualcomm-linux:mainfrom
abickett:glymur-spinor
Mar 26, 2026
Merged

feat(flash): add glymur-crd spinor platform support#338
lool merged 1 commit intoqualcomm-linux:mainfrom
abickett:glymur-spinor

Conversation

@abickett
Copy link
Copy Markdown
Contributor

@abickett abickett commented Mar 26, 2026

This change adds spinor support. This is a temporary enablement while full dual-storage support is in development (qualcomm-linux/qcom-ptool#86) .

Testing on device showed a failure to flash the populated spinor dtb_b partition. It appears that this is beyond range

partitions.conf reports size=67108864 but dtb_b is over this - will need to be fixed
qualcomm-linux/qcom-ptool@b7c75db

Flashing succeeds when removing dtb.bin / dtb_b entry

Add glymur-crd/spinor as a second ptool platform for glymur-crd. Add spinor disk type to the case statement with empty esp/rootfs since spinor carries firmware partitions only (no OS efi/rootfs).

The nvme flash directory will still receive all boot binaries (including firmware) for now; this can be refined in a follow-up.

Add glymur-crd/spinor as a second ptool platform for glymur-crd.
Add spinor disk type to the case statement with empty esp/rootfs
since spinor carries firmware partitions only (no OS efi/rootfs).

The nvme flash directory will still receive all boot binaries
(including firmware) for now; this can be refined in a follow-up.

Signed-off-by: Adam Bickett <abickett@qti.qualcomm.com>
@gagath
Copy link
Copy Markdown
Contributor

gagath commented Mar 26, 2026

I can confirm flashing works when removing dtb_b partition manually from the XML file. This step is still manual, but can be done on the user side instead of us crafting some way to remove the line while it is fixed. Merging this will allow to have spinor support in the daily Glymur builds.

@github-actions
Copy link
Copy Markdown

Test Results

 2 files  ±0   6 suites  ±0   3m 22s ⏱️ ±0s
20 tests ±0  20 ✅ ±0  0 💤 ±0  0 ❌ ±0 
64 runs  ±0  64 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit ac4213c. ± Comparison against base commit da30efd.

@github-actions
Copy link
Copy Markdown

Test jobs for commit ac4213c

Copy link
Copy Markdown
Contributor

@lool lool left a comment

Choose a reason for hiding this comment

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

I've discussed this implementation strategy with Adam, this is keeping in mind:

  • I've submitted invasive changes to ptool to support multi-disk / multi storage configs
  • we want to rewrite the gist of the flash recipe in Python

This shorter implementation by Adam is easy enough, and its only immediate drawback is that a number of extra files are present (dtb.bin and CDT are present in both spinor and nvme subdirs, but only referred to from the spinor XML flashing files).

@lool lool merged commit ddd8dc5 into qualcomm-linux:main Mar 26, 2026
17 checks passed
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.

3 participants