From 1636c917b668a5b4a1b7422bbd1ad87a936d8f75 Mon Sep 17 00:00:00 2001 From: Agathe Porte Date: Thu, 19 Mar 2026 09:59:34 +0100 Subject: [PATCH 1/4] feat: update qcom-ptool commit We need to use the latest qcom-ptool to be able to use the new glymur-crd platform and its partition.conf. Signed-off-by: Agathe Porte --- debos-recipes/qualcomm-linux-debian-flash.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debos-recipes/qualcomm-linux-debian-flash.yaml b/debos-recipes/qualcomm-linux-debian-flash.yaml index 63e47900..d01aaed1 100644 --- a/debos-recipes/qualcomm-linux-debian-flash.yaml +++ b/debos-recipes/qualcomm-linux-debian-flash.yaml @@ -15,7 +15,7 @@ architecture: arm64 actions: - action: download description: Download qcom-ptool - url: https://github.com/qualcomm-linux/qcom-ptool/archive/6b9bdebb6c88809a543117735003c3f0e9ea8217.tar.gz + url: https://github.com/qualcomm-linux/qcom-ptool/archive/2caadb316227dc6cba4c2d5d8276f4b7d951599a.tar.gz name: qcom-ptool filename: qcom-ptool.tar.gz unpack: true From 6ce1dd549eaedfa65c2ac69104833ce4dc91c160 Mon Sep 17 00:00:00 2001 From: Agathe Porte Date: Thu, 19 Mar 2026 10:05:53 +0100 Subject: [PATCH 2/4] feat(flash): report unsupported $disk_type Currently when trying to use an "nvme" or "spinor" disk type the flash recipe fails saying that "esp" is not set. Add a catchall to report unsupported disk types for easier debugging. Signed-off-by: Agathe Porte --- debos-recipes/qualcomm-linux-debian-flash.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/debos-recipes/qualcomm-linux-debian-flash.yaml b/debos-recipes/qualcomm-linux-debian-flash.yaml index d01aaed1..c8f737d6 100644 --- a/debos-recipes/qualcomm-linux-debian-flash.yaml +++ b/debos-recipes/qualcomm-linux-debian-flash.yaml @@ -348,6 +348,10 @@ actions: esp="../disk-ufs.img1" rootfs="../disk-ufs.img2" ;; + *) + echo "unsupported disk type $disk_type" + exit 1 + ;; esac echo "$disk_type" >disk_type ;; From ce955d471a03e5655e655454e4fd3b44087b2d5c Mon Sep 17 00:00:00 2001 From: Agathe Porte Date: Fri, 20 Mar 2026 13:10:18 +0100 Subject: [PATCH 3/4] chore(flash): remove unecessary quotes Having quotes around the case/esac matches for operands without any need for then (ie. no spaces involved) only adds noise. Remove them. Signed-off-by: Agathe Porte --- debos-recipes/qualcomm-linux-debian-flash.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debos-recipes/qualcomm-linux-debian-flash.yaml b/debos-recipes/qualcomm-linux-debian-flash.yaml index c8f737d6..ba276c52 100644 --- a/debos-recipes/qualcomm-linux-debian-flash.yaml +++ b/debos-recipes/qualcomm-linux-debian-flash.yaml @@ -340,11 +340,11 @@ actions: "--disk "*) disk_type="$(echo "$line" | sed -n 's/.*--type=\([^ ]*\).*/\1/p')" case $disk_type in - "emmc") + emmc) esp="../disk-sdcard.img1" rootfs="../disk-sdcard.img2" ;; - "ufs") + ufs) esp="../disk-ufs.img1" rootfs="../disk-ufs.img2" ;; From ccdd212458b20379c08f7c5f7cc14bfa8a109e3c Mon Sep 17 00:00:00 2001 From: Agathe Porte Date: Thu, 19 Mar 2026 10:12:43 +0100 Subject: [PATCH 4/4] feat(flash): add glymur NVME support Add support for generating the flash_glymur-crd/ directory. Note that the "spi-nor" ptool platform, while supported, is not generated as we do not have spi-nor support yet. We need to include the *.melf files are they are used as a programmer replacing the previous *.elf files for this platform. Closes: #273 Signed-off-by: Agathe Porte --- .../qualcomm-linux-debian-flash.yaml | 24 ++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/debos-recipes/qualcomm-linux-debian-flash.yaml b/debos-recipes/qualcomm-linux-debian-flash.yaml index ba276c52..2b6908f9 100644 --- a/debos-recipes/qualcomm-linux-debian-flash.yaml +++ b/debos-recipes/qualcomm-linux-debian-flash.yaml @@ -21,6 +21,27 @@ actions: unpack: true {{- $boards := list }} +{{- $boards = append $boards (dict + "name" "glymur-crd" + "silicon_family" "glymur" + "ptool_platforms" (list "glymur-crd/nvme") + "boot_binaries_download" (dict + "description" "Glymur boot binaries" + "url" "https://softwarecenter.qualcomm.com/nexus/generic/software/chip/qualcomm_linux-spf-0-0/qualcomm-linux-spf-0-0_test_device_public/r0.0_00009.0/glymur-le-0-0/common/build/bin/Glymur_bootbinaries.zip" + "name" "glymur_boot-binaries" + "filename" "glymur_boot-binaries.zip" + "sha256sum" "79df8ab4cc3248472d819098d20829ab129828c19937525cfc16f089d65a7a42" + ) + "cdt_download" (dict + "description" "Glymur CRD CDT" + "url" "https://artifacts.codelinaro.org/artifactory/codelinaro-le/Qualcomm_Linux/SC8480XP/cdt/sc8480xp-crd.zip" + "name" "glymur-crd_cdt" + "filename" "glymur-crd_cdt.zip" + "sha256sum" "d694eedb0addcc5ee588d6993661cd23996fba1d1a43afc3b196dad12534bffc" + ) + "cdt_filename" "CRD/cdt_glymur_crd_0.1.0.bin" + "dtb" "qcom/glymur-crd.dtb" +)}} {{- if eq $build_qcs615 "true" }} {{- $boards = append $boards (dict "name" "qcs615-ride" @@ -340,7 +361,7 @@ actions: "--disk "*) disk_type="$(echo "$line" | sed -n 's/.*--type=\([^ ]*\).*/\1/p')" case $disk_type in - emmc) + emmc|nvme) esp="../disk-sdcard.img1" rootfs="../disk-sdcard.img2" ;; @@ -431,6 +452,7 @@ actions: -or -name 'boot.img' \ -or -name '*.bin' \ -or -name '*.elf' \ + -or -name '*.melf' \ -or -name '*.fv' \ -or -name '*.mbn' \ \) \