qdl: add support for dry run execution#98
Merged
konradybcio merged 2 commits intolinux-msm:masterfrom May 15, 2025
Merged
Conversation
andersson
requested changes
Mar 27, 2025
e3da70f to
2929f09
Compare
9ecd150 to
d921829
Compare
Contributor
Author
|
@andersson Thank you for your review. I have addressed all your recently posted comments. Please let me know if there's anything else I need to do. |
Contributor
Author
|
@konradybcio @lumag could you please take a look |
lumag
reviewed
Apr 28, 2025
Contributor
lumag
left a comment
There was a problem hiding this comment.
- Commit message for the first patch doesn't answer on the main question: why are you decoupling it. Please update it to describe the reason for the changes.
- Ideally all 'Why' questions should get some comment in the file.
d921829 to
f07a2d3
Compare
Contributor
Author
|
@lumag all comments addressed (to some extent), please let me know if you have additional comments/objections. Thanks! |
f07a2d3 to
43d57c6
Compare
Contributor
Author
|
@lumag @andersson all comments addressed, please let me know if you have additional comments/objections. Thanks! Rebased on the latest master branch. |
354c956 to
0ae99ca
Compare
lumag
approved these changes
May 13, 2025
0ae99ca to
e445f16
Compare
Contributor
Author
|
Rebased onto the latest master. |
lumag
reviewed
May 14, 2025
Decouple the flashing logic from the underlying type of communication. This is needed for introducing simulation mode, where no real flashing is performed, but firehose packets are used for other tasks, like VIP table generation. Signed-off-by: Igor Opaniuk <igor.opaniuk@oss.qualcomm.com>
This mode assists in validating the `rawprogram_.xml` and `patch_.xml` files, as well as the Firehose commands that are expected to be sent to the Firehose programmer. Dry run implementation is also expected to be extended for the Digests Table generation required for Firehose Validated Image Programming (VIP). Example of usage: $ qdl --dry-run --serial=0AA94EFD --debug prog_firehose_ddr.elf rawprogram*.xml patch*.xml qdl version v2.1-24-g30ac3a8-dirty This is a dry-run execution of QDL. No actual flashing has been performed waiting for programmer... FIREHOSE WRITE: <?xml version="1.0"?> <data><configure MemoryName="ufs" MaxPayloadSizeToTargetInBytes="1048576" verbose="0" ZLPAwareHost="1" SkipStorageInit="0"/></data> FIREHOSE WRITE: <?xml version="1.0"?> <data><configure MemoryName="ufs" MaxPayloadSizeToTargetInBytes="0" verbose="0" ZLPAwareHost="1" SkipStorageInit="0"/></data> accepted max payload size: 0 FIREHOSE WRITE: <?xml version="1.0"?> <data><program SECTOR_SIZE_IN_BYTES="4096" num_partition_sectors="131072" physical_partition_number="0" start_sector="6" filename="efi.bin"/></data> Signed-off-by: Igor Opaniuk <igor.opaniuk@oss.qualcomm.com>
e445f16 to
62a7d5b
Compare
Contributor
|
@andersson @konradybcio I have no remaining issues with this PR. I think we can merge it now. WDYT? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This mode assists in validating the
rawprogram_.xmlandpatch_.xmlfiles, as well as the Firehose commands that are expected to be sent to the Firehose programmer.Dry run implementation is also expected to be extended for the Digests Table generation required for Firehose Validated Image Programming (VIP).
Example of usage: