feat(flash): add glymur NVME support#332
Conversation
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 <agathe.porte@oss.qualcomm.com>
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 <agathe.porte@oss.qualcomm.com>
Test jobs for commit 5252229 |
|
The boot binaries here contain NHLOS firmware that goes into spi-nor and the corresponding partition.conf support is present in ptool. Can we include that as well to make this flat build bootable on Glymur? |
lool
left a comment
There was a problem hiding this comment.
I realize this is still draft, hope it's ok :)
Minor nit about adding the build_glymur var, otherwise this looks ok
Probably also update README for the proper qdl --storage nvme calls?
Could you confirm you've test booted this?
I'm ok to land this and add support for SPI-NOR later
|
CDT also available : https://artifacts.codelinaro.org/artifactory/codelinaro-le/Qualcomm_Linux/SC8480XP/cdt/sc8480xp-crd.zip - I think this would be able to plug in directly with the CDT replacement logic in linux-debian-flash? |
|
Note that this currently does not work because the glymur device-tree is not present in dtbs.tar.gz, leading to a skip. Hence the draft. And also need to boot test yes, and yes to other comments. |
5252229 to
03b1741
Compare
Thanks, added CDT support to the new entry. |
474fba7 to
ae280b4
Compare
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 <agathe.porte@oss.qualcomm.com>
ae280b4 to
1e7aefd
Compare
Test jobs for commit ae280b4 |
Test jobs for commit 1e7aefd |
lool
left a comment
There was a problem hiding this comment.
I'm ok after updates and inclusion of CDT (thanks Adam!)
We can land this as soon as someone tests this manually to make sure the changes are correct (for instance combining rootfs and ESP image from daily glymur build with flash_ dir from this PR build)
abickett
left a comment
There was a problem hiding this comment.
Couple things here after trying to use this to flash Glymur. I needed to add the device programmer xbl_s_devprg_ns.melf (used for Hamoa, Glymur) to the copy. The CDT and the rest of the boot binaries are irrelevant to the NVME (as only spinor partition has CDT, boot binary partitions, DTB...) I tested this in context of also adding spinor support. Should this be added as a new PR - or potentially combine this? See my test branch commits for the proposed spinor addition: https://github.com/abickett/qcom-deb-images/commits/pr-332-glymur/
Good stuff in that branch, thanks! I've left a few comments there. Question: how do you flash? With qdl? Which programmer do you use? I didn't see prog_firehose_ddr.elf in the boot binaries, I wonder if we're using a different programmer on Glymur CRD, or if it should be added to boot binaries and CDT like for the other platforms. (Or if we need a doc update to the README for Glymur CRD) |
1e7aefd to
649fa3e
Compare
|
I tried Adam’s branch and was able to generate the |
|
After building from (https://github.com/abickett/qcom-deb-images/commits/pr-332-glymur/) - I flashed with created directories flash_glymur-crd_nvme, flash_glymur-crd_spinor both with QDL and on Windows/EMMCDL. Device boots. This required change to add the melf programmer to the copied files. Note that this is the only current file from the boot binaries set that needs to be used both for spinor and nvme flash. Ubuntu/x86 (qdl snap and building from upstream project - disable ModemManager due to USB conflicts) Windows (the tool can use the linux relative paths) |
|
@gagath Can you add the melf changes to your branch? I think I'm ok to add the spinor changes as well, I can tell landing the ptool changes to support "spinor-nvme" will take slightly longer:
Perhaps we can just test if the target files need CDT to decide whether to copy it? |
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: qualcomm-linux#273 Signed-off-by: Agathe Porte <agathe.porte@oss.qualcomm.com>
649fa3e to
ccdd212
Compare
Test jobs for commit ccdd212 |
|
So Adam boot tested this; the CDT and DTB changes in this board block are mostly useless right now, but pave the way for SPINOR later, so I'm ok to have the (useless) metadata. I'm going to land this now to help with daily CI. |
|
I've kicked daily glymur and qcom-next builds so that you get fresh images with these changes later today. |
|
Manual run was OK, results at https://github.com/qualcomm-linux/qcom-deb-images/actions/runs/23555159484 |
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.
Closes: #273