Skip to content

feat!: rename rawprogram-ufs.xml to rawprogram-4k.xml#330

Draft
gagath wants to merge 1 commit intoqualcomm-linux:mainfrom
gagath:rawprogram-nvme
Draft

feat!: rename rawprogram-ufs.xml to rawprogram-4k.xml#330
gagath wants to merge 1 commit intoqualcomm-linux:mainfrom
gagath:rawprogram-nvme

Conversation

@gagath
Copy link
Copy Markdown
Contributor

@gagath gagath commented Mar 18, 2026

In Github issue #264 is discussed [1] how to flash the Glymur NVME using a rawprogram-nvme.xml file. Since our Glymur boot firmware seems to support 4k sector sizes [2], rename the rawprogram-ufs.xml to rawprogram-4k.xml as it can be used to flash both UFS and NVME devices.

[1] #264 (comment)
[2] https://github.com/qualcomm-linux/qcom-distro-images/pull/37

Closes: #273

In Github issue qualcomm-linux#264 is discussed [1] how to flash the Glymur NVME using
a rawprogram-nvme.xml file. Since our Glymur boot firmware seems to
support 4k sector sizes [2], rename the rawprogram-ufs.xml to
rawprogram-4k.xml as it can be used to flash both UFS and NVME devices.

[1] qualcomm-linux#264 (comment)
[2] qualcomm-linux/qcom-distro-images#37

Closes: qualcomm-linux#273

Signed-off-by: Agathe Porte <agathe.porte@oss.qualcomm.com>
@gagath gagath requested a review from lool March 18, 2026 15:50
@lool
Copy link
Copy Markdown
Contributor

lool commented Mar 18, 2026

Did you test this on NVMe?

In mkosi-qcom, the nvme flashing file uses 512 bytes sectors https://github.com/qualcomm/mkosi-qcom/blob/main/rawprogram-nvme.xml

@gagath gagath marked this pull request as draft March 18, 2026 16:07
@gagath
Copy link
Copy Markdown
Contributor Author

gagath commented Mar 18, 2026

I thought it was already validated for Glymur but after reading https://github.com/qualcomm-linux/qcom-distro-images/pull/37#top in more details it was only validated on Hamoa.

I will test this on Glymur and put the PR back in a ready state when validated.

I think also that maybe we should keep the rawprogram-ufs.xml and rawprogram-nvme.xml names after reflection as this is easier for users to reason about, rather than sector sizes. A symlink can be used if both are proven to use the same parameters.

@github-actions
Copy link
Copy Markdown

Test Results

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

Results for commit 58d05c2. ± Comparison against base commit 6f3e2a0.

@github-actions
Copy link
Copy Markdown

Test jobs for commit 58d05c2

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.

Add support for NVMe flashing

2 participants