Skip to content

Commit d59a3ac

Browse files
committed
debos: flash: Update to use platform names
As qcom-ptool renamed partition files to follow platform / machine names, follow suit and update code and comments to use consistent names for silicon family, platform and board. Also update workflows to use platform names for flash dirs. Signed-off-by: Loïc Minier <[email protected]>
1 parent 9460277 commit d59a3ac

File tree

2 files changed

+26
-22
lines changed

2 files changed

+26
-22
lines changed

.github/workflows/debos.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,11 @@ jobs:
105105
tar -cvf "${dir}"/flash-ufs.tar.gz \
106106
disk-ufs.img1 \
107107
disk-ufs.img2 \
108-
flash_rb3*
108+
flash_qcs6490-*
109109
tar -cvf "${dir}"/flash-emmc.tar.gz \
110110
disk-sdcard.img1 \
111111
disk-sdcard.img2 \
112-
flash_rb1*
112+
flash_qrb2210-*
113113
114114
- name: Upload private artifacts
115115
uses: qualcomm-linux/upload-private-artifact-action@v1

debos-recipes/qualcomm-linux-debian-flash.yaml

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ actions:
3535
- action: download
3636
description: Download RB3 Gen2 Vision Kit CDT
3737
url: https://artifacts.codelinaro.org/artifactory/codelinaro-le/Qualcomm_Linux/QCS6490/cdt/rb3gen2-vision-kit.zip
38-
name: rb3gen2-vision-kit_cdt
39-
filename: rb3gen2-vision-kit_cdt.zip
38+
name: qcs6490-rb3gen2-vision-kit_cdt
39+
filename: qcs6490-rb3gen2-vision-kit_cdt.zip
4040
{{- end }}
4141

4242
- action: run
@@ -51,10 +51,12 @@ actions:
5151
QCOM_PTOOL="${ROOTDIR}/../qcom-ptool.tar.gz.d/qcom-ptool-main"
5252
5353
{{- if eq $build_rb1 "true" }}
54-
### board: qrb2210-rb1
55-
# unpack rescue image
54+
## silicon family: qcm2290
55+
# use RB1 rescue image as there are no qcm2290 boot binaries published
5656
unzip -j "${ROOTDIR}/../qrb2210-rb1_rescue-image.zip" \
5757
-d build/qrb2210-rb1_rescue-image
58+
59+
### platform: qrb2210-rb1
5860
# generate partition files
5961
mkdir -v build/qrb2210-rb1_partitions
6062
(
@@ -71,10 +73,11 @@ actions:
7173
"${QCOM_PTOOL}/ptool.py" -x ptool-partitions.xml
7274
)
7375

74-
flash_dir="${ARTIFACTDIR}/flash_rb1"
76+
#### board: qrb2210-rb1
77+
flash_dir="${ARTIFACTDIR}/flash_qrb2210-rb1"
7578
rm -rf "${flash_dir}"
7679
mkdir -v "${flash_dir}"
77-
# copy board partition files
80+
# copy platform partition files
7881
cp --preserve=mode,timestamps -v build/qrb2210-rb1_partitions/* \
7982
"${flash_dir}"
8083
# remove BLANK_GPT and WIPE_PARTITIONS files as it's common for people
@@ -83,8 +86,8 @@ actions:
8386
# wipe_rawprogram*.xml files still
8487
rm -v "${flash_dir}"/rawprogram*_BLANK_GPT.xml
8588
rm -v "${flash_dir}"/rawprogram*_WIPE_PARTITIONS.xml
86-
# copy board boot binaries; these shouldn't ship partition files, but
87-
# make sure not to accidentally clobber any such file
89+
# copy silicon family boot binaries; these shouldn't ship partition
90+
# files, but make sure not to accidentally clobber any such file
8891
find build/qrb2210-rb1_rescue-image \
8992
-not -name 'gpt_*' \
9093
-not -name 'patch*.xml' \
@@ -128,14 +131,16 @@ actions:
128131
{{- end }}
129132

130133
{{- if eq $build_qcm6490 "true" }}
131-
## platform: QCM6490
134+
## silicon family: qcm6490
132135
# unpack boot binaries
133136
unzip -j "${ROOTDIR}/../qcm6490_boot-binaries.zip" \
134137
-d build/qcm6490_boot-binaries
138+
139+
### platform: qcs6490-rb3gen2
135140
# generate partition files
136-
mkdir -v build/qcm6490_partitions
141+
mkdir -v build/qcs6490-rb3gen2_partitions
137142
(
138-
cd build/qcm6490_partitions
143+
cd build/qcs6490-rb3gen2_partitions
139144
conf="${QCOM_PTOOL}/platforms/qcs6490-rb3gen2/partitions.conf"
140145
"${QCOM_PTOOL}/gen_partition.py" -i "$conf" \
141146
-o ptool-partitions.xml
@@ -147,22 +152,21 @@ actions:
147152
fi
148153
"${QCOM_PTOOL}/ptool.py" -x ptool-partitions.xml
149154
)
150-
151-
### board: RB3Gen2 Vision Kit
152-
flash_dir="${ARTIFACTDIR}/flash_rb3gen2-vision-kit"
155+
#### board qcs6490-rb3gen2-vision-kit
156+
flash_dir="${ARTIFACTDIR}/flash_qcs6490-rb3gen2-vision-kit"
153157
rm -rf "${flash_dir}"
154158
mkdir -v "${flash_dir}"
155159
# copy platform partition files
156-
cp --preserve=mode,timestamps -v build/qcm6490_partitions/* \
160+
cp --preserve=mode,timestamps -v build/qcs6490-rb3gen2_partitions/* \
157161
"${flash_dir}"
158162
# remove BLANK_GPT and WIPE_PARTITIONS files as it's common for people
159163
# to run "qdl rawprogram*.xml", mistakingly including these; perhaps
160164
# ptool should have a flag not to generate these; note that there are
161165
# wipe_rawprogram*.xml files still
162166
rm -v "${flash_dir}"/rawprogram*_BLANK_GPT.xml
163167
rm -v "${flash_dir}"/rawprogram*_WIPE_PARTITIONS.xml
164-
# copy platform boot binaries; these shouldn't ship partition files, but
165-
# make sure not to accidentally clobber any such file
168+
# copy silicon family boot binaries; these shouldn't ship partition
169+
# files, but make sure not to accidentally clobber any such file
166170
find build/qcm6490_boot-binaries \
167171
-not -name 'gpt_*' \
168172
-not -name 'patch*.xml' \
@@ -180,10 +184,10 @@ actions:
180184
\) \
181185
-exec cp --preserve=mode,timestamps -v '{}' "${flash_dir}" \;
182186
# unpack board CDT
183-
unzip -j "${ROOTDIR}/../rb3gen2-vision-kit_cdt.zip" \
184-
-d build/rb3gen2-vision-kit_cdt
187+
unzip -j "${ROOTDIR}/../qcs6490-rb3gen2-vision-kit_cdt.zip" \
188+
-d build/qcs6490-rb3gen2-vision-kit_cdt
185189
# copy just the CDT data; no partition or flashing files
186-
cp --preserve=mode,timestamps -v build/rb3gen2-vision-kit_cdt/cdt_vision_kit.bin \
190+
cp --preserve=mode,timestamps -v build/qcs6490-rb3gen2-vision-kit_cdt/cdt_vision_kit.bin \
187191
"${flash_dir}"
188192

189193
# update flashing files for CDT

0 commit comments

Comments
 (0)